After we migrated from Yarn to npm, the lint command did not work. It showed an error that it not recognize ESLINT_USE_FLAT_CONFIG variable.
What changed
Add cross-env to the command
I have also removed the fix tag, the reason is that people (including me) forget to commit those linting changes. With the fix gone your linting will fail when it catches an error, and you will be more consciously about fixing those errors.
I did not add cross-env to the lint:ci since that command is running fine in our ci.
Testing instructions
Please checkout this branch and run npm run lint command.
Resolves #469
After we migrated from Yarn to npm, the lint command did not work. It showed an error that it not recognize
ESLINT_USE_FLAT_CONFIG
variable.What changed
fix
tag, the reason is that people (including me) forget to commit those linting changes. With the fix gone your linting will fail when it catches an error, and you will be more consciously about fixing those errors.I did not add cross-env to the
lint:ci
since that command is running fine in our ci.Testing instructions
Please checkout this branch and run
npm run lint
command.