addons-linter
addons-linter copied to clipboard
Add test to make sure a webext provided eslintrc can't override anything.
See https://github.com/mozilla/addons-linter/pull/1140#discussion_r102709503
βIssue is synchronized with this Jira Task
@EnTeQuAk could you please add some more information what this is about and what needs to be done so we can triage it?
This is about adding a test that adds a new webext fixture with a .eslintrc that tries to override our default values set by our JavaScriptScanner (https://github.com/mozilla/addons-linter/blob/master/src/scanners/javascript.js#L38-L58) by using all means necessary given by http://eslint.org/docs/user-guide/configuring
It should not be possible to override any of these values (most importantly to check rules isn't changable or files aren't ignored).
Hi @EnTeQuAk! Can i take this up?
@kamsuri if you still have time to look at this we'd welcome a contribution.
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.
@rpl is this related to https://github.com/mozilla/addons-linter/issues/3389?
@rpl is this related to #3389?
that was about the .eslintignore file (and for that we do have an integration test that covers it), this is about the eslintrc file, and so the test added in #3389 do not cover this one at the moment.
I took a quick look and it seems that we do not have any other test that covers this, but we do still configure eslint to ignore the eslintrc file here, and so this issue seems to be still valid.
To fix this issue we could:
- add another integration test similar to the one we added to #3389 to cover this
- or (as a likely even simpler option) we may just add an .eslintrc file to the same fixture extension that we are using in the test added in #3389 (and locally make sure that it triggers a failure if we flip
useEslintrctotrueon the line linked above)
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.