forked from brave/brave-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
67 lines (67 loc) · 2.39 KB
/
.eslintrc.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"root": true, /* Don't read chromium's eslint config (https://eslint.org/docs/user-guide/configuring/configuration-files#cascading-and-hierarchy) */
"extends": "standard-with-typescript",
"ignorePatterns": ["*.js", "*.d.ts"],
"env": {
"browser": false,
"node": true,
"es6": true,
"jest/globals": true
},
"plugins": ["jest"],
"globals": {
"chrome": "readonly"
},
"parserOptions": {
"project": "./tsconfig-lint.json"
},
"rules": {
"quote-props": ["error", "consistent"],
"@typescript-eslint/indent": 0,
"@typescript-eslint/no-useless-constructor": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"import/first": 0,
"@typescript-eslint/no-var-requires": 0,
"consistent-type-definitions": 0,
"@typescript-eslint/strict-boolean-expressions": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/restrict-plus-operands": 0,
"@typescript-eslint/prefer-optional-chain": 0,
"@typescript-eslint/prefer-nullish-coalescing": 0,
"@typescript-eslint/no-misused-promises": 0,
"no-mixed-operators": 0,
"no-prototype-builtins": 0,
"@typescript-eslint/promise-function-async": 0,
"no-case-declarations": 0,
"@typescript-eslint/no-dynamic-delete": 0,
"@typescript-eslint/no-empty-interface": 0,
"no-useless-escape": 0,
"no-return-assign": 0,
"no-async-promise-executor": 0,
"no-fallthrough": 0,
"array-callback-return": 0,
"prefer-promise-reject-errors": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-base-to-string": 0,
"prefer-regex-literals": 0,
"@typescript-eslint/no-implied-eval": 0,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/require-array-sort-compare": 0,
"no-loss-of-precision": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-redeclare": 0,
"no-unsafe-negation": 0,
"promise/param-names": 0,
"node/no-callback-literal": 0,
"@typescript-eslint/consistent-type-definitions": 0,
"multiline-ternary": 0,
"@typescript-eslint/prefer-readonly": 0,
/* TODO(nullhook): ENABLE the below rules in the future */
"no-useless-call": 0,
"@typescript-eslint/consistent-type-assertions": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-invalid-void-type": 0,
"prefer-const": 0,
"@typescript-eslint/return-await": 0
}
}