-
Notifications
You must be signed in to change notification settings - Fork 49
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
[static-site] we're not linting TS files #905
Comments
Note: this is also going to require extending/upgrading the ESLint ecosystem to get it to be able to parse Typescript ... |
Here's how auspice does it - not saying nextstrain.org has to do the same, but if there's no objectively better way then it'd be nice to have consistency. |
Okay, there's a bit of yak shaving potential here... Installing
Due to I propose to do the following:
Potentially a scope expansion, but if we want to push for standardization across I'm very much on the fence about the value of 100% sync of linting rules across these two projects at this point in time. I would LOVE to hear opinions and feedback about the above! |
I don't think our different projects have to have exactly the same linting/setups/whatever. I'm not going to stand in the way of it if folks think it's valuable, but personally I think effort spent to make everything the same in those regards is needless work. I think copying as a starting point is fine, and I think they'll likely diverge over time and that's also fine. |
Thanks for catching this, should've been a part of #877! Figuring out the right versions of packages that work together is a struggle. Your proposal sounds good.
This is noted in vercel/next.js#50731 (comment). I think we can manually move it over the |
Also manually updated the version in package.json
Per [install instructions](https://typescript-eslint.io/getting-started/)
…everywhere we're currently violating it.
Load up required bits of ESLint machinery; update the `lint:static-site` script to also look at *.tsx? files.
Also manually updated the version in package.json
Per [install instructions](https://typescript-eslint.io/getting-started/)
…everywhere we're currently violating it.
Load up required bits of ESLint machinery; update the `lint:static-site` script to also look at *.tsx? files.
Update: |
Per [install instructions](https://typescript-eslint.io/getting-started/). Note: also update `eslint-plugin-jest` to 28.6.0, in order to allow v7 of the typescript-eslint packages to be installed (previous version only peerDep'd with ^5.0.0 version).
…everywhere we're currently violating it.
Load up required bits of ESLint machinery; update the `lint:static-site` script to also look at *.tsx? files.
Our static-site linting rule needs to consider
ts
andtsx
files:nextstrain.org/package.json
Line 18 in 5f75819
Observed because the nextjs build failed (due to linting errors) in #904
The text was updated successfully, but these errors were encountered: