-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
35 lines (35 loc) · 1.1 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
{
"root": true,
"env": {
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"plugins": ["react-hooks", "@typescript-eslint", "prettier"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-unused-vars": ["off"],
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/ban-types": ["warn"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-empty-function": "warn",
"prettier/prettier": [
"warn",
{
"trailingComma": "all",
"tabWidth": 4,
"semi": true,
"singleQuote": false,
"arrowParens": "always",
"jsxBracketSameLine": true,
"printWidth": 120
}
]
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"]
}