-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
30 lines (30 loc) · 895 Bytes
/
.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
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser', // 'babel-eslint'
},
extends: [
'@nuxtjs'
],
// add your custom rules here
rules: {
'indent': ['error', 2],
'no-trailing-spaces': ['error'],
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'semi': ['error', 'never'], // ['error', always', { 'omitLastInOneLineBlock': true }],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// 'no-unused-vars': 'warn',
// 'vue/no-v-html': 'warn',
// 'vue/no-parsing-error': 'warn',
// 'vue/no-unused-vars': 'warn',
// 'vue/return-in-computed-property': 'warn',
// 'vue/no-use-v-if-with-v-for': 'warn'
}
}