Skip to content

Error: Key "rules": Key "header/header": should NOT have more than 0 items. #57

@firefoxNX

Description

@firefoxNX

using eslint version 9.4.0 with eslint-plugin-header gives this error -

Error: Key "rules": Key "header/header":
	Value ["block",{"pattern":"Copyright \\d{4}, CompanyName, Inc.  All rights reserved.","template":"Copyright 2024, CompanyName, Inc.  All rights reserved."}] should NOT have more than 0 items.

    at RuleValidator.validate (/Users/vineet/Documents/learn_eslint/node_modules/eslint/lib/config/rule-validator.js:170:27)
    at [finalizeConfig] (/Users/vineet/Documents/learn_eslint/node_modules/eslint/lib/config/flat-config-array.js:317:23)
    at FlatConfigArray.getConfigWithStatus (/Users/vineet/Documents/learn_eslint/node_modules/@eslint/config-array/dist/cjs/index.cjs:1145:55)
    at FlatConfigArray.getConfig (/Users/vineet/Documents/learn_eslint/node_modules/@eslint/config-array/dist/cjs/index.cjs:1163:15)
    at ESLint.calculateConfigForFile (/Users/vineet/Documents/learn_eslint/node_modules/eslint/lib/eslint/eslint.js:1169:24)
    at async ESLint.isPathIgnored (/Users/vineet/Documents/learn_eslint/node_modules/eslint/lib/eslint/eslint.js:1191:24)

see https://github.com/firefoxNX/learn_eslint to reproduce the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions