@remotion/eslint-config-flat 4.0.256 → 4.0.257
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.mjs +58 -58
- package/package.json +3 -3
package/dist/esm/index.mjs
CHANGED
|
@@ -21049,7 +21049,7 @@ ${indent}${p1}`);
|
|
|
21049
21049
|
if (indentType === "space") {
|
|
21050
21050
|
regExp = new RegExp(`^[ ${skip}]+`);
|
|
21051
21051
|
} else {
|
|
21052
|
-
regExp = new RegExp(`^[
|
|
21052
|
+
regExp = new RegExp(`^[\t${skip}]+`);
|
|
21053
21053
|
}
|
|
21054
21054
|
const indent = regExp.exec(src);
|
|
21055
21055
|
return indent ? indent[0].length : 0;
|
|
@@ -48616,7 +48616,7 @@ var require_eslintrc2 = __commonJS((exports) => {
|
|
|
48616
48616
|
if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {
|
|
48617
48617
|
return normSeverity;
|
|
48618
48618
|
}
|
|
48619
|
-
throw new Error(
|
|
48619
|
+
throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util__default["default"].inspect(severity).replace(/'/gu, '"').replace(/\n/gu, "")}').
|
|
48620
48620
|
`);
|
|
48621
48621
|
}
|
|
48622
48622
|
validateRuleSchema(rule2, localOptions) {
|
|
@@ -48636,7 +48636,7 @@ var require_eslintrc2 = __commonJS((exports) => {
|
|
|
48636
48636
|
if (validateRule) {
|
|
48637
48637
|
validateRule(localOptions);
|
|
48638
48638
|
if (validateRule.errors) {
|
|
48639
|
-
throw new Error(validateRule.errors.map((error) =>
|
|
48639
|
+
throw new Error(validateRule.errors.map((error) => `\tValue ${JSON.stringify(error.data)} ${error.message}.
|
|
48640
48640
|
`).join(""));
|
|
48641
48641
|
}
|
|
48642
48642
|
}
|
|
@@ -48652,7 +48652,7 @@ var require_eslintrc2 = __commonJS((exports) => {
|
|
|
48652
48652
|
${err.message}`;
|
|
48653
48653
|
if (typeof source === "string") {
|
|
48654
48654
|
enhancedMessage = `${source}:
|
|
48655
|
-
|
|
48655
|
+
\t${enhancedMessage}`;
|
|
48656
48656
|
}
|
|
48657
48657
|
const enhancedError = new Error(enhancedMessage, { cause: err });
|
|
48658
48658
|
if (err.code) {
|
|
@@ -48669,7 +48669,7 @@ ${err.message}`;
|
|
|
48669
48669
|
const env = getAdditionalEnv(id) || environments.get(id) || null;
|
|
48670
48670
|
if (!env) {
|
|
48671
48671
|
const message = `${source}:
|
|
48672
|
-
|
|
48672
|
+
\tEnvironment key "${id}" is unknown
|
|
48673
48673
|
`;
|
|
48674
48674
|
throw new Error(message);
|
|
48675
48675
|
}
|
|
@@ -48716,7 +48716,7 @@ ${err.message}`);
|
|
|
48716
48716
|
}
|
|
48717
48717
|
const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath;
|
|
48718
48718
|
return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`;
|
|
48719
|
-
}).map((message) =>
|
|
48719
|
+
}).map((message) => `\t- ${message}.
|
|
48720
48720
|
`).join("");
|
|
48721
48721
|
}
|
|
48722
48722
|
validateConfigSchema(config, source = null) {
|
|
@@ -59309,7 +59309,7 @@ var require_eslintrc_universal2 = __commonJS((exports) => {
|
|
|
59309
59309
|
if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {
|
|
59310
59310
|
return normSeverity;
|
|
59311
59311
|
}
|
|
59312
|
-
throw new Error(
|
|
59312
|
+
throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util__default["default"].inspect(severity).replace(/'/gu, '"').replace(/\n/gu, "")}').
|
|
59313
59313
|
`);
|
|
59314
59314
|
}
|
|
59315
59315
|
validateRuleSchema(rule2, localOptions) {
|
|
@@ -59329,7 +59329,7 @@ var require_eslintrc_universal2 = __commonJS((exports) => {
|
|
|
59329
59329
|
if (validateRule) {
|
|
59330
59330
|
validateRule(localOptions);
|
|
59331
59331
|
if (validateRule.errors) {
|
|
59332
|
-
throw new Error(validateRule.errors.map((error) =>
|
|
59332
|
+
throw new Error(validateRule.errors.map((error) => `\tValue ${JSON.stringify(error.data)} ${error.message}.
|
|
59333
59333
|
`).join(""));
|
|
59334
59334
|
}
|
|
59335
59335
|
}
|
|
@@ -59345,7 +59345,7 @@ var require_eslintrc_universal2 = __commonJS((exports) => {
|
|
|
59345
59345
|
${err.message}`;
|
|
59346
59346
|
if (typeof source === "string") {
|
|
59347
59347
|
enhancedMessage = `${source}:
|
|
59348
|
-
|
|
59348
|
+
\t${enhancedMessage}`;
|
|
59349
59349
|
}
|
|
59350
59350
|
const enhancedError = new Error(enhancedMessage, { cause: err });
|
|
59351
59351
|
if (err.code) {
|
|
@@ -59362,7 +59362,7 @@ ${err.message}`;
|
|
|
59362
59362
|
const env = getAdditionalEnv(id) || environments.get(id) || null;
|
|
59363
59363
|
if (!env) {
|
|
59364
59364
|
const message = `${source}:
|
|
59365
|
-
|
|
59365
|
+
\tEnvironment key "${id}" is unknown
|
|
59366
59366
|
`;
|
|
59367
59367
|
throw new Error(message);
|
|
59368
59368
|
}
|
|
@@ -59409,7 +59409,7 @@ ${err.message}`);
|
|
|
59409
59409
|
}
|
|
59410
59410
|
const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath;
|
|
59411
59411
|
return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`;
|
|
59412
|
-
}).map((message) =>
|
|
59412
|
+
}).map((message) => `\t- ${message}.
|
|
59413
59413
|
`).join("");
|
|
59414
59414
|
}
|
|
59415
59415
|
validateConfigSchema(config, source = null) {
|
|
@@ -103307,7 +103307,7 @@ var require_spaced_comment2 = __commonJS((exports, module) => {
|
|
|
103307
103307
|
return new RegExp(pattern, "u");
|
|
103308
103308
|
}
|
|
103309
103309
|
function createNeverStylePattern(markers) {
|
|
103310
|
-
const pattern = `^(${markers.map(escape2).join("|")})?[
|
|
103310
|
+
const pattern = `^(${markers.map(escape2).join("|")})?[ \t]+`;
|
|
103311
103311
|
return new RegExp(pattern, "u");
|
|
103312
103312
|
}
|
|
103313
103313
|
module.exports = {
|
|
@@ -106844,11 +106844,11 @@ var require_rule_validator2 = __commonJS((exports) => {
|
|
|
106844
106844
|
${validateRule.errors.map((error) => {
|
|
106845
106845
|
if (error.keyword === "additionalProperties" && error.schema === false && typeof error.parentSchema?.properties === "object" && typeof error.params?.additionalProperty === "string") {
|
|
106846
106846
|
const expectedProperties = Object.keys(error.parentSchema.properties).map((property) => `"${property}"`);
|
|
106847
|
-
return
|
|
106848
|
-
|
|
106847
|
+
return `\tValue ${JSON.stringify(error.data)} ${error.message}.
|
|
106848
|
+
\t\tUnexpected property "${error.params.additionalProperty}". Expected properties: ${expectedProperties.join(", ")}.
|
|
106849
106849
|
`;
|
|
106850
106850
|
}
|
|
106851
|
-
return
|
|
106851
|
+
return `\tValue ${JSON.stringify(error.data)} ${error.message}.
|
|
106852
106852
|
`;
|
|
106853
106853
|
}).join("")}`);
|
|
106854
106854
|
}
|
|
@@ -108229,7 +108229,7 @@ Rule: "${err.ruleId}"`;
|
|
|
108229
108229
|
inlineConfigProblems.push(createLintingProblem({
|
|
108230
108230
|
ruleId,
|
|
108231
108231
|
message: `Inline configuration for rule "${ruleId}" is invalid:
|
|
108232
|
-
|
|
108232
|
+
\t${baseMessage}
|
|
108233
108233
|
`,
|
|
108234
108234
|
loc,
|
|
108235
108235
|
language: config.language
|
|
@@ -118248,9 +118248,9 @@ from ${dirname}`);
|
|
|
118248
118248
|
If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:
|
|
118249
118249
|
|
|
118250
118250
|
packageExtensions:
|
|
118251
|
-
|
|
118252
|
-
|
|
118253
|
-
|
|
118251
|
+
\t"@babel/core@*":
|
|
118252
|
+
\t\tpeerDependencies:
|
|
118253
|
+
\t\t\t"@babel/preset-typescript": "*"
|
|
118254
118254
|
`), new _configError.default(message, filepath);
|
|
118255
118255
|
}
|
|
118256
118256
|
}
|
|
@@ -123655,7 +123655,7 @@ ${" ".repeat(indentSize)}`);
|
|
|
123655
123655
|
for (const [mask, name] of featuresSameLoose)
|
|
123656
123656
|
hasFeature(file, mask) && isLoose(file, mask) !== resolvedLoose && (setLoose(file, mask, resolvedLoose), console.warn(`Though the "loose" option was set to "${!resolvedLoose}" in your @babel/preset-env config, it will not be used for ${name} since the "loose" mode option was set to "${resolvedLoose}" for ${higherPriorityPluginName}.
|
|
123657
123657
|
The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
|
|
123658
|
-
|
|
123658
|
+
\t["${name}", { "loose": ${resolvedLoose} }]
|
|
123659
123659
|
to the "plugins" section of your Babel config.`));
|
|
123660
123660
|
}, exports2.isLoose = isLoose, exports2.shouldTransform = function(path2, file) {
|
|
123661
123661
|
let decoratorPath = null, publicFieldPath = null, privateFieldPath = null, privateMethodPath = null, staticBlockPath = null;
|
|
@@ -123669,8 +123669,8 @@ to the "plugins" section of your Babel config.`));
|
|
|
123669
123669
|
if (decoratorPath && !hasFeature(file, FEATURES.decorators))
|
|
123670
123670
|
throw path2.buildCodeFrameError(`Decorators are not enabled.
|
|
123671
123671
|
If you are using ["@babel/plugin-proposal-decorators", { "version": "legacy" }], make sure it comes *before* "@babel/plugin-proposal-class-properties" and enable loose mode, like so:
|
|
123672
|
-
|
|
123673
|
-
|
|
123672
|
+
\t["@babel/plugin-proposal-decorators", { "version": "legacy" }]
|
|
123673
|
+
\t["@babel/plugin-proposal-class-properties", { "loose": true }]`);
|
|
123674
123674
|
if (privateMethodPath && !hasFeature(file, FEATURES.privateMethods))
|
|
123675
123675
|
throw privateMethodPath.buildCodeFrameError("Class private methods are not enabled. Please add `@babel/plugin-proposal-private-methods` to your configuration.");
|
|
123676
123676
|
if ((publicFieldPath || privateFieldPath) && !hasFeature(file, FEATURES.fields) && !hasFeature(file, FEATURES.privateMethods))
|
|
@@ -124076,10 +124076,10 @@ If you are using ["@babel/plugin-proposal-decorators", { "version": "legacy" }],
|
|
|
124076
124076
|
if (loose === true) {
|
|
124077
124077
|
const explicit = [];
|
|
124078
124078
|
setPublicClassFields !== undefined && explicit.push('"setPublicClassFields"'), privateFieldsAsProperties !== undefined && explicit.push('"privateFieldsAsProperties"'), privateFieldsAsSymbols !== undefined && explicit.push('"privateFieldsAsSymbols"'), explicit.length !== 0 && console.warn(`[${name}]: You are using the "loose: true" option and you are explicitly setting a value for the ${explicit.join(" and ")} assumption${explicit.length > 1 ? "s" : ""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:
|
|
124079
|
-
|
|
124080
|
-
|
|
124081
|
-
|
|
124082
|
-
|
|
124079
|
+
\t"assumptions": {
|
|
124080
|
+
\t\t"setPublicClassFields": true,
|
|
124081
|
+
\t\t"privateFieldsAsSymbols": true
|
|
124082
|
+
\t}`);
|
|
124083
124083
|
}
|
|
124084
124084
|
return { name, manipulateOptions, inherits, pre(file) {
|
|
124085
124085
|
(0, _features.enableFeature)(file, feature, loose), (!file.get(versionKey) || file.get(versionKey) < version) && file.set(versionKey, version);
|
|
@@ -147095,11 +147095,11 @@ var require_rule_tester3 = __commonJS((exports, module) => {
|
|
|
147095
147095
|
return unsubstituted.filter((name) => known.includes(name) && !provided.includes(name));
|
|
147096
147096
|
}
|
|
147097
147097
|
var metaSchemaDescription = `
|
|
147098
|
-
|
|
147099
|
-
|
|
147100
|
-
|
|
147098
|
+
\t- If the rule has options, set \`meta.schema\` to an array or non-empty object to enable options validation.
|
|
147099
|
+
\t- If the rule doesn't have options, omit \`meta.schema\` to enforce that no options can be passed to the rule.
|
|
147100
|
+
\t- You can also set \`meta.schema\` to \`false\` to opt-out of options validation (not recommended).
|
|
147101
147101
|
|
|
147102
|
-
|
|
147102
|
+
\thttps://eslint.org/docs/latest/extend/custom-rules#options-schemas
|
|
147103
147103
|
`;
|
|
147104
147104
|
var DESCRIBE = Symbol("describe");
|
|
147105
147105
|
var IT = Symbol("it");
|
|
@@ -147317,7 +147317,7 @@ var require_rule_tester3 = __commonJS((exports, module) => {
|
|
|
147317
147317
|
if (ajv.errors) {
|
|
147318
147318
|
const errors2 = ajv.errors.map((error) => {
|
|
147319
147319
|
const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath;
|
|
147320
|
-
return
|
|
147320
|
+
return `\t${field}: ${error.message}`;
|
|
147321
147321
|
}).join(`
|
|
147322
147322
|
`);
|
|
147323
147323
|
throw new Error([`Schema for rule ${ruleName} is invalid:`, errors2]);
|
|
@@ -314437,24 +314437,24 @@ ${options.prefix}` : `
|
|
|
314437
314437
|
}
|
|
314438
314438
|
filesToStringWorker(writeProjectFileNames, writeFileExplaination, writeFileVersionAndText) {
|
|
314439
314439
|
if (this.isInitialLoadPending())
|
|
314440
|
-
return
|
|
314440
|
+
return `\tFiles (0) InitialLoadPending
|
|
314441
314441
|
`;
|
|
314442
314442
|
if (!this.program)
|
|
314443
|
-
return
|
|
314443
|
+
return `\tFiles (0) NoProgram
|
|
314444
314444
|
`;
|
|
314445
314445
|
const sourceFiles = this.program.getSourceFiles();
|
|
314446
|
-
let strBuilder =
|
|
314446
|
+
let strBuilder = `\tFiles (${sourceFiles.length})
|
|
314447
314447
|
`;
|
|
314448
314448
|
if (writeProjectFileNames) {
|
|
314449
314449
|
for (const file of sourceFiles) {
|
|
314450
|
-
strBuilder +=
|
|
314450
|
+
strBuilder += `\t${file.fileName}${writeFileVersionAndText ? ` ${file.version} ${JSON.stringify(file.text)}` : ""}
|
|
314451
314451
|
`;
|
|
314452
314452
|
}
|
|
314453
314453
|
if (writeFileExplaination) {
|
|
314454
314454
|
strBuilder += `
|
|
314455
314455
|
|
|
314456
314456
|
`;
|
|
314457
|
-
explainFiles(this.program, (s) => strBuilder +=
|
|
314457
|
+
explainFiles(this.program, (s) => strBuilder += `\t${s}
|
|
314458
314458
|
`);
|
|
314459
314459
|
}
|
|
314460
314460
|
}
|
|
@@ -316504,8 +316504,8 @@ ${options.prefix}` : `
|
|
|
316504
316504
|
this.logger.info("Open files: ");
|
|
316505
316505
|
this.openFiles.forEach((projectRootPath, path2) => {
|
|
316506
316506
|
const info = this.getScriptInfoForPath(path2);
|
|
316507
|
-
this.logger.info(
|
|
316508
|
-
this.logger.info(
|
|
316507
|
+
this.logger.info(`\tFileName: ${info.fileName} ProjectRootPath: ${projectRootPath}`);
|
|
316508
|
+
this.logger.info(`\t\tProjects: ${info.containingProjects.map((p) => p.getProjectName())}`);
|
|
316509
316509
|
});
|
|
316510
316510
|
this.logger.endGroup();
|
|
316511
316511
|
}
|
|
@@ -390396,7 +390396,7 @@ var require_eslintrc = __commonJS2((exports) => {
|
|
|
390396
390396
|
if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {
|
|
390397
390397
|
return normSeverity;
|
|
390398
390398
|
}
|
|
390399
|
-
throw new Error(
|
|
390399
|
+
throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util__default["default"].inspect(severity).replace(/'/gu, '"').replace(/\n/gu, "")}').
|
|
390400
390400
|
`);
|
|
390401
390401
|
}
|
|
390402
390402
|
validateRuleSchema(rule, localOptions) {
|
|
@@ -390410,7 +390410,7 @@ var require_eslintrc = __commonJS2((exports) => {
|
|
|
390410
390410
|
if (validateRule) {
|
|
390411
390411
|
validateRule(localOptions);
|
|
390412
390412
|
if (validateRule.errors) {
|
|
390413
|
-
throw new Error(validateRule.errors.map((error) =>
|
|
390413
|
+
throw new Error(validateRule.errors.map((error) => `\tValue ${JSON.stringify(error.data)} ${error.message}.
|
|
390414
390414
|
`).join(""));
|
|
390415
390415
|
}
|
|
390416
390416
|
}
|
|
@@ -390426,7 +390426,7 @@ var require_eslintrc = __commonJS2((exports) => {
|
|
|
390426
390426
|
${err.message}`;
|
|
390427
390427
|
if (typeof source === "string") {
|
|
390428
390428
|
throw new Error(`${source}:
|
|
390429
|
-
|
|
390429
|
+
\t${enhancedMessage}`);
|
|
390430
390430
|
} else {
|
|
390431
390431
|
throw new Error(enhancedMessage);
|
|
390432
390432
|
}
|
|
@@ -390440,7 +390440,7 @@ ${err.message}`;
|
|
|
390440
390440
|
const env = getAdditionalEnv(id) || environments.get(id) || null;
|
|
390441
390441
|
if (!env) {
|
|
390442
390442
|
const message = `${source}:
|
|
390443
|
-
|
|
390443
|
+
\tEnvironment key "${id}" is unknown
|
|
390444
390444
|
`;
|
|
390445
390445
|
throw new Error(message);
|
|
390446
390446
|
}
|
|
@@ -390487,7 +390487,7 @@ ${err.message}`);
|
|
|
390487
390487
|
}
|
|
390488
390488
|
const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath;
|
|
390489
390489
|
return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`;
|
|
390490
|
-
}).map((message) =>
|
|
390490
|
+
}).map((message) => `\t- ${message}.
|
|
390491
390491
|
`).join("");
|
|
390492
390492
|
}
|
|
390493
390493
|
validateConfigSchema(config, source = null) {
|
|
@@ -402176,7 +402176,7 @@ var require_eslintrc_universal = __commonJS2((exports) => {
|
|
|
402176
402176
|
if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {
|
|
402177
402177
|
return normSeverity;
|
|
402178
402178
|
}
|
|
402179
|
-
throw new Error(
|
|
402179
|
+
throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util__default["default"].inspect(severity).replace(/'/gu, '"').replace(/\n/gu, "")}').
|
|
402180
402180
|
`);
|
|
402181
402181
|
}
|
|
402182
402182
|
validateRuleSchema(rule, localOptions) {
|
|
@@ -402190,7 +402190,7 @@ var require_eslintrc_universal = __commonJS2((exports) => {
|
|
|
402190
402190
|
if (validateRule) {
|
|
402191
402191
|
validateRule(localOptions);
|
|
402192
402192
|
if (validateRule.errors) {
|
|
402193
|
-
throw new Error(validateRule.errors.map((error) =>
|
|
402193
|
+
throw new Error(validateRule.errors.map((error) => `\tValue ${JSON.stringify(error.data)} ${error.message}.
|
|
402194
402194
|
`).join(""));
|
|
402195
402195
|
}
|
|
402196
402196
|
}
|
|
@@ -402206,7 +402206,7 @@ var require_eslintrc_universal = __commonJS2((exports) => {
|
|
|
402206
402206
|
${err.message}`;
|
|
402207
402207
|
if (typeof source === "string") {
|
|
402208
402208
|
throw new Error(`${source}:
|
|
402209
|
-
|
|
402209
|
+
\t${enhancedMessage}`);
|
|
402210
402210
|
} else {
|
|
402211
402211
|
throw new Error(enhancedMessage);
|
|
402212
402212
|
}
|
|
@@ -402220,7 +402220,7 @@ ${err.message}`;
|
|
|
402220
402220
|
const env = getAdditionalEnv(id) || environments.get(id) || null;
|
|
402221
402221
|
if (!env) {
|
|
402222
402222
|
const message = `${source}:
|
|
402223
|
-
|
|
402223
|
+
\tEnvironment key "${id}" is unknown
|
|
402224
402224
|
`;
|
|
402225
402225
|
throw new Error(message);
|
|
402226
402226
|
}
|
|
@@ -402267,7 +402267,7 @@ ${err.message}`);
|
|
|
402267
402267
|
}
|
|
402268
402268
|
const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath;
|
|
402269
402269
|
return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`;
|
|
402270
|
-
}).map((message) =>
|
|
402270
|
+
}).map((message) => `\t- ${message}.
|
|
402271
402271
|
`).join("");
|
|
402272
402272
|
}
|
|
402273
402273
|
validateConfigSchema(config, source = null) {
|
|
@@ -454595,7 +454595,7 @@ var require_spaced_comment = __commonJS2((exports, module) => {
|
|
|
454595
454595
|
return new RegExp(pattern, "u");
|
|
454596
454596
|
}
|
|
454597
454597
|
function createNeverStylePattern(markers) {
|
|
454598
|
-
const pattern = `^(${markers.map(escape2).join("|")})?[
|
|
454598
|
+
const pattern = `^(${markers.map(escape2).join("|")})?[ \t]+`;
|
|
454599
454599
|
return new RegExp(pattern, "u");
|
|
454600
454600
|
}
|
|
454601
454601
|
module.exports = {
|
|
@@ -460006,7 +460006,7 @@ var require_rule_validator = __commonJS2((exports) => {
|
|
|
460006
460006
|
if (validateRule) {
|
|
460007
460007
|
validateRule(ruleOptions.slice(1));
|
|
460008
460008
|
if (validateRule.errors) {
|
|
460009
|
-
throw new Error(`Key "rules": Key "${ruleId}": ${validateRule.errors.map((error) =>
|
|
460009
|
+
throw new Error(`Key "rules": Key "${ruleId}": ${validateRule.errors.map((error) => `\tValue ${JSON.stringify(error.data)} ${error.message}.
|
|
460010
460010
|
`).join("")}`);
|
|
460011
460011
|
}
|
|
460012
460012
|
}
|
|
@@ -461106,7 +461106,7 @@ Rule: "${err.ruleId}"`;
|
|
|
461106
461106
|
inlineConfigProblems.push(createLintingProblem({
|
|
461107
461107
|
ruleId,
|
|
461108
461108
|
message: `Inline configuration for rule "${ruleId}" is invalid:
|
|
461109
|
-
|
|
461109
|
+
\t${baseMessage}
|
|
461110
461110
|
`,
|
|
461111
461111
|
loc: node.loc
|
|
461112
461112
|
}));
|
|
@@ -467313,7 +467313,7 @@ var require_config_validator = __commonJS2((exports, module) => {
|
|
|
467313
467313
|
if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {
|
|
467314
467314
|
return normSeverity;
|
|
467315
467315
|
}
|
|
467316
|
-
throw new Error(
|
|
467316
|
+
throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, '"').replace(/\n/gu, "")}').
|
|
467317
467317
|
`);
|
|
467318
467318
|
}
|
|
467319
467319
|
function validateRuleSchema(rule, localOptions) {
|
|
@@ -467327,7 +467327,7 @@ var require_config_validator = __commonJS2((exports, module) => {
|
|
|
467327
467327
|
if (validateRule) {
|
|
467328
467328
|
validateRule(localOptions);
|
|
467329
467329
|
if (validateRule.errors) {
|
|
467330
|
-
throw new Error(validateRule.errors.map((error) =>
|
|
467330
|
+
throw new Error(validateRule.errors.map((error) => `\tValue ${JSON.stringify(error.data)} ${error.message}.
|
|
467331
467331
|
`).join(""));
|
|
467332
467332
|
}
|
|
467333
467333
|
}
|
|
@@ -467343,7 +467343,7 @@ var require_config_validator = __commonJS2((exports, module) => {
|
|
|
467343
467343
|
${err.message}`;
|
|
467344
467344
|
if (typeof source === "string") {
|
|
467345
467345
|
throw new Error(`${source}:
|
|
467346
|
-
|
|
467346
|
+
\t${enhancedMessage}`);
|
|
467347
467347
|
} else {
|
|
467348
467348
|
throw new Error(enhancedMessage);
|
|
467349
467349
|
}
|
|
@@ -467357,7 +467357,7 @@ ${err.message}`;
|
|
|
467357
467357
|
const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;
|
|
467358
467358
|
if (!env) {
|
|
467359
467359
|
const message = `${source}:
|
|
467360
|
-
|
|
467360
|
+
\tEnvironment key "${id}" is unknown
|
|
467361
467361
|
`;
|
|
467362
467362
|
throw new Error(message);
|
|
467363
467363
|
}
|
|
@@ -467404,7 +467404,7 @@ ${err.message}`);
|
|
|
467404
467404
|
}
|
|
467405
467405
|
const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath;
|
|
467406
467406
|
return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`;
|
|
467407
|
-
}).map((message) =>
|
|
467407
|
+
}).map((message) => `\t- ${message}.
|
|
467408
467408
|
`).join("");
|
|
467409
467409
|
}
|
|
467410
467410
|
function validateConfigSchema(config, source = null) {
|
|
@@ -467463,7 +467463,7 @@ var require_rule_tester = __commonJS2((exports, module) => {
|
|
|
467463
467463
|
var { Linter, SourceCodeFixer, interpolate } = require_linter2();
|
|
467464
467464
|
var CodePath = require_code_path();
|
|
467465
467465
|
var ajv = require_ajv2()({ strictDefaults: true });
|
|
467466
|
-
var espreePath = __require2.resolve("espree");
|
|
467466
|
+
var espreePath = __require2.resolve("/Users/jonathanburger/remotion/node_modules/.pnpm/espree@9.6.1/node_modules/espree/dist/espree.cjs");
|
|
467467
467467
|
var parserSymbol = Symbol.for("eslint.RuleTester.parser");
|
|
467468
467468
|
var { SourceCode } = require_source_code2();
|
|
467469
467469
|
var testerDefaultConfig = { rules: {} };
|
|
@@ -467818,7 +467818,7 @@ var require_rule_tester = __commonJS2((exports, module) => {
|
|
|
467818
467818
|
if (ajv.errors) {
|
|
467819
467819
|
const errors = ajv.errors.map((error) => {
|
|
467820
467820
|
const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath;
|
|
467821
|
-
return
|
|
467821
|
+
return `\t${field}: ${error.message}`;
|
|
467822
467822
|
}).join(`
|
|
467823
467823
|
`);
|
|
467824
467824
|
throw new Error([`Schema for rule ${ruleName} is invalid:`, errors]);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/eslint-config-flat"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/eslint-config-flat",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.257",
|
|
7
7
|
"description": "Default configuration for Remotion templates (ESLint >= 9)",
|
|
8
8
|
"main": "dist/esm/index.mjs",
|
|
9
9
|
"type": "module",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"eslint-plugin-react": "7.37.4",
|
|
26
26
|
"eslint-plugin-react-hooks": "5.2.0-canary-de1eaa26-20250124",
|
|
27
27
|
"eslint": "9.14.0",
|
|
28
|
-
"@remotion/eslint-
|
|
29
|
-
"@remotion/eslint-
|
|
28
|
+
"@remotion/eslint-plugin": "4.0.257",
|
|
29
|
+
"@remotion/eslint-config-internal": "4.0.257"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
32
32
|
"remotion",
|