Giter Site home page Giter Site logo

Comments (5)

kajirikajiri avatar kajirikajiri commented on July 29, 2024

I don't think that syntax is currently supported.

When I type the syntax you sent me into this site, I see that it is an ExportNamedDeclaration.
I believe that modifying this file will take care of the problem.

from eslint-plugin-mui-path-imports.

kasper573 avatar kasper573 commented on July 29, 2024

It is actually supported, but in typescript.

See https://www.typescriptlang.org/docs/handbook/modules.html#re-exports

maybe that is out of scope for this plugin?

from eslint-plugin-mui-path-imports.

kajirikajiri avatar kajirikajiri commented on July 29, 2024

maybe that is out of scope for this plugin?

I agree.

I can't check the operation now, I'll try later.

from eslint-plugin-mui-path-imports.

kajirikajiri avatar kajirikajiri commented on July 29, 2024

Sorry, i have verified and decided not to support the proposed export syntax.

The reason is that I don't think it is in the scope of support for this package, which I imagine from the package name.

However, we have confirmed that using the export syntax described in the issue will result in a very slow hot-reload for Next.js.

Personally, I don't like this and am thinking of creating another package.

Below are the results of my test.

Without export syntax
event - compiled client and server successfully in 1422 ms (939 modules)
With export syntax
event - compiled client and server successfully in 18s (10830 modules)

Also, the following syntax does not seem to slow down the process, so I will try to create a package to modify it this way.

export * as Delete from "@mui/icons-material/Delete";

from eslint-plugin-mui-path-imports.

kajirikajiri avatar kajirikajiri commented on July 29, 2024

I will close this time.

from eslint-plugin-mui-path-imports.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.