-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
43 lines (43 loc) · 1 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,
},
parserOptions: {
parser: 'babel-eslint',
},
extends: [
'@hapi/eslint-config-hapi',
'plugin:vue/recommended',
'eslint:recommended',
'prettier/vue',
'plugin:prettier/recommended',
],
// required to lint *.vue files
plugins: ['vue'],
// add your custom rules here
rules: {
semi: [2, 'never'],
'require-atomic-updates': 'off',
'vue/max-attributes-per-line': 'off',
'prettier/prettier': [
'error',
{
semi: false,
singleQuote: true,
trailingComma: 'all',
endOfLine: 'auto',
},
],
'no-unused-vars': 'warn',
'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',
'@hapi/hapi/scope-start': 'off',
'import/order': ['off'],
},
globals: {
$nuxt: true,
},
}