update:更新格式化配置
This commit is contained in:
+5
-3
@@ -1,6 +1,7 @@
|
||||
// @ts-check
|
||||
const { defineConfig } = require('eslint-define-config');
|
||||
module.exports = defineConfig({
|
||||
import {defineConfig} from 'eslint-define-config'
|
||||
// const {defineConfig} = require('eslint-define-config');
|
||||
export default {
|
||||
root: true,
|
||||
env: {
|
||||
browser: true,
|
||||
@@ -25,6 +26,7 @@ module.exports = defineConfig({
|
||||
'plugin:jest/recommended',
|
||||
],
|
||||
rules: {
|
||||
'prettier/prettier': 'error',
|
||||
'vue/script-setup-uses-vars': 'error',
|
||||
'@typescript-eslint/ban-ts-ignore': 'off',
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||
@@ -75,4 +77,4 @@ module.exports = defineConfig({
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user