| 1 |
module.exports = { |
| 2 |
'extends': [ |
| 3 |
'airbnb-base/legacy', |
| 4 |
], |
| 5 |
'parserOptions': { |
| 6 |
'sourceType': 'module', |
| 7 |
'ecmaVersion': 2017, |
| 8 |
}, |
| 9 |
'env': { |
| 10 |
'node': true, |
| 11 |
'es6': true, |
| 12 |
}, |
| 13 |
"rules": { |
| 14 |
|
| 15 |
|
| 16 |
'space-before-function-paren': ['error', { |
| 17 |
anonymous: 'never', |
| 18 |
named: 'never', |
| 19 |
asyncArrow: 'always', |
| 20 |
}], |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
'no-use-before-define': 'off', |
| 26 |
|
| 27 |
'no-cond-assign': ['error', 'except-parens'], |
| 28 |
'no-unused-vars': ['error', { |
| 29 |
'args': 'none', |
| 30 |
}], |
| 31 |
|
| 32 |
'no-underscore-dangle': 'off', |
| 33 |
'no-param-reassign': 'off', |
| 34 |
'class-methods-use-this': 'off', |
| 35 |
'function-paren-newline': 'off', |
| 36 |
'no-plusplus': 'off', |
| 37 |
'object-curly-spacing': 'off', |
| 38 |
'no-multi-assign': 'off', |
| 39 |
'no-else-return': 'off', |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
'no-useless-escape': 'off', |
| 45 |
|
| 46 |
|
| 47 |
'comma-dangle': 'off', |
| 48 |
}, |
| 49 |
'globals': { |
| 50 |
'nunjucks': false, |
| 51 |
}, |
| 52 |
}; |