-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
35 lines (35 loc) · 1.05 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
module.exports = {
env: {
node: true,
browser: true,
},
parserOptions: {
parser: '@babel/eslint-parser',
},
globals: {
chrome: true,
Vue: 'readable',
},
plugins: [ 'vue' ], // required to lint *.vue files
extends: [
'plugin:vue/essential',
'plugin:vue/strongly-recommended',
'plugin:vue/recommended',
],
rules: {
'array-bracket-spacing': [ 'warn', 'always' ],
'comma-dangle': [ 'error', 'always-multiline' ],
'jsx-quotes': [ 'error', 'prefer-double' ],
'semi': [ 'error', 'never' ],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-unused-vars': 'warn',
'object-curly-spacing': [ 'warn', 'always' ],
'quotes': [ 'error', 'single' ],
'template-curly-spacing': [ 'warn', 'always' ],
'vue/max-attributes-per-line': [ 'error', { singleline: 2 } ],
'vue/no-unused-components': 'warn',
'vue/script-indent': [ 'error', 2, { baseIndent: 1 } ],
'vue/no-v-html': 'off',
},
}