Comments (5)
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.
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.
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.
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.
I will close this time.
from eslint-plugin-mui-path-imports.
Related Issues (20)
- v0.0.5
- `@mui/lab` not included? HOT 2
- engines.nodeの12, 14をやめて、18を含める HOT 1
- .nvmrcを含める
- versionup
- versionup
- Support for Joy? HOT 2
- Set node version in github actions to 18
- Support autofix for styled and alpha helpers HOT 3
- Support ImportSpecifier, Unsupport ImportDefaultSpecifier
- Refactor
- auto generate
- Replace importSpecifier.lacal with importSpecifier.imported
- auto generate 2
- Support @mui/material/styles HOT 1
- Supporting MUI v4 Packages? HOT 7
- Deprecate this repository
- local環境でテストを実行すると失敗する
- 以前のpackage.jsonの更新がpackage-lock.jsonに反映されていないので反映する
- バージョンup v0.0.3 -> v0.0.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-mui-path-imports.