-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
60 lines (60 loc) · 1.77 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
49
50
51
52
53
54
55
56
57
58
59
60
{
"parser": "babel-eslint",
"extends": ["airbnb-base", "plugin:prettier/recommended", "plugin:mocha/recommended"],
"env": {
"mocha": true,
"node": true
},
"rules": {
"func-names": "error",
"new-cap": "off",
"arrow-parens": "off",
"consistent-return": "off",
"comma-dangle": "off",
"generator-star-spacing": "off",
"import/no-unresolved": "error",
"import/no-extraneous-dependencies": "off",
"import/no-dynamic-require": "warn",
"import/prefer-default-export": "off",
"no-use-before-define": "warn",
"promise/param-names": "error",
"promise/always-return": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"class-methods-use-this": "off",
"no-duplicate-imports": "error",
"no-param-reassign": "error",
"no-plusplus": "off",
"no-bitwise": "off",
"no-underscore-dangle": "off",
"no-console": "warn",
"no-mixed-operators": "off",
"prefer-template": "off",
"no-unused-vars": "warn",
"no-trailing-spaces": "warn",
"padded-blocks": "warn",
"no-undef": "error",
"arrow-body-style": "warn",
"key-spacing": "warn",
"no-empty-function": "warn",
"max-len": "warn",
"no-useless-escape": "warn",
"prefer-const": "warn",
"object-curly-spacing": "warn",
"spaced-comment": "warn",
"quotes": ["error", "single"],
"import/imports-first": "warn",
"no-multi-spaces": "warn",
"no-multiple-empty-lines": "warn",
"global-require": "off",
"mocha/no-sibling-hooks": "off",
"mocha/max-top-level-suites": "off",
"mocha/no-setup-in-describe": "off",
"mocha/no-hooks-for-single-case": "off",
"mocha/no-top-level-hooks": "off"
},
"plugins": ["import", "promise", "mocha"],
"globals": {
"artifacts": false
}
}