forked from import-js/eslint-plugin-import
-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate several rules (#50)
- Loading branch information
Showing
28 changed files
with
1,316 additions
and
1,183 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"eslint-plugin-import-x": patch | ||
--- | ||
|
||
refactor: migrate several rules |
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,24 +1,37 @@ | ||
diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts | ||
index 9a3a1fd..6a2e2dd 100644 | ||
index 9a3a1fd..c6ed412 100644 | ||
--- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts | ||
+++ b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts | ||
@@ -7,15 +7,13 @@ import type { SourceCode } from './SourceCode'; | ||
@@ -6,6 +6,10 @@ import type { Scope } from './Scope'; | ||
import type { SourceCode } from './SourceCode'; | ||
export type RuleRecommendation = 'error' | 'strict' | 'warn' | false; | ||
interface RuleMetaDataDocs { | ||
/** | ||
- * Concise description of the rule | ||
+ /** | ||
+ * The category the rule falls under | ||
*/ | ||
- description: string; | ||
+ */ | ||
+ category?: string; | ||
/** | ||
- * The recommendation level for the rule. | ||
- * Used by the build tools to generate the recommended and strict configs. | ||
- * Set to false to not include it as a recommendation | ||
+ * Concise description of the rule | ||
* Concise description of the rule | ||
*/ | ||
@@ -15,7 +19,7 @@ interface RuleMetaDataDocs { | ||
* Used by the build tools to generate the recommended and strict configs. | ||
* Set to false to not include it as a recommendation | ||
*/ | ||
- recommended: 'error' | 'strict' | 'warn' | false; | ||
+ description: string; | ||
+ recommended?: 'error' | 'strict' | 'warn' | boolean; | ||
/** | ||
* The URL of the rule's docs | ||
*/ | ||
diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts | ||
index c8afefe..d629d04 100644 | ||
--- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts | ||
+++ b/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts | ||
@@ -115,7 +115,7 @@ interface RunTests<TMessageIds extends string, TOptions extends Readonly<unknown | ||
readonly invalid: readonly InvalidTestCase<TMessageIds, TOptions>[]; | ||
} | ||
interface RuleTesterConfig extends Linter.Config { | ||
- readonly parser: string; | ||
+ readonly parser?: string; | ||
readonly parserOptions?: Readonly<ParserOptions>; | ||
} | ||
declare class RuleTesterBase { |
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.