Skip to content

Commit

Permalink
fix(eslint): 修复 lint 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
白唯 committed Dec 2, 2020
1 parent 7764bbf commit e072b49
Showing 1 changed file with 41 additions and 29 deletions.
70 changes: 41 additions & 29 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,41 @@
module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser'
},
env: {
browser: true,
es6: true,
node: true
},
plugins: ['prettier', 'vue', '@typescript-eslint/eslint-plugin'],
rules: {
'prettier/prettier': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-ignore': 'off'
},
extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/typescript/recommended'],
overrides: [
{
files: ['**/tests/*.{j,t}s?(x)', '**/tests/**/*.spec.{j,t}s?(x)', '**/tests/*.spec.{j,t}s?(x)'],
env: {
mocha: true
}
}
]
}
module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser'
},
env: {
browser: true,
es6: true,
node: true
},
plugins: ['prettier', 'vue', '@typescript-eslint/eslint-plugin'],
rules: {
'prettier/prettier': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/class-name-casing': 'off',
'vue/valid-v-slot': 'off',
'no-debugger': 'off',
'vue/experimental-script-setup-vars': 'off'
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended'
],
overrides: [
{
files: [
'**/tests/*.{j,t}s?(x)',
'**/tests/**/*.spec.{j,t}s?(x)',
'**/tests/*.spec.{j,t}s?(x)'
],
env: {
mocha: true
}
}
]
}

0 comments on commit e072b49

Please sign in to comment.