-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
51 lines (51 loc) · 1.63 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
44
45
46
47
48
49
50
51
module.exports = {
root: true,
env: {
node: true,
browser: true
},
extends: [
'eslint:recommended',
'@vue/typescript/recommended',
'plugin:vue/vue3-recommended',
'@vue/standard'
],
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 2020
},
parser: 'vue-eslint-parser',
plugins: [
'vue'
],
rules: {
quotes: ['error', 'single'],
indent: ['error', 4],
camelcase: 'off',
'no-undef': 'off',
'vue/max-attributes-per-line': ['error', {
singleline: 3,
multiline: {
max: 2
}
}],
'vue/multi-word-component-names': 0,
'vue/html-indent': 'off',
'vue/html-self-closing': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/singleline-html-element-content-newline': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'prefer-const': 'off',
'space-before-function-paren': 'off',
'no-use-before-define': 'off',
'no-unreachable-loop': 'off',
'@typescript-eslint/no-non-null-assertion': 'off'
}
}