addons-linter icon indicating copy to clipboard operation
addons-linter copied to clipboard

Add test to make sure a webext provided eslintrc can't override anything.

Open EnTeQuAk opened this issue 8 years ago β€’ 8 comments

See https://github.com/mozilla/addons-linter/pull/1140#discussion_r102709503

┆Issue is synchronized with this Jira Task

EnTeQuAk avatar Feb 23 '17 13:02 EnTeQuAk

@EnTeQuAk could you please add some more information what this is about and what needs to be done so we can triage it?

wagnerand avatar May 16 '17 17:05 wagnerand

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).

EnTeQuAk avatar May 29 '17 10:05 EnTeQuAk

Hi @EnTeQuAk! Can i take this up?

kamsuri avatar Oct 10 '17 12:10 kamsuri

@kamsuri if you still have time to look at this we'd welcome a contribution.

muffinresearch avatar Feb 08 '18 12:02 muffinresearch

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.

stale[bot] avatar Oct 21 '20 17:10 stale[bot]

@rpl is this related to https://github.com/mozilla/addons-linter/issues/3389?

wagnerand avatar Oct 21 '20 17:10 wagnerand

@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 useEslintrc to true on the line linked above)

rpl avatar Oct 21 '20 18:10 rpl

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.

stale[bot] avatar Jun 02 '21 16:06 stale[bot]