UNPKG

793 BJavaScriptView Raw
1module.exports = {
2 env: {
3 node: true,
4 mocha: true,
5 },
6 parserOptions: {
7 sourceType: 'script'
8 },
9 extends: 'eslint:recommended',
10 rules: {
11 'indent': [2, 2, {SwitchCase: 1 }],
12 'brace-style': [2, "stroustrup", {'allowSingleLine': true} ],
13 'comma-dangle': [0],
14 'complexity': [2, 19],
15 'curly': 2,
16 'eqeqeq': 2,
17 'max-depth': 2,
18 'max-statements': [2, 16],
19 'new-cap': 2,
20 'no-caller': 2,
21 'no-cond-assign': 2,
22 'no-else-return': 2, // maybe
23 'no-unused-vars': [2, { 'args': 'after-used' }],
24 'no-use-before-define': 2,
25 'quotes': [2, 'single', 'avoid-escape'],
26 'semi': [2, 'always', {'omitLastInOneLineBlock': true }],
27 'space-before-function-paren': [2, 'never'],
28 'strict': 2,
29 'wrap-iife': [2, 'inside']
30 }
31};