-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
71 lines (70 loc) · 2 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
70
71
{
"parser": "babel-eslint",
"extends": ["airbnb", "plugin:react/recommended", "prettier/react"],
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"globals": {},
"plugins": ["react", "jsx-a11y", "react-hooks", "prettier", "emotion"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"no-param-reassign": "off",
"function-paren-newline": "off",
"arrow-parens": ["error", "always"],
"arrow-body-style": [2, "as-needed"],
"comma-dangle": ["error", "only-multiline"],
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"indent": 0,
"no-mixed-spaces-and-tabs": 0,
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"],
"no-tabs": 0,
"camelcase": 1,
"max-len": 0,
"react/no-unused-state": 1,
"import/no-unresolved": "error",
"import/namespace": "error",
"react/no-find-dom-node": 0,
"react-hooks/rules-of-hooks": "error",
"jsx-quotes": ["error", "prefer-single"],
"no-console": 1,
"prefer-destructuring": 1,
"react/jsx-props-no-spreading": 0,
"react/destructuring-assignment": 1,
"radix": 0,
"operator-linebreak": 0,
"jsx-a11y/click-events-have-key-events": 0,
"react/forbid-prop-types": 0,
"implicit-arrow-linebreak": 0,
"react/jsx-curly-brace-presence": "off",
"react/jsx-first-prop-new-line": [2, "multiline"],
"react/jsx-filename-extension": 0,
"react/require-default-props": 0,
"class-methods-use-this": 0,
"react/self-closing-comp": 0,
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"object-curly-newline": 0,
"react/prop-types": 0,
"prefer-rest-params": 0,
"jsx-a11y/anchor-is-valid": 0,
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"jsx-closing-bracket-location": 0,
"jsx-a11y/no-static-element-interactions": 0,
"no-nested-ternary": 0,
"react/sort-comp": 0,
"import/extensions": 0,
"global-require": 0,
"emotion/jsx-import": "error",
"react/no-array-index-key": 1
}
}