-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
58 lines (50 loc) · 1.13 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
const isWin = /^win/.test(process.platform);
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
},
plugins: [
'html',
'import',
'testcafe',
'react'
],
extends: 'airbnb-base',
rules: {
'linebreak-style': ['error', isWin ? 'windows': 'unix'],
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'comma-dangle': 0,
'import/no-extraneous-dependencies': ['error', { 'devDependencies': true }],
'no-console': 0,
'max-len': [2, 100, 2],
'import/prefer-default-export': 0,
'arrow-parens': 0,
'no-param-reassign': [2, { 'props': false }],
'arrow-body-style': 0,
'import/extensions': 0,
'import/no-unresolved': 0,
'import/no-dynamic-require': 'off',
'prefer-template': 0,
'operator-assignment': 0,
'object-curly-newline': 0
},
overrides: [
{
'files': [ "vuex-bitshares/test/*.js" ],
'excludedFiles': '*.spec.js'
}
],
settings: {
'import/resolver': {
webpack: 'webpack.dev.js'
}
}
};