Skip to content

Add a castom lint rule to check for duplicates, and eslint itself. #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Cross-sama
Copy link

Tried to fix issue discribed here:

#48

schema: [],
},
create(context) {
// only run once per lint run (on Program)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this create will run per JS file

we should probably run against the JSON files and report the specific file/position while traversing it

that also means we'd need to setup eslint to be able to lint JSON, though.

i.e. it should visit each manifest and check against the already seen set, to then report the exact position in the current manifest being linted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants