Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Stricter rule test validations (#17654)
* feat!: rule tester require suggestion matchers * feat!: rule tester require message or messageId * feat!: rule tester require output for suggestions * feat!: rule tester only allow desc or messageId in suggestion matchers * feat!: rule tester require suggestion output differs from original source code * feat!: rule tester typecheck only and filename test case properties * feat!: rule tester check whether code and output is equal * docs: update rule tester documentation to reflect additional assertions * fix: fix invalid test cases of builtin rules * fix: remove unnecessary space for the suggestion prefix * chore: fixing merge diversions * fix: remove incorrect claim that data is required if messageId with placeholders is used * chore: remove potentially confusing differentation between missing and failing fixer * fix: better explanation for missing suggestions * feat: support specifying an suggestion amount * fix: ecmaVersion should be a languageOptions property (not parserOptions) * chore: tweak message for omitting output if there is no autofix * chore: fixup using old error message for the output property and update its docs * fix: fixup reported error messages * fix: refine more assertion messages * docs: document suggestion can also be a number * chore: simplify suggestion existence checks * feat: check string and regexp error matchers for missing suggestion matchers * chore: cleanup message for missing suggestions when testing only the message
- Loading branch information