-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Consolidate test related rules into plugin specific eslint confi…
…g objects, and auto-fix (#82737) I'm refactoring the eslint file to consolidate rules with their plugins. I think it'll result in more readable configs, and will give structure for enabling new rules & plugins over time, if we wanted to do that. To start I pulled all the test-related plugins into their own config objects, and override rules as needed. With this change we're able to target test-related rules only at the test files, so that's a win for ci perf. However, it turns out that the `testing-library/react` rules were not applied to `.spec.tsx` files, so there's a lot of violations there and running rules will hurt perf again. Overall perf is not my priority, in most cases we run rules only against changed files. To deal with that I created an extra config object and set those rules to be 'warn' instead of 'error' so we can fix them later & over time. As each of those warning rules is addressed we can delete that line from the eslint.config file, and once they're all done we can merge those two config objects together.
- Loading branch information
Showing
12 changed files
with
91 additions
and
88 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
Oops, something went wrong.