Update checked-in dependencies
This commit is contained in:
parent
5d6442e87d
commit
026e833827
36 changed files with 1972 additions and 643 deletions
8
node_modules/eslint/lib/cli.js
generated
vendored
8
node_modules/eslint/lib/cli.js
generated
vendored
|
|
@ -91,7 +91,8 @@ async function translateOptions({
|
|||
reportUnusedDisableDirectives,
|
||||
resolvePluginsRelativeTo,
|
||||
rule,
|
||||
rulesdir
|
||||
rulesdir,
|
||||
warnIgnored
|
||||
}, configType) {
|
||||
|
||||
let overrideConfig, overrideConfigFile;
|
||||
|
|
@ -182,6 +183,7 @@ async function translateOptions({
|
|||
|
||||
if (configType === "flat") {
|
||||
options.ignorePatterns = ignorePattern;
|
||||
options.warnIgnored = warnIgnored;
|
||||
} else {
|
||||
options.resolvePluginsRelativeTo = resolvePluginsRelativeTo;
|
||||
options.rulePaths = rulesdir;
|
||||
|
|
@ -385,7 +387,9 @@ const cli = {
|
|||
if (useStdin) {
|
||||
results = await engine.lintText(text, {
|
||||
filePath: options.stdinFilename,
|
||||
warnIgnored: true
|
||||
|
||||
// flatConfig respects CLI flag and constructor warnIgnored, eslintrc forces true for backwards compatibility
|
||||
warnIgnored: usingFlatConfig ? void 0 : true
|
||||
});
|
||||
} else {
|
||||
results = await engine.lintFiles(files);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue