-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
30 lines (30 loc) · 891 Bytes
/
.eslintrc.js
File metadata and controls
30 lines (30 loc) · 891 Bytes
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
module.exports = {
env: {
browser: true,
es6: true,
mocha: true
},
plugins: ['chai', 'mocha', 'sinon'],
extends: ['airbnb-base'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
rules: {
'no-tabs': ['error', { allowIndentationTabs: true }],
indent: ['error', 'tab', { SwitchCase: 1 }],
'comma-dangle': ['off', {}],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'prefer-arrow-callback': ['error', { allowNamedFunctions: true }],
'no-underscore-dangle': 'off',
'no-unused-vars': ['error', { varsIgnorePattern: 'should|expect' }],
'no-unused-expressions': 'off',
'class-methods-use-this': 'off',
'no-new': 'off',
'no-prototype-builtins': 'off',
'no-use-before-define': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'arrow-body-style': 'off',
'prefer-object-spread': 'off'
}
};