Skip to content

Conversation

@mt-pcuba
Copy link
Contributor

Summary

The linting of Javascript files was including the auto-generated files under docs/, which would cause it to fail, but the Circle CI job wasn't failing because the lint script in package.json runs linting of JS and TS files, but only "looks" at the exit code of the last command.

Changes

  • Split the linting job in CircleCI into 2 steps to run JS and TS linting separately.
  • Add the docs/ folder to eslint ignore so the auto-generated and minified files do not cause linting errors.

@mt-pcuba mt-pcuba requested a review from a team as a code owner October 23, 2024 05:44
The command being run by Circle CI would not return an error code if the linting failed
on the JS step, because it only looked at the exit code of linting the TS files.
@mt-pcuba mt-pcuba merged commit 8280682 into master Oct 23, 2024
6 checks passed
@mt-pcuba mt-pcuba deleted the fix-linting branch October 23, 2024 05:53
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.

3 participants