Comparing version 9.12.0 to 9.13.0
@@ -12,2 +12,7 @@ #!/usr/bin/env node | ||
const mod = require("node:module"); | ||
// to use V8's code cache to speed up instantiation time | ||
mod.enableCompileCache?.(); | ||
// must do this initialization *before* other requires in order to work | ||
@@ -14,0 +19,0 @@ if (process.argv.includes("--debug")) { |
@@ -149,6 +149,6 @@ /** | ||
let globals = {}; | ||
const languageOptions = {}; | ||
if (global) { | ||
globals = global.reduce((obj, name) => { | ||
languageOptions.globals = global.reduce((obj, name) => { | ||
if (name.endsWith(":true")) { | ||
@@ -160,10 +160,15 @@ obj[name.slice(0, -5)] = "writable"; | ||
return obj; | ||
}, globals); | ||
}, {}); | ||
} | ||
if (parserOptions) { | ||
languageOptions.parserOptions = parserOptions; | ||
} | ||
if (parser) { | ||
languageOptions.parser = await importer.import(parser); | ||
} | ||
overrideConfig = [{ | ||
languageOptions: { | ||
globals, | ||
parserOptions: parserOptions || {} | ||
}, | ||
...Object.keys(languageOptions).length > 0 ? { languageOptions } : {}, | ||
rules: rule ? rule : {} | ||
@@ -180,6 +185,2 @@ }]; | ||
if (parser) { | ||
overrideConfig[0].languageOptions.parser = await importer.import(parser); | ||
} | ||
if (plugin) { | ||
@@ -384,3 +385,3 @@ overrideConfig[0].plugins = await loadPlugins(importer, plugin); | ||
if (allowFlatConfig && !usingFlatConfig) { | ||
process.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details.", "ESLintRCWarning"); | ||
process.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.", "ESLintRCWarning"); | ||
} | ||
@@ -387,0 +388,0 @@ |
@@ -176,6 +176,12 @@ /** | ||
const createJiti = await import("jiti").then(jitiModule => (typeof jitiModule?.createJiti === "function" ? jitiModule.createJiti : jitiModule.default), () => { | ||
// eslint-disable-next-line no-use-before-define -- `ConfigLoader.loadJiti` can be overwritten for testing | ||
const { createJiti } = await ConfigLoader.loadJiti().catch(() => { | ||
throw new Error("The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it."); | ||
}); | ||
// `createJiti` was added in jiti v2. | ||
if (typeof createJiti !== "function") { | ||
throw new Error("You are using an outdated version of the 'jiti' library. Please update to the latest version of 'jiti' to ensure compatibility and access to the latest features."); | ||
} | ||
/* | ||
@@ -187,7 +193,2 @@ * Disabling `moduleCache` allows us to reload a | ||
const jiti = createJiti(__filename, { moduleCache: false, interopDefault: false }); | ||
if (typeof jiti?.import !== "function") { | ||
throw new Error("You are using an outdated version of the 'jiti' library. Please update to the latest version of 'jiti' to ensure compatibility and access to the latest features."); | ||
} | ||
const config = await jiti.import(fileURL.href); | ||
@@ -299,3 +300,2 @@ | ||
//----------------------------------------------------------------------------- | ||
@@ -523,2 +523,11 @@ // Exports | ||
/** | ||
* Used to import the jiti dependency. This method is exposed internally for testing purposes. | ||
* @returns {Promise<Record<string, unknown>>} A promise that fulfills with a module object | ||
* or rejects with an error if jiti is not found. | ||
*/ | ||
static loadJiti() { | ||
return import("jiti"); | ||
} | ||
} | ||
@@ -525,0 +534,0 @@ |
@@ -191,6 +191,2 @@ /** | ||
if (languageOptions) { | ||
this.languageOptions = languageOptions; | ||
} | ||
// Check language value | ||
@@ -207,9 +203,16 @@ const { pluginName: languagePluginName, objectName: localLanguageName } = splitPluginIdentifier(language); | ||
if (this.language.defaultLanguageOptions ?? languageOptions) { | ||
this.languageOptions = flatConfigSchema.languageOptions.merge( | ||
this.language.defaultLanguageOptions, | ||
languageOptions | ||
); | ||
} else { | ||
this.languageOptions = {}; | ||
} | ||
// Validate language options | ||
if (this.languageOptions) { | ||
try { | ||
this.language.validateLanguageOptions(this.languageOptions); | ||
} catch (error) { | ||
throw new TypeError(`Key "languageOptions": ${error.message}`, { cause: error }); | ||
} | ||
try { | ||
this.language.validateLanguageOptions(this.languageOptions); | ||
} catch (error) { | ||
throw new TypeError(`Key "languageOptions": ${error.message}`, { cause: error }); | ||
} | ||
@@ -216,0 +219,0 @@ |
@@ -18,3 +18,3 @@ /** | ||
exports.defaultConfig = [ | ||
exports.defaultConfig = Object.freeze([ | ||
{ | ||
@@ -46,8 +46,2 @@ plugins: { | ||
language: "@/js", | ||
languageOptions: { | ||
sourceType: "module", | ||
ecmaVersion: "latest", | ||
parser: require("espree"), | ||
parserOptions: {} | ||
}, | ||
linterOptions: { | ||
@@ -77,2 +71,2 @@ reportUnusedDisableDirectives: 1 | ||
} | ||
]; | ||
]); |
@@ -18,2 +18,3 @@ /** | ||
const { getRuleFromConfig } = require("../config/flat-config-helpers"); | ||
const { defaultConfig } = require("../config/default-config"); | ||
const { | ||
@@ -56,2 +57,3 @@ Legacy: { | ||
// For VSCode IntelliSense | ||
/** @typedef {import("../cli-engine/cli-engine").ConfigArray} ConfigArray */ | ||
/** @typedef {import("../shared/types").ConfigData} ConfigData */ | ||
@@ -528,2 +530,11 @@ /** @typedef {import("../shared/types").DeprecatedRuleInfo} DeprecatedRuleInfo */ | ||
/** | ||
* The default configuration that ESLint uses internally. This is provided for tooling that wants to calculate configurations using the same defaults as ESLint. | ||
* Keep in mind that the default configuration may change from version to version, so you shouldn't rely on any particular keys or values to be present. | ||
* @type {ConfigArray} | ||
*/ | ||
static get defaultConfig() { | ||
return defaultConfig; | ||
} | ||
/** | ||
* Outputs fixes from the given results to files. | ||
@@ -530,0 +541,0 @@ * @param {LintResult[]} results The lint results. |
@@ -15,2 +15,3 @@ /** | ||
const astUtils = require("../../shared/ast-utils"); | ||
const espree = require("espree"); | ||
const eslintScope = require("eslint-scope"); | ||
@@ -73,2 +74,9 @@ const evk = require("eslint-visitor-keys"); | ||
defaultLanguageOptions: { | ||
sourceType: "module", | ||
ecmaVersion: "latest", | ||
parser: espree, | ||
parserOptions: {} | ||
}, | ||
validateLanguageOptions, | ||
@@ -75,0 +83,0 @@ |
@@ -33,2 +33,3 @@ /** | ||
const jslang = require("../languages/js"); | ||
const { SourceCode } = require("../languages/js/source-code"); | ||
@@ -623,6 +624,3 @@ | ||
}, | ||
language: defaultConfig[0].language, | ||
languageOptions: { | ||
...defaultConfig[0].languageOptions | ||
} | ||
language: defaultConfig[0].language | ||
}, | ||
@@ -678,3 +676,6 @@ ...defaultConfig.slice(1) | ||
// wrap the parser to catch start/end property access | ||
calculatedConfig.languageOptions.parser = wrapParser(calculatedConfig.languageOptions.parser); | ||
if (calculatedConfig.language === jslang) { | ||
calculatedConfig.languageOptions.parser = wrapParser(calculatedConfig.languageOptions.parser); | ||
} | ||
return calculatedConfig; | ||
@@ -700,13 +701,2 @@ }; | ||
// wrap any parsers | ||
if (itemConfig.languageOptions && itemConfig.languageOptions.parser) { | ||
const parser = itemConfig.languageOptions.parser; | ||
if (parser && typeof parser !== "object") { | ||
throw new Error("Parser must be an object with a parse() or parseForESLint() method."); | ||
} | ||
} | ||
/* | ||
@@ -713,0 +703,0 @@ * Create the config object from the tester config and this item |
@@ -121,2 +121,7 @@ /** | ||
maximum: number; | ||
/** | ||
* @default "classic" | ||
* @since 9.12.0 | ||
*/ | ||
variant: "classic" | "modified"; | ||
}> | ||
@@ -189,2 +194,3 @@ | number, | ||
* @since 0.21.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/dot-location) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/dot-location | ||
@@ -422,2 +428,6 @@ */ | ||
allowEmptyCase: boolean; | ||
/** | ||
* @default false | ||
*/ | ||
reportUnusedFallthroughComment: boolean; | ||
}>, | ||
@@ -431,2 +441,3 @@ ] | ||
* @since 0.0.6 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-floating-decimal) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-floating-decimal | ||
@@ -608,2 +619,3 @@ */ | ||
* @since 0.9.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-multi-spaces) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-multi-spaces | ||
@@ -881,2 +893,11 @@ */ | ||
/** | ||
* Disallow variable assignments when the value is not used | ||
* | ||
* | ||
* @since 9.0.0-alpha.1 | ||
* @see https://eslint.org/docs/latest/rules/no-useless-assignment | ||
*/ | ||
"no-useless-assignment": Linter.RuleEntry<[]>; | ||
/** | ||
* Disallow useless backreferences in regular expressions | ||
@@ -1054,3 +1075,3 @@ * | ||
/** | ||
* Rule to enforce the use of `u` flag on RegExp. | ||
* Enforce the use of `u` or `v` flag on RegExp | ||
* | ||
@@ -1060,3 +1081,12 @@ * @since 5.3.0 | ||
*/ | ||
"require-unicode-regexp": Linter.RuleEntry<[]>; | ||
"require-unicode-regexp": Linter.RuleEntry< | ||
[ | ||
Partial<{ | ||
/** | ||
* @default false | ||
*/ | ||
requireFlag: "u" | "v"; | ||
}>, | ||
] | ||
>; | ||
@@ -1075,2 +1105,3 @@ /** | ||
* @since 0.0.9 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/wrap-iife) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/wrap-iife | ||
@@ -1077,0 +1108,0 @@ */ |
@@ -195,2 +195,20 @@ /** | ||
/** | ||
* Rule to disallow `Object` constructors. | ||
* | ||
* @since 0.0.9 | ||
* @deprecated since 8.50.0, use [`no-object-constructor`](https://eslint.org/docs/rules/no-object-constructor) instead. | ||
* @see https://eslint.org/docs/rules/no-object-constructor | ||
*/ | ||
"no-new-object": Linter.RuleEntry<[]>; | ||
/** | ||
* Rule to disallow `new` operators with the `Symbol` object. | ||
* | ||
* @since 2.0.0-beta.1 | ||
* @deprecated since 8.27.0, use [`no-new-native-nonconstructor`](https://eslint.org/docs/rules/no-new-native-nonconstructor) instead. | ||
* @see https://eslint.org/docs/rules/no-new-symbol | ||
*/ | ||
"no-new-symbol": Linter.RuleEntry<[]>; | ||
/** | ||
* Rule to disallow spacing between function identifiers and their applications. | ||
@@ -218,79 +236,2 @@ * | ||
>; | ||
/** | ||
* Rule to require JSDoc comments. | ||
* | ||
* @since 1.4.0 | ||
* @deprecated since 5.10.0 | ||
* @see https://eslint.org/docs/rules/require-jsdoc | ||
*/ | ||
"require-jsdoc": Linter.RuleEntry< | ||
[ | ||
Partial<{ | ||
require: Partial<{ | ||
/** | ||
* @default true | ||
*/ | ||
FunctionDeclaration: boolean; | ||
/** | ||
* @default false | ||
*/ | ||
MethodDefinition: boolean; | ||
/** | ||
* @default false | ||
*/ | ||
ClassDeclaration: boolean; | ||
/** | ||
* @default false | ||
*/ | ||
ArrowFunctionExpression: boolean; | ||
/** | ||
* @default false | ||
*/ | ||
FunctionExpression: boolean; | ||
}>; | ||
}>, | ||
] | ||
>; | ||
/** | ||
* Rule to enforce valid JSDoc comments. | ||
* | ||
* @since 0.4.0 | ||
* @deprecated since 5.10.0 | ||
* @see https://eslint.org/docs/rules/valid-jsdoc | ||
*/ | ||
"valid-jsdoc": Linter.RuleEntry< | ||
[ | ||
Partial<{ | ||
prefer: Record<string, string>; | ||
preferType: Record<string, string>; | ||
/** | ||
* @default true | ||
*/ | ||
requireReturn: boolean; | ||
/** | ||
* @default true | ||
*/ | ||
requireReturnType: boolean; | ||
/** | ||
* @remarks | ||
* Also accept for regular expression pattern | ||
*/ | ||
matchDescription: string; | ||
/** | ||
* @default true | ||
*/ | ||
requireParamDescription: boolean; | ||
/** | ||
* @default true | ||
*/ | ||
requireReturnDescription: boolean; | ||
/** | ||
* @default true | ||
*/ | ||
requireParamType: boolean; | ||
}>, | ||
] | ||
>; | ||
} |
@@ -55,2 +55,3 @@ /** | ||
* @since 1.0.0-rc-1 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/arrow-parens) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/arrow-parens | ||
@@ -76,2 +77,3 @@ */ | ||
* @since 1.0.0-rc-1 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/arrow-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/arrow-spacing | ||
@@ -96,2 +98,3 @@ */ | ||
* @since 0.17.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/generator-star-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/generator-star-spacing | ||
@@ -174,2 +177,3 @@ */ | ||
* @since 2.0.0-alpha-2 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-confusing-arrow) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-confusing-arrow | ||
@@ -228,11 +232,11 @@ */ | ||
/** | ||
* Rule to disallow `new` operators with the `Symbol` object. | ||
* | ||
* Rule to disallow `new` operator with global non-constructor functions | ||
* | ||
* @remarks | ||
* Recommended by ESLint, the rule was enabled in `eslint:recommended`. | ||
* | ||
* @since 2.0.0-beta.1 | ||
* @see https://eslint.org/docs/rules/no-new-symbol | ||
* @since 8.27.0 | ||
* @see https://eslint.org/docs/rules/no-new-native-nonconstructor | ||
*/ | ||
"no-new-symbol": Linter.RuleEntry<[]>; | ||
"no-new-native-nonconstructor": Linter.RuleEntry<[]>; | ||
@@ -332,3 +336,12 @@ /** | ||
*/ | ||
"no-useless-computed-key": Linter.RuleEntry<[]>; | ||
"no-useless-computed-key": Linter.RuleEntry< | ||
[ | ||
Partial<{ | ||
/** | ||
* @default true | ||
*/ | ||
enforceForClassMembers: boolean; | ||
}>, | ||
] | ||
>; | ||
@@ -546,2 +559,3 @@ /** | ||
* @since 2.12.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/rest-spread-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/rest-spread-spacing | ||
@@ -596,2 +610,3 @@ */ | ||
* @since 2.0.0-rc.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/template-curly-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/template-curly-spacing | ||
@@ -605,2 +620,3 @@ */ | ||
* @since 2.0.0-alpha-1 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/yield-star-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/yield-star-spacing | ||
@@ -607,0 +623,0 @@ */ |
@@ -283,2 +283,3 @@ /** | ||
* @since 0.1.4 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-extra-parens) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-extra-parens | ||
@@ -323,2 +324,3 @@ */ | ||
* @since 0.0.9 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-extra-semi) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-extra-semi | ||
@@ -325,0 +327,0 @@ */ |
@@ -35,2 +35,3 @@ /** | ||
* @since 4.0.0-alpha.1 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/array-bracket-newline) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/array-bracket-newline | ||
@@ -60,2 +61,3 @@ */ | ||
* @since 0.24.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/array-bracket-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/array-bracket-spacing | ||
@@ -107,2 +109,3 @@ */ | ||
* @since 4.0.0-rc.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/array-element-newline) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/array-element-newline | ||
@@ -132,2 +135,3 @@ */ | ||
* @since 1.2.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/block-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/block-spacing | ||
@@ -141,2 +145,3 @@ */ | ||
* @since 0.0.7 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/brace-style) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/brace-style | ||
@@ -219,2 +224,3 @@ */ | ||
* @since 0.16.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/comma-dangle) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/comma-dangle | ||
@@ -257,2 +263,3 @@ */ | ||
* @since 0.9.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/comma-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/comma-spacing | ||
@@ -279,2 +286,3 @@ */ | ||
* @since 0.9.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/comma-style) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/comma-style | ||
@@ -295,2 +303,3 @@ */ | ||
* @since 0.23.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/computed-property-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/computed-property-spacing | ||
@@ -312,2 +321,3 @@ */ | ||
* @since 0.7.1 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/eol-last) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/eol-last | ||
@@ -325,2 +335,3 @@ */ | ||
* @since 3.3.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/function-call-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/func-call-spacing | ||
@@ -396,2 +407,5 @@ */ | ||
allowArrowFunctions: boolean; | ||
overrides: { | ||
namedExports: "declaration" | "expression" | "ignore"; | ||
} | ||
}>, | ||
@@ -405,2 +419,3 @@ ] | ||
* @since 4.6.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/function-paren-newline) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/function-paren-newline | ||
@@ -485,2 +500,3 @@ */ | ||
* @since 4.12.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/implicit-arrow-linebreak) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/implicit-arrow-linebreak | ||
@@ -596,2 +612,3 @@ */ | ||
* @since 1.4.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/jsx-quotes) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/jsx-quotes | ||
@@ -605,2 +622,3 @@ */ | ||
* @since 0.9.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/key-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/key-spacing | ||
@@ -761,2 +779,3 @@ */ | ||
* @since 2.0.0-beta.1 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/keyword-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/keyword-spacing | ||
@@ -790,2 +809,3 @@ */ | ||
* @since 3.5.0 | ||
* @deprecated since 9.3.0, please use the [corresponding rule](https://eslint.style/rules/js/line-comment-position) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/line-comment-position | ||
@@ -813,2 +833,3 @@ */ | ||
* @since 0.21.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/linebreak-style) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/linebreak-style | ||
@@ -822,2 +843,3 @@ */ | ||
* @since 0.22.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/lines-around-comment) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/lines-around-comment | ||
@@ -889,2 +911,3 @@ */ | ||
* @since 4.9.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/lines-between-class-members) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/lines-between-class-members | ||
@@ -894,3 +917,11 @@ */ | ||
[ | ||
"always" | "never", | ||
"always" | "never" | { | ||
enforce: Array< | ||
{ | ||
blankLine: "always" | "never"; | ||
prev: "method" | "field" | "*"; | ||
next: "method" | "field" | "*"; | ||
} | ||
> | ||
}, | ||
Partial<{ | ||
@@ -926,2 +957,3 @@ /** | ||
* @since 0.0.9 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/max-len) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/max-len | ||
@@ -1087,2 +1119,3 @@ */ | ||
* @since 2.5.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/max-statements-per-line) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/max-statements-per-line | ||
@@ -1106,2 +1139,3 @@ */ | ||
* @since 4.10.0 | ||
* @deprecated since 9.3.0, please use the [corresponding rule](https://eslint.style/rules/js/multiline-comment-style) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/multiline-comment-style | ||
@@ -1115,2 +1149,3 @@ */ | ||
* @since 3.1.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/multiline-ternary) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/multiline-ternary | ||
@@ -1153,2 +1188,3 @@ */ | ||
* @since 0.0.6 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/new-parens) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/new-parens | ||
@@ -1162,2 +1198,3 @@ */ | ||
* @since 2.0.0-rc.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/newline-per-chained-call) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/newline-per-chained-call | ||
@@ -1230,2 +1267,3 @@ */ | ||
* @since 2.12.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-mixed-operators) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-mixed-operators | ||
@@ -1262,2 +1300,3 @@ */ | ||
* @since 0.7.1 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-mixed-spaces-and-tabs) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-mixed-spaces-and-tabs | ||
@@ -1279,2 +1318,3 @@ */ | ||
* @since 0.9.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-multiple-empty-lines) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-multiple-empty-lines | ||
@@ -1313,8 +1353,8 @@ */ | ||
/** | ||
* Rule to disallow `Object` constructors. | ||
* Rule to disallow calls to the `Object` constructor without an argument | ||
* | ||
* @since 0.0.9 | ||
* @see https://eslint.org/docs/rules/no-new-object | ||
* @since 8.50.0 | ||
* @see https://eslint.org/docs/rules/no-object-constructor | ||
*/ | ||
"no-new-object": Linter.RuleEntry<[]>; | ||
"no-object-constructor": Linter.RuleEntry<[]>; | ||
@@ -1360,2 +1400,3 @@ /** | ||
* @since 3.2.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-tabs) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-tabs | ||
@@ -1386,2 +1427,3 @@ */ | ||
* @since 0.7.1 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-trailing-spaces) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-trailing-spaces | ||
@@ -1476,2 +1518,3 @@ */ | ||
* @since 2.0.0-beta.1 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-whitespace-before-property) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/no-whitespace-before-property | ||
@@ -1485,2 +1528,3 @@ */ | ||
* @since 3.17.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/nonblock-statement-body-position) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/nonblock-statement-body-position | ||
@@ -1501,2 +1545,3 @@ */ | ||
* @since 2.12.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/object-curly-newline) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/object-curly-newline | ||
@@ -1544,2 +1589,3 @@ */ | ||
* @since 0.22.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/object-curly-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/object-curly-spacing | ||
@@ -1583,2 +1629,3 @@ */ | ||
* @since 2.10.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/object-property-newline) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/object-property-newline | ||
@@ -1624,2 +1671,3 @@ */ | ||
* @since 2.0.0-beta.3 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/one-var-declaration-per-line) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/one-var-declaration-per-line | ||
@@ -1641,2 +1689,3 @@ */ | ||
* @since 0.19.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/operator-linebreak) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/operator-linebreak | ||
@@ -1657,2 +1706,3 @@ */ | ||
* @since 0.9.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/padded-blocks) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/padded-blocks | ||
@@ -1676,2 +1726,3 @@ */ | ||
* @since 4.0.0-beta.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/padding-line-between-statements) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/padding-line-between-statements | ||
@@ -1701,2 +1752,3 @@ */ | ||
* @since 0.0.6 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/quote-props) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/quote-props | ||
@@ -1793,2 +1845,3 @@ */ | ||
* @since 0.16.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/semi-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/semi-spacing | ||
@@ -1815,2 +1868,3 @@ */ | ||
* @since 4.0.0-beta.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/semi-style) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/semi-style | ||
@@ -1871,2 +1925,3 @@ */ | ||
* @since 0.9.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-before-blocks) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/space-before-blocks | ||
@@ -1882,2 +1937,3 @@ */ | ||
* @since 0.18.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-before-function-paren) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/space-before-function-paren | ||
@@ -1893,2 +1949,3 @@ */ | ||
* @since 0.8.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-in-parens) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/space-in-parens | ||
@@ -1909,2 +1966,3 @@ */ | ||
* @since 0.2.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-infix-ops) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/space-infix-ops | ||
@@ -1927,2 +1985,3 @@ */ | ||
* @since 0.10.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-unary-ops) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/space-unary-ops | ||
@@ -1950,2 +2009,3 @@ */ | ||
* @since 0.23.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/spaced-comment) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/spaced-comment | ||
@@ -1979,2 +2039,3 @@ */ | ||
* @since 4.0.0-beta.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/switch-colon-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/switch-colon-spacing | ||
@@ -2001,2 +2062,3 @@ */ | ||
* @since 3.15.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/template-tag-spacing) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/template-tag-spacing | ||
@@ -2018,2 +2080,3 @@ */ | ||
* @since 0.1.0 | ||
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/wrap-regex) in `@stylistic/eslint-plugin-js`. | ||
* @see https://eslint.org/docs/rules/wrap-regex | ||
@@ -2020,0 +2083,0 @@ */ |
@@ -188,3 +188,3 @@ /** | ||
/** | ||
* @default 'none' | ||
* @default 'all' | ||
*/ | ||
@@ -194,2 +194,10 @@ caughtErrors: "none" | "all"; | ||
destructuredArrayIgnorePattern: string; | ||
/** | ||
* @default false | ||
*/ | ||
ignoreClassWithStaticInitBlock: boolean; | ||
/** | ||
* @default false | ||
*/ | ||
reportUsedIgnorePattern: boolean; | ||
}>, | ||
@@ -196,0 +204,0 @@ ] |
{ | ||
"name": "eslint", | ||
"version": "9.12.0", | ||
"version": "9.13.0", | ||
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>", | ||
"description": "An AST-based pattern checker for JavaScript.", | ||
"type": "commonjs", | ||
"bin": { | ||
@@ -102,5 +103,5 @@ "eslint": "./bin/eslint.js" | ||
"@eslint/config-array": "^0.18.0", | ||
"@eslint/core": "^0.6.0", | ||
"@eslint/core": "^0.7.0", | ||
"@eslint/eslintrc": "^3.1.0", | ||
"@eslint/js": "9.12.0", | ||
"@eslint/js": "9.13.0", | ||
"@eslint/plugin-kit": "^0.2.0", | ||
@@ -171,3 +172,3 @@ "@humanfs/node": "^0.16.5", | ||
"jiti": "^2.1.0", | ||
"knip": "^5.21.0", | ||
"knip": "^5.32.0", | ||
"lint-staged": "^11.0.0", | ||
@@ -174,0 +175,0 @@ "load-perf": "^0.2.0", |
@@ -292,8 +292,9 @@ [![npm version](https://img.shields.io/npm/v/eslint.svg)](https://www.npmjs.com/package/eslint) | ||
<!-- NOTE: This section is autogenerated. Do not manually edit.--> | ||
<!--sponsorsstart--> | ||
## Sponsors | ||
The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) to get your logo on our README and website. | ||
The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) | ||
to get your logo on our READMEs and [website](https://eslint.org/sponsors). | ||
<!-- NOTE: This section is autogenerated. Do not manually edit.--> | ||
<!--sponsorsstart--> | ||
<h3>Platinum Sponsors</h3> | ||
@@ -304,10 +305,8 @@ <p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="128"></a></p><h3>Gold Sponsors</h3> | ||
<p><a href="https://www.wordhint.net/"><img src="https://images.opencollective.com/wordhint/be86813/avatar.png" alt="WordHint" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340?v=4" alt="GitBook" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104?v=4" alt="Nx" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774?v=4" alt="HeroCoders" height="32"></a> <a href="https://usenextbase.com"><img src="https://avatars.githubusercontent.com/u/145838380?v=4" alt="Nextbase Starter Kit" height="32"></a></p> | ||
<h3>Technology Sponsors</h3> | ||
Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. | ||
<p><a href="https://netlify.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/netlify-icon.svg" alt="Netlify" height="32"></a> <a href="https://algolia.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/algolia-icon.svg" alt="Algolia" height="32"></a> <a href="https://1password.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/1password-icon.svg" alt="1Password" height="32"></a></p> | ||
<!--sponsorsend--> | ||
<!--techsponsorsstart--> | ||
<h2>Technology Sponsors</h2> | ||
<p><a href="https://netlify.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/netlify-icon.svg" alt="Netlify" height="32"></a> <a href="https://algolia.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/algolia-icon.svg" alt="Algolia" height="32"></a> <a href="https://1password.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/1password-icon.svg" alt="1Password" height="32"></a></p> | ||
<!--techsponsorsend--> | ||
[tidelift]: https://tidelift.com/funding/github/npm/eslint | ||
[herodevs]: https://www.herodevs.com/support/eslint-nes?utm_source=ESLintWebsite&utm_medium=ESLintWebsite&utm_campaign=ESLintNES&utm_id=ESLintNES |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
3332171
79430
3
7
1
31
311
+ Added@eslint/core@0.7.0(transitive)
+ Added@eslint/js@9.13.0(transitive)
+ Addedjiti@2.4.0(transitive)
- Removed@eslint/core@0.6.0(transitive)
- Removed@eslint/js@9.12.0(transitive)
- Removedjiti@2.3.3(transitive)
Updated@eslint/core@^0.7.0
Updated@eslint/js@9.13.0