@types/eslint
Advanced tools
Comparing version 8.4.10 to 8.21.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for eslint 8.4 | ||
// Type definitions for eslint 8.21 | ||
// Project: https://eslint.org | ||
@@ -843,2 +843,86 @@ // Definitions by: Pierre-Marie Dartus <https://github.com/pmdartus> | ||
} | ||
interface FlatConfig { | ||
/** | ||
* An array of glob patterns indicating the files that the configuration | ||
* object should apply to. If not specified, the configuration object applies | ||
* to all files | ||
*/ | ||
files?: string | string[]; | ||
/** | ||
* An array of glob patterns indicating the files that the configuration | ||
* object should not apply to. If not specified, the configuration object | ||
* applies to all files matched by files | ||
*/ | ||
ignores?: string | string[]; | ||
/** | ||
* An object containing settings related to how JavaScript is configured for | ||
* linting. | ||
*/ | ||
languageOptions?: { | ||
/** | ||
* The version of ECMAScript to support. May be any year (i.e., 2022) or | ||
* version (i.e., 5). Set to "latest" for the most recent supported version. | ||
* @default "latest" | ||
*/ | ||
ecmaVersion?: ParserOptions["ecmaVersion"], | ||
/** | ||
* The type of JavaScript source code. Possible values are "script" for | ||
* traditional script files, "module" for ECMAScript modules (ESM), and | ||
* "commonjs" for CommonJS files. (default: "module" for .js and .mjs | ||
* files; "commonjs" for .cjs files) | ||
*/ | ||
sourceType?: "script" | "module" | "commonjs", | ||
/** | ||
* An object specifying additional objects that should be added to the | ||
* global scope during linting. | ||
*/ | ||
globals?: ESLint.Environment["globals"], | ||
/** | ||
* Either an object containing a parse() method or a string indicating the | ||
* name of a parser inside of a plugin (i.e., "pluginName/parserName"). | ||
* @default "@/espree" | ||
*/ | ||
parser?: string, | ||
/** | ||
* An object specifying additional options that are passed directly to the | ||
* parser() method on the parser. The available options are parser-dependent | ||
*/ | ||
parserOptions?: ESLint.Environment["parserOptions"], | ||
}; | ||
/** | ||
* An object containing settings related to the linting process | ||
*/ | ||
linterOptions?: { | ||
/** | ||
* A Boolean value indicating if inline configuration is allowed. | ||
*/ | ||
noInlineConfig?: boolean, | ||
/** | ||
* A Boolean value indicating if unused disable directives should be | ||
* tracked and reported. | ||
*/ | ||
reportUnusedDisableDirectives?: boolean, | ||
}; | ||
/** | ||
* Either an object containing preprocess() and postprocess() methods or a | ||
* string indicating the name of a processor inside of a plugin | ||
* (i.e., "pluginName/processorName"). | ||
*/ | ||
processor?: string | Processor; | ||
/** | ||
* An object containing a name-value mapping of plugin names to plugin objects. | ||
* When files is specified, these plugins are only available to the matching files. | ||
*/ | ||
plugins?: Record<string, ESLint.Plugin>; | ||
/** | ||
* An object containing the configured rules. When files or ignores are specified, | ||
* these rule configurations are only available to the matching files. | ||
*/ | ||
rules?: RulesRecord; | ||
/** | ||
* An object containing name-value pairs of information that should be | ||
* available to all rules. | ||
*/ | ||
settings?: Record<string, unknown>; | ||
} | ||
} | ||
@@ -845,0 +929,0 @@ |
{ | ||
"name": "@types/eslint", | ||
"version": "8.4.10", | ||
"version": "8.21.0", | ||
"description": "TypeScript definitions for eslint", | ||
@@ -51,4 +51,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint", | ||
}, | ||
"typesPublisherContentHash": "72eebaf6c36095f8ff4f5da33b8e88702e5319be7c8fcf478305800aa5fbc8de", | ||
"typeScriptVersion": "4.1", | ||
"typesPublisherContentHash": "0d536ccb26f0c052f34f17f33a8d0c976d305d9886db1c6d371d8629114477d7", | ||
"typeScriptVersion": "4.2", | ||
"exports": { | ||
@@ -55,0 +55,0 @@ ".": { |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 04 Nov 2022 15:02:54 GMT | ||
* Last updated: Thu, 02 Feb 2023 13:02:42 GMT | ||
* Dependencies: [@types/estree](https://npmjs.com/package/@types/estree), [@types/json-schema](https://npmjs.com/package/@types/json-schema) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168463
5099