-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
executable file
·55 lines (55 loc) · 1.85 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
{
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"browser": true,
"es6": true,
"jest": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "standard-react", "prettier"],
"plugins": ["prettier", "@typescript-eslint/eslint-plugin", "react", "react-hooks"],
"rules": {
"no-unreachable": "warn",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"handle-callback-err": 0,
"no-undef": 2,
"no-unsafe-finally": 0,
"no-use-before-define": 0,
"react/prop-types": 0,
"react/jsx-closing-bracket-location": 0,
"react/jsx-closing-tag-location": 0,
"react/jsx-pascal-case": 0,
"react/jsx-indent": 0,
"react/jsx-indent-props": 0,
"react/jsx-curly-newline": 0,
"react/jsx-handler-names": 0,
"camelcase": 0,
"no-return-await": 0,
"no-constant-condition": 0,
"curly": ["error", "all"],
"prettier/prettier": [
"warn",
{
"printWidth": 120,
"tabWidth": 4,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"jsxSingleQuote": true,
"fluid": false,
"arrowParens": "always"
}
]
}
}