-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
67 lines (66 loc) · 1.93 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"plugins": ["react-hooks", "styled-components"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/react",
"prettier/@typescript-eslint"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"prettier/prettier": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-inferrable-types": "off",
"react/prop-types": "off",
"react/display-name": "off",
"no-console": ["error", { "allow": ["warn", "error", "assert"] }],
"no-var": "off",
"max-params": ["error", { "max": 4 }]
},
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true
},
"overrides": [
{
"files": ["*.scss.d.ts"],
"rules": {
"prettier/prettier": 0
}
},
{
"files": ["**/language/lang-??.ts"],
"rules": {
"prettier/prettier": ["warn", { "printWidth": 9999 }],
// just use some JSON sorter, e.g. extension `richie5um2.vscode-sort-json`. It's easier to diff this way
// there was an auto fix PR into eslint repo but it was turned down
"sort-keys": "warn"
}
}
]
}