forked from nsfw-filter/nsfw-filter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
57 lines (57 loc) · 1.56 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
{
"env": {
"browser": true,
"webextensions": true,
"es2020": true,
"jest": true
},
"extends": [
"standard-with-typescript",
"plugin:react/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"standard/no-callback-literal": 0,
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/restrict-template-expressions": ["error", {
"allowNumber": true,
"allowBoolean": true,
"allowNullish": true
}],
"@typescript-eslint/no-explicit-any": "error",
"prefer-promise-reject-errors": "off",
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"alphabetize": { "order": "asc", "ignoreCase": true }
}
],
"better-styled-components/sort-declarations-alphabetically": 2,
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/default-param-last": "off",
"react/prop-types": [2, { "ignore": ["children"] }]
},
"plugins": [
"react",
"eslint-plugin-import-helpers",
"better-styled-components"
],
"settings": {
"react": {
"version": "detect"
}
},
"globals": {
"page": true,
"browser": true,
"context": true,
"jestPuppeteer": true
}
}