Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESLint didn't fix all typescript files in lib directory #25

Closed
YuChunTsao opened this issue Oct 23, 2022 · 0 comments
Closed

ESLint didn't fix all typescript files in lib directory #25

YuChunTsao opened this issue Oct 23, 2022 · 0 comments

Comments

@YuChunTsao
Copy link
Contributor

Describe the bug

ESLint didn't fix all typescript files in lib directory.

"lint": "eslint lib/**/*.ts",
"lint:fix": "eslint --fix lib/**/*.ts",

These files are not fixed by ESLint:

  • crosshair-manager.ts
  • export-control.ts
  • index.ts
  • map-generator.ts
  • printable-area-manager.ts

To Reproduce
Steps to reproduce the behavior:

  1. Open this project with VSCode.
  2. Run yarn install in terminal.
  3. After running yarn run lint:fix, nothing happens. The format of the files above is not updated.

Expected behavior

All typescript files should be fixed by ESLint.

Screenshots

Screenshot

Additional context

Updating the command to the following will solve the problem.

"lint": "eslint lib/*.ts",
"lint:fix": "eslint --fix lib/*.ts",
@YuChunTsao YuChunTsao mentioned this issue Oct 23, 2022
4 tasks
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

No branches or pull requests

1 participant