Skip to content

v6.0.0

Compare
Choose a tag to compare
@patricklafrance patricklafrance released this 08 Dec 15:55
  • Support for .cracorc and .cracorc.js #223
  • Support of EsLint with CRA4 #219

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; }
    },