-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
43 lines (42 loc) · 1.02 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
36
37
38
39
40
41
42
43
module.exports = {
root: true,
env: {
browser: true,
node: true,
jest: true
},
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
ecmaVersion: 2020
},
extends: [
// '@nuxtjs',
'eslint-config-prettier',
'plugin:vue/recommended',
'eslint:recommended',
'prettier/vue',
'plugin:prettier/recommended'
],
plugins: ['prettier'],
// add your custom rules here
rules: {
'nuxt/no-cjs-in-config': 'off',
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// Prettier adds slash at end and so we need to turn this off or it will conflict
'vue/html-self-closing': 'off',
// Prettier has an indent already set so this conflicts with it
'vue/html-indent': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto'
}
]
},
globals: {
$nuxt: true
}
}