Bump the npm group with 2 updates (#2045)
* Bump the npm group with 2 updates Bumps the npm group with 2 updates: [eslint](https://github.com/eslint/eslint) and [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import). Updates `eslint` from 8.55.0 to 8.56.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.55.0...v8.56.0) Updates `eslint-plugin-import` from 2.29.0 to 2.29.1 - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.29.0...v2.29.1) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm ... Signed-off-by: dependabot[bot] <support@github.com> * Update checked-in dependencies --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
511f073971
commit
144b7d5b16
32 changed files with 618 additions and 251 deletions
13
node_modules/eslint/lib/eslint/eslint-helpers.js
generated
vendored
13
node_modules/eslint/lib/eslint/eslint-helpers.js
generated
vendored
|
|
@ -675,7 +675,6 @@ function processOptions({
|
|||
overrideConfig = null,
|
||||
overrideConfigFile = null,
|
||||
plugins = {},
|
||||
reportUnusedDisableDirectives = null, // ← should be null by default because if it's a string then it overrides the 'reportUnusedDisableDirectives' setting in config files. And we cannot use `overrideConfig.reportUnusedDisableDirectives` instead because we cannot configure the `error` severity with that.
|
||||
warnIgnored = true,
|
||||
...unknownOptions
|
||||
}) {
|
||||
|
|
@ -720,6 +719,9 @@ function processOptions({
|
|||
if (unknownOptionKeys.includes("rulePaths")) {
|
||||
errors.push("'rulePaths' has been removed. Please define your rules using plugins.");
|
||||
}
|
||||
if (unknownOptionKeys.includes("reportUnusedDisableDirectives")) {
|
||||
errors.push("'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead.");
|
||||
}
|
||||
}
|
||||
if (typeof allowInlineConfig !== "boolean") {
|
||||
errors.push("'allowInlineConfig' must be a boolean.");
|
||||
|
|
@ -774,14 +776,6 @@ function processOptions({
|
|||
if (Array.isArray(plugins)) {
|
||||
errors.push("'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead.");
|
||||
}
|
||||
if (
|
||||
reportUnusedDisableDirectives !== "error" &&
|
||||
reportUnusedDisableDirectives !== "warn" &&
|
||||
reportUnusedDisableDirectives !== "off" &&
|
||||
reportUnusedDisableDirectives !== null
|
||||
) {
|
||||
errors.push("'reportUnusedDisableDirectives' must be any of \"error\", \"warn\", \"off\", and null.");
|
||||
}
|
||||
if (typeof warnIgnored !== "boolean") {
|
||||
errors.push("'warnIgnored' must be a boolean.");
|
||||
}
|
||||
|
|
@ -806,7 +800,6 @@ function processOptions({
|
|||
globInputPaths,
|
||||
ignore,
|
||||
ignorePatterns,
|
||||
reportUnusedDisableDirectives,
|
||||
warnIgnored
|
||||
};
|
||||
}
|
||||
|
|
|
|||
11
node_modules/eslint/lib/eslint/flat-eslint.js
generated
vendored
11
node_modules/eslint/lib/eslint/flat-eslint.js
generated
vendored
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
// Note: Node.js 12 does not support fs/promises.
|
||||
const fs = require("fs").promises;
|
||||
const { existsSync } = require("fs");
|
||||
const path = require("path");
|
||||
const findUp = require("find-up");
|
||||
const { version } = require("../../package.json");
|
||||
|
|
@ -83,7 +84,6 @@ const LintResultCache = require("../cli-engine/lint-result-cache");
|
|||
* doesn't do any config file lookup when `true`; considered to be a config filename
|
||||
* when a string.
|
||||
* @property {Record<string,Plugin>} [plugins] An array of plugin implementations.
|
||||
* @property {"error" | "warn" | "off"} [reportUnusedDisableDirectives] the severity to report unused eslint-disable directives.
|
||||
* @property {boolean} warnIgnored Show warnings when the file list includes ignored files
|
||||
*/
|
||||
|
||||
|
|
@ -448,7 +448,6 @@ async function calculateConfigArray(eslint, {
|
|||
* @param {FlatConfigArray} config.configs The config.
|
||||
* @param {boolean} config.fix If `true` then it does fix.
|
||||
* @param {boolean} config.allowInlineConfig If `true` then it uses directive comments.
|
||||
* @param {boolean} config.reportUnusedDisableDirectives If `true` then it reports unused `eslint-disable` comments.
|
||||
* @param {Linter} config.linter The linter instance to verify.
|
||||
* @returns {LintResult} The result of linting.
|
||||
* @private
|
||||
|
|
@ -460,7 +459,6 @@ function verifyText({
|
|||
configs,
|
||||
fix,
|
||||
allowInlineConfig,
|
||||
reportUnusedDisableDirectives,
|
||||
linter
|
||||
}) {
|
||||
const filePath = providedFilePath || "<text>";
|
||||
|
|
@ -480,7 +478,6 @@ function verifyText({
|
|||
allowInlineConfig,
|
||||
filename: filePathToVerify,
|
||||
fix,
|
||||
reportUnusedDisableDirectives,
|
||||
|
||||
/**
|
||||
* Check if the linter should adopt a given code block or not.
|
||||
|
|
@ -748,7 +745,6 @@ class FlatESLint {
|
|||
cwd,
|
||||
fix,
|
||||
fixTypes,
|
||||
reportUnusedDisableDirectives,
|
||||
globInputPaths,
|
||||
errorOnUnmatchedPattern,
|
||||
warnIgnored
|
||||
|
|
@ -766,7 +762,7 @@ class FlatESLint {
|
|||
const errorCode = error && error.code;
|
||||
|
||||
// Ignore errors when no such file exists or file system is read only (and cache file does not exist)
|
||||
if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !(await fs.exists(cacheFilePath)))) {
|
||||
if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !existsSync(cacheFilePath))) {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
|
@ -858,7 +854,6 @@ class FlatESLint {
|
|||
cwd,
|
||||
fix: fixer,
|
||||
allowInlineConfig,
|
||||
reportUnusedDisableDirectives,
|
||||
linter
|
||||
});
|
||||
|
||||
|
|
@ -943,7 +938,6 @@ class FlatESLint {
|
|||
allowInlineConfig,
|
||||
cwd,
|
||||
fix,
|
||||
reportUnusedDisableDirectives,
|
||||
warnIgnored: constructorWarnIgnored
|
||||
} = eslintOptions;
|
||||
const results = [];
|
||||
|
|
@ -967,7 +961,6 @@ class FlatESLint {
|
|||
cwd,
|
||||
fix,
|
||||
allowInlineConfig,
|
||||
reportUnusedDisableDirectives,
|
||||
linter
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue