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
chore: fix builds/tests/eslint #4780
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
2e64e44
to
4bab688
Compare
.eslintrc.js
Outdated
@@ -0,0 +1,33 @@ | |||
const path = require('path') |
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 moved eslint config to here to use the path.resolve
in parserOptions.project
.eslintrc.js
Outdated
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: [ | ||
path.resolve(__dirname, './packages/**/tsconfig.eslint.json'), |
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.
Would be happy if this did not need to move out of package.json
, but I see you are using path
. I won't have strong feelings about it if there is no workaround. 🤔
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 moved it inside pacakge.json
again! I thought missing path
and __dirname
was the problem but it turned out weren't
Nope, we still need it here for parserOptions.project
to work 😂
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.
Tests pass.. LGTM 😊👍
@ndom91 great! @balazsorban44 and Nico, could you check if it works on your local machine? 🙌 |
Yeah, can check later this evening when I'm back home 👍 |
In your IDE, make sure to add Prettier
Merging this now, I pulled a fresh repo and it still works 🤞 |
ESLint has not been working for me for a while now, I finally had a look at it to fix it. Builds also started failing locally, because of some missing types, which should be fixed now as well.
I also turned on linting on test files.