-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
43 lines (43 loc) · 1.2 KB
/
index.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
module.exports = {
root: true,
env: {
node: true,
browser: true,
es2020: true
},
extends: [
'plugin:vue/recommended',
'standard',
'plugin:vuejs-accessibility/recommended'
],
plugins: [
'vue',
'vuejs-accessibility'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? ['error', { allow: ['error'] }] : 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
quotes: ['error', 'single', { avoidEscape: true }],
semi: ['error', 'never'],
'vue/array-bracket-spacing': 'error',
'vue/arrow-spacing': 'error',
'vue/block-spacing': 'error',
'vue/brace-style': 'error',
'vue/camelcase': 'error',
'vue/comma-dangle': 'error',
'vue/component-name-in-template-casing': 'error',
'vue/eqeqeq': 'error',
'vue/key-spacing': 'error',
'vue/object-curly-spacing': ['error', 'always'],
'vue/space-infix-ops': 'error',
'vue/space-unary-ops': 'error',
'vue/v-on-function-call': 'error',
'vue/no-empty-component-block': 'error',
'vue/multi-word-component-names': 'off'
},
parserOptions: {
requireConfigFile: false,
parser: '@babel/eslint-parser',
sourceType: 'module'
}
}