1 | module.exports = {
|
2 | env: {
|
3 | es6: true,
|
4 | node: true
|
5 | },
|
6 | extends: ['eslint:recommended', 'plugin:prettier/recommended'],
|
7 | plugins: ['import'],
|
8 | rules: {
|
9 | 'no-console': 0,
|
10 | 'no-control-regex': 0,
|
11 | 'no-debugger': 1,
|
12 | 'no-empty': 0,
|
13 | 'no-negated-in-lhs': 2,
|
14 | 'no-regex-spaces': 0,
|
15 | 'block-scoped-var': 1,
|
16 | eqeqeq: [1, 'smart'],
|
17 | 'no-caller': 2,
|
18 | 'no-div-regex': 1,
|
19 | 'no-eval': 1,
|
20 | 'no-extra-bind': 1,
|
21 | 'no-implied-eval': 1,
|
22 | 'no-iterator': 2,
|
23 | 'no-labels': 2,
|
24 | 'no-native-reassign': 2,
|
25 | 'no-new-func': 2,
|
26 | 'no-new-wrappers': 2,
|
27 | 'no-new': 1,
|
28 | 'no-octal-escape': 1,
|
29 | 'no-proto': 2,
|
30 | 'no-redeclare': [2, {builtinGlobals: true}],
|
31 | 'no-return-assign': [2, 'except-parens'],
|
32 | 'no-self-compare': 2,
|
33 | 'no-sequences': 2,
|
34 | 'no-throw-literal': 2,
|
35 | 'no-unused-expressions': [1, {allowShortCircuit: true, allowTernary: true}],
|
36 | 'no-useless-call': 2,
|
37 | 'no-useless-return': 1,
|
38 | 'no-with': 2,
|
39 | radix: [1, 'as-needed'],
|
40 | 'no-catch-shadow': 2,
|
41 | 'no-label-var': 2,
|
42 | 'no-shadow-restricted-names': 2,
|
43 | 'no-shadow': [2, {builtinGlobals: true, hoist: 'all', allow: ['context']}],
|
44 | 'no-use-before-define': [2, {functions: false}],
|
45 | 'linebreak-style': 1,
|
46 | 'new-cap': [2, {newIsCap: true, capIsNew: false}],
|
47 | 'no-array-constructor': 2,
|
48 | 'no-lonely-if': 1,
|
49 | 'no-new-object': 1,
|
50 | 'no-unneeded-ternary': 1,
|
51 | 'spaced-comment': [1, 'always', {markers: ['*']}],
|
52 | 'require-yield': 0,
|
53 | 'no-var': 1,
|
54 | 'prefer-const': 1,
|
55 | 'prefer-arrow-callback': [1, {allowNamedFunctions: true}],
|
56 | 'import/no-unresolved': [2, {commonjs: true, caseSensitive: true}],
|
57 | 'import/named': 2,
|
58 | 'import/first': 1,
|
59 | 'import/no-duplicates': 2,
|
60 | 'import/extensions': [1, 'always', {js: 'never', json: 'always'}],
|
61 | 'import/newline-after-import': 1,
|
62 | 'import/order': [1, {'newlines-between': 'never'}]
|
63 | }
|
64 | };
|