- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@types/eslint/index.d.ts
r59329aa re29cc2e 1 // Type definitions for eslint 7.281 // Type definitions for eslint 8.2 2 2 // Project: https://eslint.org 3 3 // Definitions by: Pierre-Marie Dartus <https://github.com/pmdartus> … … 10 10 11 11 /// <reference path="helpers.d.ts" /> 12 /// <reference path="lib/rules/index.d.ts" />13 12 14 13 import { JSONSchema4 } from "json-schema"; … … 718 717 719 718 interface ParserOptions { 720 ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | undefined;719 ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | "latest" |undefined; 721 720 sourceType?: "script" | "module" | undefined; 722 721 ecmaFeatures?: { … … 818 817 lintText(code: string, options?: { filePath?: string | undefined; warnIgnored?: boolean | undefined }): Promise<ESLint.LintResult[]>; 819 818 819 getRulesMetaForResults(results: ESLint.LintResult[]): ESLint.LintResultData['rulesMeta']; 820 820 821 calculateConfigForFile(filePath: string): Promise<any>; 821 822 … … 860 861 messages: Linter.LintMessage[]; 861 862 errorCount: number; 863 fatalErrorCount: number; 862 864 warningCount: number; 863 865 fixableErrorCount: number; … … 885 887 // Docs reference the type by this name 886 888 type EditInfo = Rule.Fix; 887 }888 889 //#endregion890 891 //#region CLIEngine892 893 /** @deprecated Deprecated in favor of `ESLint` */894 export class CLIEngine {895 static version: string;896 897 constructor(options: CLIEngine.Options);898 899 executeOnFiles(patterns: string[]): CLIEngine.LintReport;900 901 resolveFileGlobPatterns(patterns: string[]): string[];902 903 getConfigForFile(filePath: string): Linter.Config;904 905 executeOnText(text: string, filename?: string): CLIEngine.LintReport;906 907 addPlugin(name: string, pluginObject: any): void;908 909 isPathIgnored(filePath: string): boolean;910 911 getFormatter(format?: string): CLIEngine.Formatter;912 913 getRules(): Map<string, Rule.RuleModule>;914 915 static getErrorResults(results: CLIEngine.LintResult[]): CLIEngine.LintResult[];916 917 static getFormatter(format?: string): CLIEngine.Formatter;918 919 static outputFixes(report: CLIEngine.LintReport): void;920 }921 922 /** @deprecated Deprecated in favor of `ESLint` */923 export namespace CLIEngine {924 class Options {925 allowInlineConfig?: boolean | undefined;926 baseConfig?: false | { [name: string]: any } | undefined;927 cache?: boolean | undefined;928 cacheFile?: string | undefined;929 cacheLocation?: string | undefined;930 cacheStrategy?: "content" | "metadata" | undefined;931 configFile?: string | undefined;932 cwd?: string | undefined;933 envs?: string[] | undefined;934 errorOnUnmatchedPattern?: boolean | undefined;935 extensions?: string[] | undefined;936 fix?: boolean | undefined;937 globals?: string[] | undefined;938 ignore?: boolean | undefined;939 ignorePath?: string | undefined;940 ignorePattern?: string | string[] | undefined;941 useEslintrc?: boolean | undefined;942 parser?: string | undefined;943 parserOptions?: Linter.ParserOptions | undefined;944 plugins?: string[] | undefined;945 resolvePluginsRelativeTo?: string | undefined;946 rules?: {947 [name: string]: Linter.RuleLevel | Linter.RuleLevelAndOptions;948 } | undefined;949 rulePaths?: string[] | undefined;950 reportUnusedDisableDirectives?: boolean | undefined;951 }952 953 type LintResult = ESLint.LintResult;954 955 type LintResultData = ESLint.LintResultData;956 957 interface LintReport {958 results: LintResult[];959 errorCount: number;960 warningCount: number;961 fixableErrorCount: number;962 fixableWarningCount: number;963 usedDeprecatedRules: DeprecatedRuleUse[];964 }965 966 type DeprecatedRuleUse = ESLint.DeprecatedRuleUse;967 968 type Formatter = (results: LintResult[], data?: LintResultData) => string;969 889 } 970 890 … … 984 904 }, 985 905 ): void; 906 907 static only( 908 item: string | RuleTester.ValidTestCase | RuleTester.InvalidTestCase, 909 ): RuleTester.ValidTestCase | RuleTester.InvalidTestCase; 986 910 } 987 911 … … 991 915 options?: any; 992 916 filename?: string | undefined; 917 only?: boolean; 993 918 parserOptions?: Linter.ParserOptions | undefined; 994 919 settings?: { [name: string]: any } | undefined;
Note:
See TracChangeset
for help on using the changeset viewer.