-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
56 lines (55 loc) · 1.67 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
{
"env": {
"node": true,
"browser": false,
"commonjs": true,
"es2021": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react-hooks"],
"extends": [
"prettier",
"google",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"allowImportExportEverywhere": true
},
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"linebreak-style": "off",
"object-curly-spacing": ["error", "always"],
"max-len": ["error", { "code": 120 }],
"indent": ["error", 2],
"requireConfigFile": "off",
"require-jsdoc": "off",
// "quotes": ["error", "single"],
"comma-dangle": ["error", { "functions": "never", "arrays": "always-multiline", "objects": "always-multiline" }],
// "space-before-function-paren" was causing all kinds fo headaches because prettier won't honour it.
"space-before-function-paren": "off",
"operator-linebreak": ["error"],
"semi-spacing": "off",
"keyword-spacing": "error",
"brace-style": "error",
"arrow-spacing": "error",
"sort-imports": "error",
"sort-vars": "error",
"sort-keys": "error",
// We eventually want to disable no-explicit-any
"no-extend-native": "warn",
"guard-for-in": "off",
"camelcase": "off",
"new-cap": "error",
"eol-last": ["error"],
"semi": ["error"],
"no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off"
}
}