We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e1372e commit ae3efbeCopy full SHA for ae3efbe
packages/eslint-plugin/src/rules/no-magic-numbers.ts
@@ -9,7 +9,10 @@ type MessageIds = util.InferMessageIdsTypeFromRule<typeof baseRule>;
9
10
// Extend base schema with additional property to ignore TS numeric literal types
11
const schema = util.deepMerge(
12
- { ...baseRule.meta.schema },
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- https://github.com/microsoft/TypeScript/issues/17002
13
+ Array.isArray(baseRule.meta.schema)
14
+ ? baseRule.meta.schema[0]
15
+ : baseRule.meta.schema,
16
{
17
properties: {
18
ignoreNumericLiteralTypes: {
0 commit comments