forked from McPo/redux-offline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (47 loc) · 1.01 KB
/
.eslintrc.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
module.exports = {
parser: 'babel-eslint',
extends: ['formidable/configurations/es6'],
globals: {
Promise: true
},
env: {
node: true
},
ecmaFeatures: {
modules: true
},
rules: {
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'after-used',
ignoreRestSiblings: false,
argsIgnorePattern: '^_'
}
],
'no-magic-numbers': 'off',
'no-invalid-this': 'off',
'no-unused-expressions': 'off',
'no-console': 'off',
quotes: ['error', 'single', { avoidEscape: true }],
indent: [
'error',
2,
{
SwitchCase: 1
}
],
'new-cap': 'off',
'func-style': 'off',
'generator-star-spacing': 'off',
'max-len': ['error', 100, { ignoreUrls: true }],
'max-params': 'off',
'comma-dangle': ['error', 'never'],
'arrow-parens': ['error', 'as-needed'],
eqeqeq: ['error', 'smart'],
'filenames/match-regex': 'off',
'filenames/match-exported': 'off',
'filenames/no-index': 'off'
}
};