github gsoft-inc/craco v6.0.0

latest releases: v7.0.0-alpha.3, v7.0.0-alpha.0, v6.4.3...
3 years ago
  • 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; }
    },

Don't miss a new craco release

NewReleases is sending notifications on new releases.