-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
23 lines (23 loc) · 640 Bytes
/
.eslintrc.js
File metadata and controls
23 lines (23 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'eslint:recommended',
],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/no-parsing-error': ['error', { 'x-invalid-end-tag': false }],
'vue/no-unused-components': 'warn',
'vue/valid-template-root': 'error',
'vue/no-side-effects-in-computed-properties': 'error',
'vue/require-v-for-key': 'error',
'vue/no-unused-vars': 'error',
},
};