Skip to content

Bug: schemas of some rules allow extra properties #196

@andreww2012

Description

@andreww2012

Environment

ESLint version:
@eslint/css version:
Node version:
npm version:
Operating System:

Which language are you using?

stylesheet

What did you do?

Some rules, for example relative-font-units allow extra properties to be passed in options object, which should not be allowed.

While not strictly a bug, this makes it easier for typos in rule options to go unnoticed.

What did you expect to happen?

Extra properties should not be allowed.

What actually happened?

Extra properties are allowed.

Link to Minimal Reproducible Example

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionbugSomething isn't working

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions