v6.0.0
Migration Path from 5.8.0
Eslint-loader has been deleted from create-react-app in version 4.0. Now eslint is being delivered through eslint-webpack-plugin, not eslint-loader.
View Changes.
The property loaderOptions
is now named pluginOptions
CRACO 5.8
eslint: {
enable: true /* (default value) */,
mode: "extends" /* (default value) */ || "file",
configure: { /* Any eslint configuration options: https://eslint.org/docs/user-guide/configuring */ },
configure: (eslintConfig, { env, paths }) => { return eslintConfig; },
--> loaderOptions: { /* Any eslint-loader configuration options: https://github.com/webpack-contrib/eslint-loader. */ },
--> loaderOptions: (eslintOptions, { env, paths }) => { return eslintOptions; }
},
CRACO 6.0
eslint: {
enable: true /* (default value) */,
mode: "extends" /* (default value) */ || "file",
configure: { /* Any eslint configuration options: https://eslint.org/docs/user-guide/configuring */ },
configure: (eslintConfig, { env, paths }) => { return eslintConfig; },
--> pluginOptions: { /* Any eslint-loader configuration options: https://eslint.org/docs/developer-guide/nodejs-api#%E2%97%86-new-eslint-options. */ },
--> pluginOptions: (eslintOptions, { env, paths }) => { return eslintOptions; }
},