mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 01:57:19 +08:00
32 lines
998 B
Go
32 lines
998 B
Go
import { FlatCompat } from '@eslint/eslintrc'
|
|
import unocss from '@unocss/eslint-config/flat'
|
|
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
|
|
import vueTsEslintConfig from '@vue/eslint-config-typescript'
|
|
import pluginVue from 'eslint-plugin-vue'
|
|
|
|
const compat = new FlatCompat()
|
|
|
|
export default [
|
|
...pluginVue.configs['flat/essential'],
|
|
...vueTsEslintConfig(),
|
|
unocss,
|
|
...compat.extends('./.eslintrc-auto-import.json'),
|
|
skipFormatting,
|
|
{
|
|
name: 'app/files-to-lint',
|
|
files: ['**/*.{ts,mts,tsx,vue}'],
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
'@typescript-eslint/no-unused-expressions': 'off',
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-empty-object-type': 'off'
|
|
}
|
|
},
|
|
{
|
|
name: 'app/files-to-ignore',
|
|
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**']
|
|
}
|
|
]
|