Closed
Description
I wanted to put together a list of the changes I'm hoping to see in the next major version. What do you think?
- Upgrade to eslint-utils v3 (Chore: Update
eslint-utils
to v3 #148) - Drop Node 10 support and other old versions (Node 10 end-of-life 2021-04 and Node 15 end-of-life 2021-06-01) (Breaking: Drop support for Node 10, 13, 15 #151 Breaking: Drop support for old minor versions of Node 12 and 14 #212)
-
Switch to pure ES modules?Probably not practical yet. - Support ESM rules support esm #157
- Support TS rules TS support #176
- Stricter detection of function-style rules Breaking: Reduce false positives by only detecting function-style rules when the function returns an object #211 Fix: Only consider functions with a single argument as function-style rules #213
- Upgrade dev-dependencies Update all dev-dependencies ahead of v4 release #188
- Update rule options:
-
Update consistent-output rule option default toalways
since it's always best practice to assert theoutput
(Breaking: Renameconsistent-output
rule torequire-test-output
#150) - Add
meta.hasSuggestions
property to meta-property-ordering rule (Breaking: Addmeta.hasSuggestions
property tometa-property-ordering
rule #119)
-
- Update existing rules to handle suggestions functions
- Breaking:
fixer-return
should be updated to apply to suggestion fixer functions too #190 - Breaking: Message rules should be updated to apply to suggestion messages #191
- Breaking:
report-message-format
should apply to suggestion messages #192 - Breaking:
prefer-replace-text
should be updated to apply to suggestion fixer functions too #193
- Breaking:
- Add
fixer-return
torules
preset (Breaking: Addfixer-return
torules
preset #199) - Add new
recommended
rules (Breaking: Enable additionalrecommended
rules for v4 #152):I would actually add ALL existing rules. I've used all of this plugin's rules successfully in a number of my eslint plugins, and I find them pretty much all useful and agreeable. Only about 1/3 of existing rules are enabled as recommended right now, and I see this as a missed opportunity, since most people only bother to enable the recommended rules. Enabling more rules means more exposure/battle-hardening of the rules and more benefit to users.- consistent-output
- no-deprecated-context-methods
- no-only-tests
- prefer-object-rule
- require-meta-has-suggestions
- require-meta-schema
- require-meta-type
- I'll open PRs for all these changes.
- Check for any other high-priority rule proposals we should implement and enable.
- Before the major release, let's release any non-breaking changes in a patch/minor version first.