-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc
48 lines (48 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
// Use this file as a starting point for your project"s .eslintrc.
// Copy this file, and add rule overrides as needed.
// the base style guide for this project is Airbnb
// see: https://github.com/airbnb/javascript
{
"extends": "airbnb",
"env": {
"es6": true,
"jasmine": true,
"jest": true
},
"globals": {
"window": true,
"document": true,
"localStorage": true
},
"parser": "babel-eslint",
"parserOptions": {
"allowImportExportEverywhere": true,
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": [
"node_modules",
"src/js"
]
}
}
},
// overrides to the Airbnb style follow
"rules": {
// allow names to be the same as the default for Redux container testing
"import/no-named-as-default": [0],
// allow test files to import packages in devDependencies
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
"import/no-extraneous-dependencies": ["error", {
"devDependencies": [
"**/*.test.js?(x)",
"/src/testUtilities/**/*"
]
}]
}
}