-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
112 lines (112 loc) · 2.91 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"eslint:recommended",
"plugin:react/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:jest/recommended",
"plugin:jest/style"
],
"plugins": ["react", "prettier", "react-hooks", "@emotion", "jest"],
"rules": {
"@emotion/import-from-emotion": "error",
"@emotion/no-vanilla": "error",
"@emotion/styled-import": "error",
"arrow-body-style": ["error", "as-needed"],
"camelcase": 0,
"class-methods-use-this": 0,
"comma-dangle": 0,
"consistent-return": 0,
"func-names": 0,
"function-paren-newline": 0,
"global-require": 0,
"import/extensions": 0,
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"import/order": ["error", {"newlines-between": "never"}],
"jsx-a11y/label-has-for": [
2,
{"components": ["label"], "required": {"some": ["nesting", "id"]}}
],
"max-classes-per-file": 0,
"max-len": 0,
"no-nested-ternary": 0,
"no-param-reassign": 1,
"no-return-assign": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/control-has-associated-label": 0,
"jsx-a11y/anchor-is-valid": 0,
"object-curly-spacing": [2, "never"],
"prettier/prettier": "error",
"react/require-default-props": 0,
"react/display-name": 0,
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
"react/destructuring-assignment": 0,
"react/forbid-component-props": [
2,
{
"forbid": [
{
"propName": "style",
"message": "Avoid using DOM 'style', please use EmotionCSS 'css' prop instead."
}
]
}
],
"react/forbid-dom-props": [
2,
{
"forbid": [
{
"propName": "style",
"message": "Avoid using DOM 'style', please use EmotionCSS 'css' prop instead."
}
]
}
],
"react/forbid-prop-types": 0,
"react/jsx-filename-extension": 0,
"react/jsx-props-no-spreading": 0,
"react/prefer-stateless-function": 0,
"react/prop-types": [2, {"skipUndeclared": true}],
"react/react-in-jsx-scope": 0,
"react/state-in-constructor": 0,
"react/static-property-placement": 0,
"semi": [2, "never"]
},
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["**/*.spec.js"],
"rules": {
"no-plusplus": 0,
"no-undef": 0,
"no-unused-expressions": 0,
"jest/valid-title": [
2,
{
"ignoreTypeOfDescribeName": true,
"mustMatch": {"it": "should .*"}
}
]
}
}
],
"globals": {
"_": false
},
"env": {
"jest/globals": true
}
}