-
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
Fixes #2970 add eslint configurations to Docusaurus and play together with turborepo's linting #2971
Conversation
27fba62
to
1fd06ee
Compare
1fd06ee
to
764bcdb
Compare
764bcdb
to
ec6cbc1
Compare
ec6cbc1
to
19b71d4
Compare
19b71d4
to
36f2307
Compare
@@ -14,6 +14,7 @@ | |||
"eslint-plugin-jest": "25.3.4", | |||
"eslint-plugin-jest-playwright": "0.2.1", | |||
"eslint-plugin-jsx-a11y": "6.5.1", | |||
"eslint-plugin-node": "11.1.0", |
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.
Where do we use this?
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.
In PR #2853, we added a number of eslint overrides, and they addressed all the eslint errors we were getting for the Docusaurus app. Hence, the overrides in this PR are identical to what we had previously (just located in src/docs
as opposed to /
).
For some reason, I am no longer getting any eslint errors for the Docusaurus app on master right now. I don't know if this PR is even needed...
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.
What if you introduce an eslint error, does it catch that?
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.
@menghif we use eslint-plugin-node
here
telescope/src/docs/.eslintrc.js
Lines 25 to 26 in 36f2307
'node/no-missing-import': 'off', | |
'node/no-unsupported-features/es-syntax': 'off', |
36f2307
to
0d983f6
Compare
62cce80
to
102758e
Compare
@cindyledev we have three commits here.🤭 It's better to rebase I think. |
three commits here but only one commit was merged into master ;) |
Issue This PR Addresses
Fixes #2970
Type of Change
Description
Before when we ran
pnpm lint
, we get only lint our tree and the Next.js frontendWith this PR, we will also lint the Docusaurus sub-project
Steps to test the PR
To test this PR locally:
git remote add cindyledev https://github.com/cindyledev/telescope.git
git fetch cindyledev
git checkout issue-2970
pnpm install
pnpm lint
Checklist