Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: skip running warnings in --quiet mode (#17274)
* feat!: skip running warnings in --quiet mode * typo in one function * add a way to ignore disable directives for ignored rules * add some documentation * add some tests for the ruleFilter option * address some of the current feedback * add additional tests * Don't allow passing it into the base eslint class constructor * apply suggestions * make requested changes * Add disable directive tests, and fix the processing for refactors since written * Apply requested changes * fixup * fix review note
- Loading branch information
Showing
11 changed files
with
274 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = [ | ||
{ | ||
plugins: { | ||
foo: { | ||
rules: { | ||
bar: { | ||
create() { | ||
throw new Error("Rule created"); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
rules: { | ||
"foo/bar": "warn" | ||
} | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.