-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
32 lines (32 loc) · 842 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": false,
"jest": true
},
"extends": ["airbnb", "plugin:jest/recommended"],
"globals": {
"module": true,
"process": false
},
"settings": {
"import/resolver": {
"babel-module": {}
}
},
"plugins": [
"jest"
],
"rules": {
"import/no-extraneous-dependencies": ["error", {
"devDependencies": ["__tests__/*", "**/*.test.{js,jsx}", "**/*.spec.{js,jsx}", "**/*.story.{js,jsx}", "stories/**"]
}],
"import/no-named-as-default": 0,
"import/prefer-default-export": 0,
"no-console": ["error", { "allow": ["warn", "error"] }],
"linebreak-style": 0,
"react/prefer-stateless-function": [1, { "ignorePureComponents": true }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
}
}