ESLint flat config compatible version of @vue/cli-plugin-eslint, supports ESLint v8.50.0+ and @vue/cli v5.0.0+ .
Replace @vue/cli-plugin-eslint
with vue-cli-plugin-eslint-flat
.
Read @vue/cli-plugin-eslint for more details.
// use @vue/cli
vue add eslint-flat
// use npm
npm install -D vue-cli-plugin-eslint-flat
- Change the dependencies version:
-
eslint-webpack-plugin
from"^3.1.0"
to"^4.2.0"
-
eslint
from>=7.5.0
to>=8.50.0
-
@vue/cli-service
from^3.0.0 || ^4.0.0 || ^5.0.0-0
to^5.0.0-0
.
-
- Add
configType: 'flat'
toeslint-webpack-plugin
option.