-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
31 lines (30 loc) · 953 Bytes
/
.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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
indent: ['error', 4, { SwitchCase: 1 }],
'@typescript-eslint/no-explicit-any': ['off'],
'vue/multi-word-component-names': 'off',
'generator-star-spacing': 'off',
'no-prototype-builtins': 'off',
'no-case-declarations': 'off',
'no-throw-literal': 'off',
'no-return-assign': 'off',
'no-return-await': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}