-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
30 lines (29 loc) · 997 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'@vue/typescript/recommended',
],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-cond-assign': 'off',
'no-param-reassign': ['error', { 'props': false }],
'import/prefer-default-export': 'off',
'max-len': ['warn', { code: 120, ignoreUrls: true, ignoreStrings: true, ignoreTemplateLiterals: true }],
'object-curly-newline': ['error', { consistent: true }],
'quote-props': ['error', 'consistent'],
'vue/max-attributes-per-line': 'off',
'vue/singleline-html-element-content-newline': 'off',
'@typescript-eslint/semi': ['error'],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-extra-non-null-assertion': 'off',
},
};