Skip to content

nirtamir2/eslint-plugin-sort-export-all

Repository files navigation

eslint-plugin-sort-export-all

npm version npm downloads

ESLint rule that sorts exports * with autofix enabled

Example

Rules List

Configuration

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

Add to your eslint.config.js

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

export default [sortExportAllConfig()];

Or configure the plugin manually

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 © 2020-PRESENT Nir Tamir