forked from getsentry/sentry-capacitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1.07 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
root: true,
env: {
node: true,
},
extends: ['@sentry-internal/sdk'],
plugins: ['@sentry-internal/sdk'],
parserOptions: {
project: './tsconfig.json',
},
settings: {
version: 'detect',
},
overrides: [
{
// Typescript Files
files: ['*.ts'],
rules: {
'@typescript-eslint/typedef': [
'error',
{ arrowParameter: false, variableDeclarationIgnoreFunction: true },
],
},
},
{
// Test Files
files: ['*.test.ts', '*.test.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
// Scripts
files: ['scripts/*'],
parserOptions: {
ecmaVersion: 2015,
},
rules: {
'no-console': 'off',
},
},
],
rules: {
'@sentry-internal/sdk/no-async-await': 'off',
'@sentry-internal/sdk/no-optional-chaining': 'off',
'@sentry-internal/sdk/no-nullish-coalescing': 'off',
},
};