-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.json
36 lines (36 loc) · 1.02 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
{
"env": {
"browser": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint/eslint-plugin", "eslint-plugin-react"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
],
"ignorePatterns": ["*.js"],
"rules": {
"eol-last": [0],
"no-mixed-requires": [0],
"no-underscore-dangle": [0],
"brace-style": [2, "1tbs"],
"no-mixed-spaces-and-tabs": 2,
"computed-property-spacing": [2, "never"],
"array-bracket-spacing": [2, "never"],
"space-in-parens": [2, "never"],
"indent": [2, 2, { "SwitchCase": 1 }],
"no-multiple-empty-lines": [2, { "max": 1 }],
"space-before-function-paren": [2, "never"],
"spaced-comment": [2, "always"],
"space-before-blocks": [2, "always"],
"no-spaced-func": 2,
"camelcase": 2,
"space-infix-ops": 2,
"react/jsx-uses-vars": 2,
"react/jsx-uses-react": 2,
"no-undef": 2,
"@typescript-eslint/explicit-module-boundary-types": 0
}
}