-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
47 lines (47 loc) · 864 Bytes
/
.eslintrc.js
File metadata and controls
47 lines (47 loc) · 864 Bytes
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
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
plugins: [
'vue-a11y'
],
extends: [
'@nuxtjs',
'plugin:nuxt/recommended',
'plugin:vue-a11y/base'
],
// add your custom rules here
rules: {
'nuxt/no-cjs-in-config': 'off',
'camelcase': 0,
'comma-dangle': 0,
'indent': [2, 4, { 'SwitchCase': 1 }],
'no-trailing-spaces': 0,
'space-in-parens': 0,
'no-multiple-empty-lines': 0,
'no-unused-vars': 1,
'import/order': 0,
'no-console': 0,
'template-curly-spacing': [2, 'always'],
'arrow-parens': 0,
'curly': 0,
'vue/script-indent': [
'error',
4,
{ 'baseIndent': 1 }
],
},
overrides: [
{
'files': ['*.vue'],
'rules': {
'indent': 'off'
}
}
]
}