UNPKG

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