@@ -2,27 +2,21 @@ import vueEslintConfigPrettier from '@vue/eslint-config-prettier'
22
33import { includeIgnoreFile } from '@eslint/compat'
44import localRules from 'eslint-plugin-local-rules'
5+ import vueEslint from 'eslint-plugin-vue'
6+ import vueScopedCssEslint from 'eslint-plugin-vue-scoped-css'
57import globals from 'globals'
68import path from 'node:path'
79import { fileURLToPath } from 'node:url'
810import js from '@eslint/js'
9- import { FlatCompat } from '@eslint/eslintrc'
1011
1112const __filename = fileURLToPath ( import . meta. url )
1213const __dirname = path . dirname ( __filename )
13- const compat = new FlatCompat ( {
14- baseDirectory : __dirname ,
15- recommendedConfig : js . configs . recommended ,
16- allConfig : js . configs . all ,
17- } )
1814const gitignorePath = path . resolve ( __dirname , '.gitignore' )
1915export default [
20- ...compat . extends (
21- 'plugin:vue/recommended' ,
22- 'plugin:vue/vue3-recommended' ,
23- 'plugin:vue-scoped-css/vue3-recommended' ,
24- 'eslint:recommended'
25- ) ,
16+ ...vueEslint . configs [ 'flat/vue2-recommended' ] ,
17+ ...vueEslint . configs [ 'flat/recommended' ] ,
18+ ...vueScopedCssEslint . configs [ 'flat/recommended' ] ,
19+ js . configs . recommended ,
2620 {
2721 ignores : [ 'data/' , 'dist/' , 'public/twemoji/' ] ,
2822 } ,
@@ -42,7 +36,7 @@ export default [
4236 } ,
4337
4438 parserOptions : {
45- ecmaVersion : '6' ,
39+ ecmaVersion : 2022 ,
4640 parser : '@babel/eslint-parser' ,
4741 } ,
4842 } ,
0 commit comments