-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
include recommended ts-eslint rules for gts #2107
include recommended ts-eslint rules for gts #2107
Conversation
…or ts/gts but they only to that for known extensions, therefore we need to reapply them in our recommended config see issue typescript-eslint/typescript-eslint#8607
6600335
to
5aee9fc
Compare
i changed it to just copy the rules instead |
@@ -1,4 +1,29 @@ | |||
const base = require('./base'); | |||
const gtsRules = require('../recommended-rules-gts'); | |||
|
|||
module.exports = [...base, { rules: gtsRules }]; | |||
// see https://github.com/typescript-eslint/typescript-eslint/issues/8607 | |||
// https://github.com/typescript-eslint/typescript-eslint/blob/v7.4.0/packages/eslint-plugin/src/configs/eslint-recommended-raw.ts |
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.
why don't we use this config? because we can't force v7?
and we don't want a peer requirement? (I think that's what we ended up deciding on elsewhere, yeah?)
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.
That cannot be used directly. It's a utility function. Eslint needs an object as default export
typescript recommended rules turn off eslint rules that do not work for ts/gts
but they only to that for known extensions, therefore we need to reapply them in our recommended config
see issue typescript-eslint/typescript-eslint#8607
fixes #2106