Closed jobara closed 1 year ago
@jobara, I don't actually have any projects that are a module, if you have a branch/project I could check out for testing purposes, that would help me look into this.
Justin and I discussed this, he couldn't remember why this was needed. I'll close for now, we can always reopen if needed.
Describe the bug
When your code is a module, you need to set the
sourceType
tomodule
in the eslint's parser options. However doing this causes the eslint.json check to report(-1:1) 'use strict' is unnecessary inside of modules.
error for all checked json files.I tried setting the following configuration in .fluidlintallrc.json but it didn't help. In the end I disabled the eslint.json check.
To reproduce
Steps to reproduce the behavior:
.eslintrc.json
set thesourceType
parserOption
tomodule
Expected behavior
The eslint.json check shouldn't check for strict mode when the code is declared a module.