-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
33 lines (33 loc) · 1.05 KB
/
.eslintrc.cjs
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
/* eslint-env node */
module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
eqeqeq: 'error',
'dot-notation': 'error',
camelcase: ['error', { properties: 'never' }],
'@typescript-eslint/ban-types': 'error',
'vue/no-side-effects-in-computed-properties': 'error',
'vue/html-self-closing': ['error', { html: { void: 'always' } }],
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'vue/no-duplicate-attr-inheritance': 'error',
'vue/no-template-target-blank': 'error',
'vue/no-unused-properties': 'error',
'vue/no-useless-mustaches': 'error',
'vue/no-useless-v-bind': 'error',
'vue/v-on-function-call': 'error',
'vue/dot-notation': 'error', // for template
'vue/eqeqeq': 'error', // for template
'vue/multi-word-component-names': 'off',
'no-console': 'error',
'no-debugger': 'error'
}
}