forked from jordanjwatkins/not-found
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
64 lines (52 loc) · 1.48 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = {
root: true,
extends: [
'eslint:recommended',
'airbnb-base'
],
env: {
browser: true,
es6: true
},
parser: "babel-eslint",
parserOptions: {
sourceType: 'module'
},
settings: {
'import/resolver': {
webpack: {
config: 'webpack.config.js',
},
}
},
rules: {
'class-methods-use-this': ['off'],
'comma-dangle': ['error', 'never'],
'consistent-return': ['off'],
'import/no-extraneous-dependencies': ['error', {
devDependencies: [
'webpack.config.js',
'webpack.config.*.js',
'postcss.config.js',
]
}],
'no-multiple-empty-lines': ['error', { max: 1 }],
'no-param-reassign': ['off', { props: false }],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-return-assign': ['off'],
'no-use-before-define': ['error', { functions: false }],
'object-curly-newline': ['error', { consistent: true }],
'operator-linebreak': ['error', 'after'],
'prefer-const': ['error', { destructuring: 'all' }],
'padding-line-between-statements': [
'error',
// newline-before-return
{ blankLine: 'always', prev: '*', next: 'return' },
// newline-after-var
{ blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' },
{ blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'] }
],
'quote-props': ['error', 'consistent-as-needed'],
'semi': ['error', 'always']
}
};