Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/typehut/eslint-config-import
ESLint configuration preset using eslint-plugin-simple-import-order. Just by extending this preset, the order of the imports will look ridiculously beautiful.
https://github.com/typehut/eslint-config-import
eslint eslint-config eslintconfig import sort sorting
Last synced: 19 days ago
JSON representation
ESLint configuration preset using eslint-plugin-simple-import-order. Just by extending this preset, the order of the imports will look ridiculously beautiful.
- Host: GitHub
- URL: https://github.com/typehut/eslint-config-import
- Owner: typehut
- License: mit
- Created: 2021-12-05T01:51:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-05T04:03:47.000Z (almost 3 years ago)
- Last Synced: 2024-05-29T06:38:28.455Z (5 months ago)
- Topics: eslint, eslint-config, eslintconfig, import, sort, sorting
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @typehut/eslint-config-import [![CI][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url]
[ci-image]: https://github.com/typehut/eslint-config-import/actions/workflows/ci.yml/badge.svg?branch=main
[ci-url]: https://github.com/typehut/eslint-config-import/actions/workflows/ci.yml
[npm-image]: https://img.shields.io/npm/v/@typehut/eslint-config-import.svg
[npm-url]: https://npmjs.org/package/@typehut/eslint-config-import
[downloads-image]: https://img.shields.io/npm/dm/@typehut/eslint-config-import.svg
[downloads-url]: https://npmjs.org/package/@typehut/eslint-config-import## Install
```shell
npm i -D @typehut/eslint-config-import
```or
```shell
yarn add -D @typehut/eslint-config-import
```## Usage
```json
{
"extends": ["@typehut/eslint-config-import"]
}
```Note that you cannot omit the `eslint-config-` prefix to extend.
## Group Order
1. Side effect (Can't auto-sorting within this group)
2. Node.js built-in
3. External
4. Unknown
5. Internal (Prefixed with `@/` or `~/` are treated as internal group and are placed before relative paths)
6. Type
7. Style