Skip to content
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

Add schema to support browserlist as a second paramenter in eslintrc #265

Merged
merged 1 commit into from
Nov 30, 2019
Merged

Conversation

touzoku
Copy link
Contributor

@touzoku touzoku commented Sep 30, 2019

The rule schema is empty. This disallows using the second parameter in .eslintrc.json as browserconfig.

Because of that this rule errors with

Configuration for rule "compat/compat" is invalid: Value ["last 1 version, last 1 firefox version, last 1 edge version, ie 11, not safari < 12"] should NOT have more than 0 items.

when it should accept it as an option.

This causes an issue for our plugin that relies on your plugin: forcedotcom/eslint-plugin-aura#4

@amilajack amilajack merged commit d765125 into amilajack:master Nov 30, 2019
@amilajack
Copy link
Owner

Sorry for the delay on this. Will this schema support configurations that are just a string? ex. compat/compat: "off"?

@touzoku
Copy link
Contributor Author

touzoku commented Dec 1, 2019

@amilajack as far as I understand, the schema array only impacts additional parameters, not the rule status, i.e. second argument to the rule config and onwards.

https://eslint.org/docs/developer-guide/working-with-rules#options-schemas

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