forked from EsIce/highlight-icemode
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
140 lines (140 loc) · 4.07 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"root": true,
"env": {
"browser": true,
"node": true,
"es6": true,
"amd": true,
"commonjs": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"eslint-config-airbnb-typescript",
"eslint-config-airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"globals": {
"__webpack_public_path__": true
},
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/alt-text": "off",
"react/no-danger": "off",
"react/self-closing-comp": "off",
"react/no-array-index-key": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-closing-bracket-location": "off",
"react/destructuring-assignment": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/jsx-no-target-blank": "off",
"react-hooks/exhaustive-deps": "off",
"no-continue": "off",
"guard-for-in": "off",
"no-bitwise": "off",
"max-classes-per-file": "off",
"no-param-reassign": "off",
"no-restricted-globals": "off",
"no-underscore-dangle": "off",
"arrow-body-style": "off",
"default-case": "off",
"no-console": "off",
"import/no-cycle": "off",
"linebreak-style": "off",
"arrow-parens": "off",
"eol-last": "off",
"no-plusplus": "off",
"no-multiple-empty-lines": "off",
"object-curly-newline": "off",
"max-len": "off",
"spaced-comment": "off",
"prefer-template": "off",
"eqeqeq": "off",
"no-alert": "off",
"prefer-destructuring": "off",
"import/prefer-default-export": "off",
"no-restricted-syntax": "off",
"radix": "off",
"operator-linebreak": "off",
"@typescript-eslint/no-loop-func": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/comma-dangle": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/semi": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false,
"classes": false,
"enums": true,
"variables": true,
"typedefs": false,
"ignoreTypeReferences": true
}
]
},
"overrides": [
{
"files": [
"test/**/*"
],
"env": {
"jest": true,
"qunit": true,
"jasmine": true,
"mocha": true
}
},
{
"files": [
"**/*.stories.*"
],
"rules": {
"import/no-default-export": "off",
"import/no-extraneous-dependencies": "off",
"react-hooks/rules-of-hooks": "off"
}
}
]
}