UNPKG

850 BJavaScriptView Raw
1var OFF = 0;
2var WARNING = 1;
3var ERROR = 2;
4
5module.exports = {
6 env: {
7 'node': true,
8 'es2017': true
9 },
10
11 extends: 'eslint:recommended',
12
13 rules: {
14 'brace-style': [ERROR, '1tbs', {'allowSingleLine': true}],
15 'comma-spacing': [ERROR, {'before': false, 'after': true}],
16 'indent': [ERROR, 'tab', {'SwitchCase': 1, 'FunctionExpression': {'body': 1}}],
17 'keyword-spacing': ERROR,
18 'linebreak-style': [ERROR, 'unix'],
19 'no-cond-assign': OFF,
20 'no-console': OFF,
21 'no-control-regex': OFF,
22 'no-fallthrough': OFF,
23 'no-unused-vars': OFF,
24 'no-useless-escape': OFF,
25 'no-undef': OFF,
26 'no-octal': OFF,
27 'quotes': [ERROR, 'single', {'avoidEscape': true, allowTemplateLiterals: true}],
28 'space-before-blocks': [ERROR, 'always'],
29 'space-infix-ops': [ERROR, {'int32Hint': false}],
30 'semi': [ERROR, 'always'],
31 'valid-typeof': OFF
32 }
33};