This commit is contained in:
dap
2024-08-29 19:55:11 +08:00
74 changed files with 1238 additions and 453 deletions

View File

@@ -2,7 +2,6 @@ import type { Linter } from 'eslint';
// @ts-expect-error - no types
import js from '@eslint/js';
// @ts-expect-error - no types
import pluginUnusedImports from 'eslint-plugin-unused-imports';
import globals from 'globals';

View File

@@ -68,7 +68,7 @@ export async function perfectionist(): Promise<Linter.Config[]> {
ignorePattern: ['children'],
order: 'asc',
partitionByComment: 'Part:**',
type: 'natural',
type: 'alphabetical',
},
],
'perfectionist/sort-vue-attributes': [

View File

@@ -15,10 +15,6 @@ export async function vue(): Promise<Linter.Config[]> {
{
files: ['**/*.vue'],
languageOptions: {
globals: {
// TODO: 等待插件正式支持后删除
defineModel: true,
},
parser: parserVue,
parserOptions: {
ecmaFeatures: {