-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
/* eslint-disable */ | ||
|
||
// Copied from /[email protected]/node_modules/eslint/lib/cli.js | ||
/** | ||
* This file is directly copied from https://github.com/eslint/eslint/blob/6f940c3ce715327f282c197d0f71b91848e5d83d/lib/cli.js | ||
* | ||
* Usually, developer rarely use JS programming API to run ESLint. So we let | ||
* developers to write their own ESLint commands just like in CI or lint-staged. | ||
* And the config will be translated and pass to `new ESLint(translatedOptions)`. | ||
* So in build mode, it's the same as the command you pass in. | ||
* In dev mode, some flag will be ignored (such as `max-warnings`) because it | ||
* will be only respected in ESLint CLI. | ||
*/ | ||
|
||
// @ts-expect-error | ||
function quietFixPredicate(message) { | ||
|
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