-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc
More file actions
47 lines (47 loc) · 1.27 KB
/
.eslintrc
File metadata and controls
47 lines (47 loc) · 1.27 KB
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"ecmaVersion": "2018"
},
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["@typescript-eslint/eslint-plugin"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier",
"plugin:prettier/recommended"
],
"root": true,
"env": {
"browser": true,
"node": true,
"jest": true
},
"ignorePatterns": [".eslintrc", "/src/stories/**/*"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"react/destructuring-assignment": "warn",
"react/no-direct-mutation-state": "warn",
"react/jsx-no-useless-fragment": "error",
"react/jsx-key": "error",
"react/self-closing-comp": "warn",
"react/jsx-curly-brace-presence": "warn",
"no-undef": "warn",
"no-useless-escape": "off",
"no-unused-vars": "warn",
"no-var": "error",
"no-multiple-empty-lines": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"eqeqeq": "error",
"dot-notation": "warn"
}
}