-
-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Description
List of rules where it should be easy / practical / useful to implement an autofixer:
- jquery-ember-run
- Add run loop?
- Low priority since jQuery use is discouraged already
- no-array-prototype-extensions (one Ember array function at a time)
- Add
any
tosome
autofixer forno-array-prototype-extensions
rule #1609 - Add
compact
tofilter
autofixer forno-array-prototype-extensions
rule #1611 - Add
filterBy
tofilter
autofixer forno-array-prototype-extensions
rule #1610 - Add
findBy
tofind
autofixer forno-array-prototype-extensions
rule #1614 - Add
getEach
tomap
autofixer forno-array-prototype-extensions
rule #1632 - Add
invoke
tomap
autofixer forno-array-prototype-extensions
rule #1631 - Add
isAny
andisEvery
autofixers forno-array-prototype-extensions
rule #1630 - Add
mapBy
tomap
autofixer forno-array-prototype-extensions
rule #1619 - Add
objectAt
autofixer forno-array-prototype-extensions
rule #1615 - Add
objectsAt
tomap
autofixer forno-array-prototype-extensions
rule #1628 - Add
reject
tofilter
autofixer for no-array-prototype-extensions rule #1629 - Add
rejectBy
tofilter
autofixer forno-array-prototype-extensions
rule #1627 - Add
setEach
toforEach
autofixer forno-array-prototype-extensions
rule #1633 - Add
sortBy
tosort
autofixer forno-array-prototype-extensions
rule #1621 - Add
toArray
autofixer forno-array-prototype-extensions
rule #1616 - Add
uniq
autofixer forno-array-prototype-extensions
rule #1620 - Add
uniqBy
toreduce
autofixer forno-array-prototype-extensions
rule #1626 - Add
without
tofilter
autofixer forno-array-prototype-extensions
rule #1617 - NEVERMIND: Observable properties (see this comment for why it's not easy to autofix these):
- NEVERMIND: MutableArray (see this comment for why it's not easy to autofix these):
- Add
- no-arrow-function-computed-properties
- Convert to non-arrow function
- no-function-prototype-extensions
- no-global-jquery
- Switch to imported jQuery
- no-jquery
- As described in the rule doc, there's a codemod that helps with this already. Should any of it be incorporated into the rule for convenience or would that duplicate too much? Low priority since codemod already exists.
- use-brace-expansion
- Adopt brace expansion, share code for this with
require-computed-property-dependencies
- Adopt brace expansion, share code for this with
- no-test-and-then
- Convert to
await
- Convert to
- Others?
This is a good "help wanted" / "first issue" for anyone who wants to help out and claim one or more of these.
Same issue for ember-template-lint: ember-template-lint/ember-template-lint#2571