eslint-plugin-ava icon indicating copy to clipboard operation
eslint-plugin-ava copied to clipboard

Add `no-invalid-modifier-chain` rule

Open KinectTheUnknown opened this issue 5 years ago • 5 comments

No Invalid Modifier Chain

Fixes #186

Description

Disallows invalid combinations, order, and name of test/hook modifiers

Progress:

  • [x] Detect invalid modifiers
    • [x] Name
    • [x] Order
    • [x] Combination
  • [ ] More detailed errors
    • [ ] Conflicting modifiers
    • [ ] Order
  • [ ] Provide possible options to fix invalid modifiers
    • [ ] Mispellings
    • [ ] Order
    • [ ] Combinations
  • [ ] ~~Configurable Options~~
    • [ ] ~~Whitelist modifier names from being flagged~~ Too complicated to implement at this time
  • [ ] Properly deprecate rules (note: Properly deprecated rules aren't supported by package tests)
    • [ ] no-duplicate-modifiers
    • [ ] no-unknown-modifiers

References:

Ava Test Modifier Tree 🦄


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


KinectTheUnknown avatar Jul 29 '20 22:07 KinectTheUnknown

Impressive start @KinectTheUnknown!

What kind of feedback are you looking for at this stage?

novemberborn avatar Aug 01 '20 11:08 novemberborn

Impressive start @KinectTheUnknown!

What kind of feedback are you looking for at this stage?

I just wanted to make sure that I'm on the right path as far as the goals and features of this rule and anything else that this rule should cover.

Right now, I'm making several changes to make error messages more specific so I can implement suggestions/fixes.

KinectTheUnknown avatar Aug 01 '20 21:08 KinectTheUnknown

I just wanted to make sure that I'm on the right path as far as the goals and features of this rule and anything else that this rule should cover.

Yea I think so!

novemberborn avatar Aug 03 '20 06:08 novemberborn

@KinectTheUnknown Still interested in finishing this?

sindresorhus avatar Apr 19 '21 10:04 sindresorhus

@KinectTheUnknown Still interested in finishing this?

Yes

KinectTheUnknown avatar Apr 24 '21 11:04 KinectTheUnknown