forked from Tradeshift/eslint-config-tradeshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
33 lines (33 loc) · 747 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module.exports = {
extends: ['standard', 'prettier'],
parserOptions: {
requireConfigFile: false,
ecmaVersion: 'latest',
ecmaFeatures: {
jsx: true,
},
},
rules: {
'standard/computed-property-even-spacing': 'off',
'standard/array-bracket-even-spacing': 'off',
'standard/object-curly-even-spacing': 'off',
'block-scoped-var': 'error',
'dot-notation': 'error',
'guard-for-in': 'error',
'handle-callback-err': 'error',
'no-empty': [
'error',
{
allowEmptyCatch: true,
},
],
'no-loop-func': 'error',
'no-script-url': 'error',
'no-tabs': 'off',
'no-prototype-builtins': 'off',
'no-restricted-imports': [
'error',
{ paths: [{ name: 'q', message: 'Use native Promises instead' }] },
],
},
};