-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
34 lines (34 loc) · 957 Bytes
/
.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
{
"extends": ["airbnb", "prettier", "prettier/react", "prettier/standard"],
"parser": "babel-eslint",
"plugins": ["prettier", "emotion", "react-hooks"],
"env": {
"browser": true,
"es6": true
},
"rules": {
"emotion/syntax-preference": [1, "string"],
"import/prefer-default-export": 0,
"no-unused-expressions": ["error", { "allowTaggedTemplates": true }],
"jsx-a11y/href-no-hash": 0,
"react/jsx-filename-extension": [2, { "extensions": [".js"] }],
"react/jsx-sort-default-props": 1,
"react/jsx-sort-props": [
1,
{ "shorthandFirst": true, "callbacksLast": true, "reservedFirst": true }
],
"react/sort-prop-types": [1, { "requiredFirst": true }],
"react-hooks/rules-of-hooks": "error"
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src"]
}
},
"react": {
"pragma": "React",
"version": "16.8"
}
}
}