-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.05 KB
/
.eslintrc.js
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
module.exports = {
extends: 'airbnb-base',
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
env: {
node: true,
},
rules: {
'consistent-return': 0,
'import/extensions': 0,
// does not understand Webpack's aliases
'import/no-extraneous-dependencies': 0,
'import/no-unresolved': 0,
// for consistency sometimes we want to export without default (services)
'import/prefer-default-export': 0,
'key-spacing': 0,
'no-multi-spaces': 0,
'no-param-reassign': 0,
quotes: [ 2, 'single' ],
semi: ["error", "never"],
},
overrides: {
files: ["*.spec.js", "test/**/*.js"],
env: {
mocha: true,
},
globals: {
server: true,
supertest: true,
expect: true,
clean: true,
spy: true,
},
rules: {
// Because of babel-plugin-rewire
'no-underscore-dangle': 0,
// It's common to use for-of with await inside for testing many conditions at once
'no-restricted-syntax': 0,
'no-await-in-loop': 0,
}
}
}