forked from babel/babel
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type definitions for eslint packages (babel#16854)
- Loading branch information
1 parent
61d0573
commit 76a4cbc
Showing
5 changed files
with
38 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type { ESLint, Linter, AST } from "eslint"; | ||
|
||
export declare const meta: ESLint.ObjectMetaProperties["meta"]; | ||
|
||
export declare const parse: (text: string, options?: any) => AST.Program; | ||
export declare const parseForESLint: ( | ||
text: string, | ||
options?: any | ||
) => Linter.ESLintParseResult; |
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,13 @@ | ||
import type { ESLint, Rule } from "eslint"; | ||
|
||
type Rules = | ||
| "new-cap" | ||
| "no-invalid-this" | ||
| "no-undef" | ||
| "no-unused-expressions" | ||
| "object-curly-spacing" | ||
| "semi"; | ||
|
||
export declare const meta: ESLint.ObjectMetaProperties["meta"]; | ||
export declare const rules: Record<Rules, Rule.RuleModule>; | ||
export declare const rulesConfig: Record<Rules, string>; |