An open API service indexing awesome lists of open source software.

https://github.com/nirtamir2/eslint-plugin-sort-export-all

ESLint rule that helps sort export *
https://github.com/nirtamir2/eslint-plugin-sort-export-all

eslint eslint-plugin eslint-rules exports javascript library sort typescript

Last synced: 3 days ago
JSON representation

ESLint rule that helps sort export *

Awesome Lists containing this project

README

          

# eslint-plugin-sort-export-all

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]

ESLint rule that sorts `exports *` with autofix enabled

![Example](docs/sort-export-all.gif)

[Rules List](./src/rules)

## Configuration

```shell
pnpm add -D eslint-plugin-sort-export-all
```

Add to your `eslint.config.js`

```js
import sortExportAllConfig from "eslint-plugin-sort-export-all/config";

export default [sortExportAllConfig()];
```

Or configure the plugin manually

```js
import eslintPluginSortExportAll from "eslint-plugin-sort-export-all";

export default [
{
plugins: {
"sort-export-all": eslintPluginSortExportAll,
},
rules: {
"sort-export-all/sort-export-all": "warn",
},
},
];
```

## License

[MIT](./LICENSE) License © 2020-PRESENT [Nir Tamir](https://github.com/nirtamir2)

[npm-version-src]: https://img.shields.io/npm/v/eslint-plugin-sort-export-all?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/eslint-plugin-sort-export-all
[npm-downloads-src]: https://img.shields.io/npm/dm/eslint-plugin-sort-export-all?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/eslint-plugin-sort-export-all