This refactors the project to be an ESLint plugin, which provides a lot of additional benefits under the hood (testing framework, automatic retry, editor suggestions/errors, bailing if a syntax error would be produced, and of course, a supportive community with awesome tools like eslint-remote-tester)
Renamed for consistency with existing ESLint rules and brevity. Does the same thing, though.
exports-at-eof -> no-inline-export
The transformation is a little less opinionated - it will no longer try to convert default exports to named ones. It will add one export statement per inline export, but this can be fixed with the group-exports rule
named-exports-only -> no-default-export
Similarly, this rule is less opinionated and will export the function inline, but it can be used in conjunction with no-inline-export to be automatically fixed and placed as the last statement in the file. It will no longer update imports, but they should be easy enough to find
group-exports
Based on import/group-exports, but with a fixer. Mitigates the extra work that exports-at-eof/no-inline-exports used to do.
For the remaining rules, other replacements have been listed and tested. I will be creating a new package to ship my own config which will extend this package.
Resolves #50
This refactors the project to be an ESLint plugin, which provides a lot of additional benefits under the hood (testing framework, automatic retry, editor suggestions/errors, bailing if a syntax error would be produced, and of course, a supportive community with awesome tools like
eslint-remote-tester
)alphabetize-dependency-lists
->sort-dependency-list
exports-at-eof
->no-inline-export
group-exports
rulenamed-exports-only
->no-default-export
no-inline-export
to be automatically fixed and placed as the last statement in the file. It will no longer update imports, but they should be easy enough to findgroup-exports
import/group-exports
, but with a fixer. Mitigates the extra work thatexports-at-eof
/no-inline-exports
used to do.For the remaining rules, other replacements have been listed and tested. I will be creating a new package to ship my own config which will extend this package.