-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc
51 lines (51 loc) · 1.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
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier", "prettier/react", "plugin:mdx/recommended"],
"env": {
"mocha": true
},
"plugins": ["react", "prettier", "emotion", "react-hooks"],
"rules": {
"emotion/jsx-import": "error",
"emotion/no-vanilla": "warn",
"emotion/import-from-emotion": "error",
"emotion/styled-import": "error",
"jsx-a11y/img-has-alt": 0,
"prefer-arrow-callback": 0,
"no-underscore-dangle": 0,
"func-names": 2,
"react/jsx-filename-extension": 0,
"react/require-default-props": 0,
"react/forbid-prop-types": 1,
"arrow-body-style": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["**/*.story.js", "**/*.test.js"]
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"globals": {
"__DEV__": true,
"window": true,
"document": true,
"describe": true,
"it": true,
"jest": true,
"expect": true,
"beforeEach": true,
"afterEach": true,
"before": true,
"after": true
},
"overrides": [
{
"files": ["*.test.js"],
"rules": {
"no-unused-expressions": "off"
}
}
]
}