-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
35 lines (35 loc) · 932 Bytes
/
.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
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@babel/eslint-parser',
sourceType: 'module',
},
env: {
browser: true
},
extends: ['plugin:vue/recommended', 'airbnb-base'],
plugins: [
'prefer-object-spread'
],
// check if imports actually resolve
settings: {
'import/resolver': {
'webpack': {
'config': 'build/webpack.base.conf.js'
}
}
},
rules: {
"import/no-unresolved": "off",
"import/extensions":"off",
"import/no-dynamic-require": "off",
"no-param-reassign": ["error", { "props": false }],
"global-require": "off",
"comma-dangle": ["error", "only-multiline"],
// allow debugger during development
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
// allow console during development
"no-console": process.env.NODE_ENV === "production" ? "error" : "off"
}
};