-
Notifications
You must be signed in to change notification settings - Fork 189
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
Partially migrating monorepo linting to microservices using turborepo #2805
Conversation
@tcvan0707 why this is a draft PR? |
This is work in progress |
I need to get the reviews from reviewers first, I just added lint for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to update the way linting happens in CI to use turbo repo or something?
> @senecacdot/[email protected] eslint /home/runner/work/telescope/telescope
> eslint --config .eslintrc.js "**/*.{jsx,tsx,ts,js}"
Oops! Something went wrong! :(
ESLint: 7.32.0
ESLint couldn't determine the plugin "jest" uniquely.
- /home/runner/work/telescope/telescope/node_modules/.pnpm/[email protected]_cf0e947377590fbec5e3edece1a05d8c/node_modules/eslint-plugin-jest/lib/index.js (loaded in "--config")
- /home/runner/work/telescope/telescope/node_modules/.pnpm/[email protected]_9a712f10e802afc11b6eaaed0fb6f7e4/node_modules/eslint-plugin-jest/lib/index.js (loaded in "src/web/.eslintrc.js")
Please remove the "plugins" setting from either config or remove either plugin installation.
If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
ELIFECYCLE Command failed with exit code 2.
Error: Process completed with exit code 1.
cc @menghif
src/web/.eslintrc.js
Outdated
overrides: [ | ||
// TypeScript for Next.js | ||
{ | ||
files: ['src/web/**/*.ts', 'src/web/**/*.tsx'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to remove this bit from the root .eslintrc.js
file, and only define the src/web
stuff here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it going through all the files with *.ts
and *.tsx
in src/web
? I'm not sure what should be removed in here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no src/web
inside src/web
, which is where you are right now.
The root .eslintrc.js
needs to not also double-add this override (i.e., you are doing it here).
Yes, I think we should use I was helping @tcvan0707 with this PR and asked him to post it as a draft so we could all see it and contribute. |
When running this, Turborepo looks inside all the packages defined in Can we get away from having to run |
Yes, we can abandon the root directory and only do things in sub-projects. |
@tcvan0707 how is this coming? |
Remove some selected files in Overrides
There's another way we could approach this, if it's going to be hard to get this resolution to work: similar to how we work with Satellite now, we could publish the Telescope eslint config to npm, and have |
@tcvan0707 and I are going to implement this in PR: #2862 Closing this one. |
Issue This PR Addresses
Fixes #2736
Type of Change
Description
This PR would be partially migrating our monorepo linting to our microservices using turborepo
Steps to test the PR
pnpm turbo run lint
Checklist