Comments (4)
This would be pretty neat
from eslint-plugin-import-helpers.
@Tibfib
from eslint-plugin-import-helpers.
Hi @lupenq,
There is currently no way to do this. The library specifically ignores bare imports. Support could be added, but it would need to be an option, preferably a per-group option. I'm open to PRs to add the functionality.
Thanks!
from eslint-plugin-import-helpers.
Hey @Tibfib, Great plugin first of all. After a ton of research & playing with a lot of eslint plugins for sorting imports, this comes really close to what I was looking for. I'm trying to migrate away from the sort-imports by visual studio.
I'm having a similar use case where it's quite common for these style imports to be at the bottom of all the imports as a separate group like @lupenq mentioned in this issue. (Also related #24)
I don't mind raising a PR for this, Can you help guide me in the right direction on the expectation & how can I get started with this project?
I've never worked on an eslint plugin before but I'm well aware of the JS ecosystem & have played with the usages of this particular plugin with different regex.
from eslint-plugin-import-helpers.
Related Issues (20)
- Importing from parent behaving unexpectedly HOT 5
- Line count dependent `newlinesBetween` HOT 1
- It doesn't respect the order under group HOT 4
- Thank you!
- It's doens't works with Prettier HOT 5
- It doesnt work with (import '../styles/mystyle.scss'); HOT 3
- Support for ESLint v7? HOT 4
- Support for 'type' imports HOT 8
- Failing test (see link to code)
- Different groups for node_modules and internal modules HOT 2
- Relative import mistaken as modules HOT 1
- [QUESTION] - Why make this order 👇 ? HOT 3
- does it support "^7.12.1" ? HOT 2
- Support the latest version of ESLint (v8) HOT 1
- How to separate modules that are only `import` HOT 2
- Allow Functions Before Imports
- bug: node@14 requirement added as a minor HOT 2
- Type sorting does not work correctly
- Sort import with styles does not work
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-import-helpers.