-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
38 lines (38 loc) · 976 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
35
36
37
38
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"import/no-default-export": "off",
"prettier/prettier": "error",
"react/no-array-index-key": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/anchor-is-valid": "off"
},
"settings": {
"import/extensions": [".js", ".jsx"],
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"],
"moduleDirectory": ["node_modules", "src"],
"root": ["./src"],
"alias": {
"@layouts": "./src/layouts",
"@pages": "./src/pages",
"@templates": "./src/templates",
"@services": "./src/services",
"@components": "./src/components"
}
}
}
}
}