Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

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.28
     1// Type definitions for eslint 8.2
    22// Project: https://eslint.org
    33// Definitions by: Pierre-Marie Dartus <https://github.com/pmdartus>
     
    1010
    1111/// <reference path="helpers.d.ts" />
    12 /// <reference path="lib/rules/index.d.ts" />
    1312
    1413import { JSONSchema4 } from "json-schema";
     
    718717
    719718    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;
    721720        sourceType?: "script" | "module" | undefined;
    722721        ecmaFeatures?: {
     
    818817    lintText(code: string, options?: { filePath?: string | undefined; warnIgnored?: boolean | undefined }): Promise<ESLint.LintResult[]>;
    819818
     819    getRulesMetaForResults(results: ESLint.LintResult[]): ESLint.LintResultData['rulesMeta'];
     820
    820821    calculateConfigForFile(filePath: string): Promise<any>;
    821822
     
    860861        messages: Linter.LintMessage[];
    861862        errorCount: number;
     863        fatalErrorCount: number;
    862864        warningCount: number;
    863865        fixableErrorCount: number;
     
    885887    // Docs reference the type by this name
    886888    type EditInfo = Rule.Fix;
    887 }
    888 
    889 //#endregion
    890 
    891 //#region CLIEngine
    892 
    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;
    969889}
    970890
     
    984904        },
    985905    ): void;
     906
     907    static only(
     908        item: string | RuleTester.ValidTestCase | RuleTester.InvalidTestCase,
     909    ): RuleTester.ValidTestCase | RuleTester.InvalidTestCase;
    986910}
    987911
     
    991915        options?: any;
    992916        filename?: string | undefined;
     917        only?: boolean;
    993918        parserOptions?: Linter.ParserOptions | undefined;
    994919        settings?: { [name: string]: any } | undefined;
Note: See TracChangeset for help on using the changeset viewer.