Comments (3)
I like new category 'side-effect'
and 'css'
from eslint-plugin-perfectionist.
'side-effect'
group added in 02f51fb
'style'
group added in 05bf0f7 (not 'css'
, because it supports .sass
, .less
, .scss
, .pcss
, .sss
and .css
extensions)
Released in v1.1.0
from eslint-plugin-perfectionist.
Sounds reasonable. We currently have 13 types of imports that can be grouped together.
type Group =
| 'builtin'
| 'external'
| 'internal'
| 'parent'
| 'sibling'
| 'index'
| 'object'
| 'type'
| 'internal-type'
| 'parent-type'
| 'sibling-type'
| 'index-type'
| 'unknown'
In the current implementation, side-effect imports will be assigned to the 'siblings'
or 'parent'
type. Perhaps a new 'side-effect'
group should be added. And maybe group 'side-effect-css'
.
Do you have any other ideas for what the API might look like?
from eslint-plugin-perfectionist.
Related Issues (20)
- Feature: Add support for Vue order in components rules HOT 1
- Feature: Group named import/export kinds (type/value) on sort-named-imports/exports HOT 1
- Bug: TS2729: Property is used before its initialization.
- Bug: (sort-exports) does not work for 'export *' HOT 5
- Bug: (sort-object): Cannot read properties of undefined (reading 'getTokensBefore') HOT 7
- Bug: (sort-interfaces): Configuration for rule "perfectionist/sort-interfaces" is invalid when using `optionality-order` HOT 1
- Bug: (sort-objects): How to sort vue options(data, computed, watch, methods), how to ignore child sorting in methods? HOT 2
- Feature: (sort-objects) option for destructuring only HOT 5
- Feature: sort-intersection-types and anonymous types
- Bug: Allow typescript-eslint/utils@7? HOT 1
- Feature: Support computed properties for sort-objects and sort-object-keys HOT 2
- Bug: (sort-intersection-types) wrong version information in the rule documentation
- Bug: sort-imports sorts individually in custom-groups array HOT 5
- Feature: implement ignore-pattern based on word before, not object name
- Feature: `sort-imports` custom-groups Regex match
- bug(types): Typing files are missing for `tseslint.configs.strictTypeChecked` in FlatConfig HOT 1
- Feature: Providing Disabling Rules that Conflict
- Feature: sort-imports sort order by group order in line-length
- Feature: sort-intersection-types `objects-last` HOT 1
- Bug: no type definition for eslint flat config HOT 1
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-perfectionist.