-
Notifications
You must be signed in to change notification settings - Fork 241
/
.eslintrc
69 lines (69 loc) · 1.76 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "@typescript-eslint"],
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jest": true
},
"globals": {
"expect": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"generators": true,
"experimentalObjectRestSpread": true
},
"requireConfigFile": false
},
"rules": {
"comma-dangle": "off",
"indent": "off",
"space-before-function-paren": "off",
"react/jsx-indent-props": "off",
"max-len": "off",
"no-magic-numbers": "off",
"func-style": "off",
"arrow-parens": "off",
"no-use-before-define": "off",
"no-undef": "off",
"react/jsx-filename-extension": "off",
"react/require-extension": "off",
"react/no-multi-comp": "off",
"react/prop-types": "warn",
"react/sort-comp": "warn",
"react/sort-prop-types": "warn",
"react/jsx-handler-names": "off",
"react/no-find-dom-node": "off",
"no-invalid-this": "off",
"complexity": "off",
"no-unused-vars": 0,
"import/no-unresolved": [2, { "ignore": ["polished", "next/document"] }],
"prefer-template": "off",
"filenames/match-regex": "off",
"react/react-in-jsx-scope": "off",
"max-params": ["error", 5],
"max-nested-callbacks": ["error", 5],
"prettier/prettier": "error",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-var-requires": 0
}
}