ESLint plugin that automatically fixes object key ordering with the same options as the official sort-keys rule.
eslint-plugin-sort-keys-fix is an ESLint plugin that automatically fixes object key ordering violations in JavaScript and TypeScript code. It's a fork of ESLint's built-in sort-keys rule that adds the ability to automatically reorder keys when running ESLint with the --fix flag, saving developers from manual refactoring.
JavaScript and TypeScript developers who want to enforce consistent object key ordering in their codebases and prefer automated fixes over manual corrections.
Developers choose this plugin because it provides the same configuration options and behavior as ESLint's official sort-keys rule while adding automatic fixing capability, making code style enforcement practically effortless.
Fork of https://eslint.org/docs/rules/sort-keys that allows automatic fixing
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically reorders object keys when running ESLint with --fix, reducing manual refactoring work, as emphasized in the key features for developer convenience.
Supports all configuration options from ESLint's official sort-keys rule except minKeys, ensuring seamless adoption in existing ESLint setups without relearning.
Can be enabled only for specific files or directories using ESLint's override configuration, allowing targeted application of sorting rules, as demonstrated in the README examples.
Configurable for natural order, case sensitivity, or alphabetical order, providing adaptability to various coding standards and team preferences.
Does not support the minKeys option from the original ESLint rule, a admitted limitation in the README that prevents excluding small objects from sorting enforcement.
Tied solely to ESLint, making it unsuitable for projects using alternative linting tools or environments without ESLint integration, limiting its versatility.
Requires matching global installation if ESLint is installed globally, adding setup complexity and potential for version mismatches, as noted in the installation instructions.