-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (49 loc) · 1.06 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
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/airbnb'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
camelcase: 2,
'comma-dangle': [2, 'never'],
'comma-style': [2, 'last'],
eqeqeq: 2,
indent: [2, 2, { VariableDeclarator: 2 }],
'no-eq-null': 2,
'no-extra-parens': 2,
'no-extra-semi': 2,
'no-lonely-if': 2,
'no-multi-spaces': 0,
'no-nested-ternary': 2,
'no-param-reassign': 2,
'no-self-compare': 2,
'no-shadow': 2,
'no-throw-literal': 2,
'no-undef': 2,
'no-underscore-dangle': 0,
'no-void': 2,
quotes: [2, 'single'],
semi: [2, 'always'],
'linebreak-style': [0, "error", "windows"],
},
parserOptions: {
parser: 'babel-eslint'
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
};