dilanx / craco

Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
https://craco.js.org
Apache License 2.0
7.43k stars 499 forks source link

Terminal shows errors instead of warnnings #499

Open CaptainJon opened 1 year ago

CaptainJon commented 1 year ago

What's happening I got some errors in terminal and it stopped my project from keep running. But those errors should be warnnings instead as they are not critical at all. such as unused parameters image

What should happen they should be warnnings instead of erros so that my app will run normally

To reproduce (list the steps to reproduce this behavior)

CRACO version 7.0.0

CRACO config already disabled eslint.

const path = require("path")
const { whenProd } = require("@craco/craco")
const CracoAntDesignPlugin = require("craco-antd")
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer")
const WebpackBarPlugin = require("webpackbar")

import { CracoConfig } from "@craco/types"

const config: CracoConfig = {
  webpack: {
    alias: {
      "@": path.resolve(__dirname, "src/")
    },
    plugins: {
      ...whenProd(
        () => ({
          add: [
            new WebpackBarPlugin({
              name: "Bundle processing",
              color: "#1CE2D1"
            }),
            new BundleAnalyzerPlugin()
          ]
        }),
        []
      )
    },
    configure: {
      entry: "./src/index.tsx",
      resolve: { extensions: [".ts", ".tsx", ".js", ".jsx"] },
      performance: { hints: "warning" },
      devtool: process.env.NODE_ENV === "development" ? "source-map" : false
    }
  },
  plugins: [
    {
      plugin: CracoAntDesignPlugin
    }
  ],
  eslint: { enable: false },
  devServer: {
    port: 3080
  }
}

module.exports = config

export {}

package.json already delete "eslintConfig" config

Additional information I dunno what causes this