web-infra-dev / rsdoctor

A one-stop build analyzer for Rspack and Webpack.
https://rsdoctor.dev/
MIT License
331 stars 20 forks source link

fix(type): the rule's config types to support for user to set the rule config: #321

Closed easy1090 closed 2 months ago

easy1090 commented 2 months ago

Summary

fix: rule config types. fix the rule's config types to support for user to set the rule config:

new RsdoctorWebpackPlugin({
      linter: {
        level: "Error",
        extends: [],
        rules: {
          "default-import-check": "off",
          "duplicate-package": [
            "Error",
            {
              checkVersion: "minor",
              ignore: ["chalk", "@bable/runtime"],
            },
          ],
        },
      },
    }),

Related Links

#311

netlify[bot] commented 2 months ago

Deploy Preview for rsdoctor ready!

Name Link
Latest commit e7e0171cea544a29d2ffca4536ef58be16414cc9
Latest deploy log https://app.netlify.com/sites/rsdoctor/deploys/662a01bb8549ee000873ec4e
Deploy Preview https://deploy-preview-321--rsdoctor.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.