-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
43 lines (43 loc) · 888 Bytes
/
.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
module.exports = {
env: {
browser: true,
commonjs: true,
node: true,
jasmine: true
},
plugins: [
'import',
'promise',
'compat',
'node',
'jasmine'
],
extends: [
'eslint:recommended',
'plugin:promise/recommended'
],
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaVersion: 9,
allowImportExportEverywhere: true
},
rules: {
'promise/always-return': 0,
'compat/compat': 1,
'node/no-deprecated-api': 2,
'node/no-extraneous-require': 2,
'node/no-missing-require': 2,
'import/no-unresolved': [2, { commonjs: true, amd: true }],
'import/named': 2,
'import/namespace': 2,
'import/default': 2,
'import/export': 2,
indent: [2, 2],
'linebreak-style': 0,
quotes: [2, 'single'],
semi: [2, 'always'],
'no-unused-vars': 1,
'no-console': 0
}
};