-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.22 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
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/recommended',
'@vue/airbnb'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
"linebreak-style": ["error", (process.platform === "win32" ? "windows" : "unix")],
"comma-dangle": [1, {
"objects": "always",
"arrays": "ignore",
"imports": "ignore",
"exports": "ignore",
"functions": "ignore"
}],
'max-len': ['warn', {
code: 100,
ignoreComments: true,
ignoreStrings: true,
// fix for svg icons
ignorePattern: 'd=([s]*?)',
}],
semi: ['error', 'never'],
quotes: ['error', 'single'],
'no-multiple-empty-lines': ['error', {
max: 1,
maxBOF: 1
}],
'no-param-reassign': 'off',
'max-classes-per-file': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-unused-vars': 'warn',
"consistent-return": "off",
'vue/no-unused-vars': 'off',
'vue/require-default-prop': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': ['error', {
devDependencies: true
}],
},
}