chore(lint): Update eslint rules
* Remove semi
This commit is contained in:
+14
-15
@@ -3,12 +3,12 @@ const baseRules = {
|
||||
'@typescript-eslint/ban-ts-ignore': 0,
|
||||
'@typescript-eslint/ban-ts-comment': 0,
|
||||
'@typescript-eslint/no-empty-function': 0,
|
||||
'@typescript-eslint/explicit-module-boundary-types': 0,
|
||||
'no-use-before-define': 0,
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': ['warn'],
|
||||
indent: ['warn', 2, { SwitchCase: 1, flatTernaryExpressions: true }],
|
||||
quotes: ['error', 'single', { avoidEscape: true }],
|
||||
semi: ['error', 'always'],
|
||||
'import/no-mutable-exports': 0,
|
||||
'no-cond-assign': [2],
|
||||
'no-console': 'off',
|
||||
@@ -16,28 +16,27 @@ const baseRules = {
|
||||
'@typescript/camelcase': 0,
|
||||
'vue/no-v-html': 'off',
|
||||
'vue/attribute-hyphenation': 0,
|
||||
'prettier/prettier': [
|
||||
'warn',
|
||||
{
|
||||
singleQuote: true,
|
||||
trailingComma: 'none',
|
||||
semi: true,
|
||||
bracketSpacing: true,
|
||||
vueIndentScriptAndStyle: false,
|
||||
printWidth: 130
|
||||
}
|
||||
]
|
||||
};
|
||||
'no-undef': 'off',
|
||||
'prettier/prettier': ['error', {}, { usePrettierrc: true }]
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
ecmaVersion: 2020,
|
||||
sourceType: 'module',
|
||||
ecmaFeatures: {
|
||||
jsx: true
|
||||
}
|
||||
},
|
||||
env: {
|
||||
node: true,
|
||||
commonjs: true,
|
||||
es6: true,
|
||||
browser: true
|
||||
},
|
||||
extends: ['plugin:vue/vue3-recommended', 'eslint:recommended', '@vue/typescript/recommended', 'plugin:prettier/recommended'],
|
||||
extends: ['eslint:recommended', 'plugin:vue/vue3-recommended', '@vue/typescript/recommended', 'plugin:prettier/recommended'],
|
||||
plugins: [],
|
||||
rules: baseRules
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user