chore: 修改格式化规则
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
|
||||
import prettierConfig from '@vue/eslint-config-prettier'
|
||||
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
|
||||
import importPlugin from 'eslint-plugin-import'
|
||||
import prettierPlugin from 'eslint-plugin-prettier'
|
||||
@@ -26,6 +26,7 @@ export default defineConfigWithVueTs(
|
||||
prettier: prettierPlugin,
|
||||
},
|
||||
rules: {
|
||||
'prettier/prettier': 'error',
|
||||
'import/order': [
|
||||
'error',
|
||||
{
|
||||
@@ -40,5 +41,5 @@ export default defineConfigWithVueTs(
|
||||
},
|
||||
},
|
||||
|
||||
skipFormatting,
|
||||
prettierConfig,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user