securityos/node_modules/eslint-plugin-simple-import.../README.md

27 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
# eslint-plugin-simple-import-sort
Easy autofixable import sorting.
- ✅️ Runs via `eslint --fix` no new tooling
- ✅️ Also sorts exports where possible
- ✅️ Handles comments
- ✅️ Handles type imports/exports
- ✅️ [TypeScript] friendly \(via [@typescript-eslint/parser])
- ✅️ [Prettier] friendly
- ✅️ [eslint-plugin-import] friendly
- ✅️ `git diff` friendly
- ✅️ 100% code coverage
- ✅️ No dependencies
- ❌ [Does not support `require`][no-require]
This is for those who use `eslint --fix` (autofix) a lot and want to completely forget about sorting imports!
[@typescript-eslint/parser]: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser
[eslint-plugin-import]: https://github.com/import-js/eslint-plugin-import/
[no-require]: https://github.com/lydell/eslint-plugin-simple-import-sort/#does-it-support-require
[prettier]: https://prettier.io/
[typescript]: https://www.typescriptlang.org/
## Example
**[➡️ Full readme](https://github.com/lydell/eslint-plugin-simple-import-sort/)**