forked from brave/brave-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
105 lines (105 loc) · 3.58 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"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",
"licenses"
],
"globals": {
"chrome": "readonly"
},
"parserOptions": {
"project": "./tsconfig-lint.json"
},
"rules": {
"licenses/header": [
2,
{
"tryUseCreatedYear": true,
"comment": {
"allow": "both",
"prefer": "line"
},
"header": [
"Copyright (c) {YEAR} The Brave Authors. All rights reserved.",
"This Source Code Form is subject to the terms of the Mozilla Public",
"License, v. 2.0. If a copy of the MPL was not distributed with this file,",
"you can obtain one at https://mozilla.org/MPL/2.0/."
],
"altHeaders": [
[
"Copyright (c) {YEAR} The Brave Authors. All rights reserved.",
"* This Source Code Form is subject to the terms of the Mozilla Public",
"* License, v. 2.0. If a copy of the MPL was not distributed with this file,",
"* You can obtain one at https://mozilla.org/MPL/2.0/."
],
[
"This Source Code Form is subject to the terms of the Mozilla Public",
"* License, v. 2.0. If a copy of the MPL was not distributed with this file,",
"* You can obtain one at https://mozilla.org/MPL/2.0/."
]
]
}
],
"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
}
}