Skip to content
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

Added migration to eslint #49

Closed
wants to merge 1 commit into from
Closed

Added migration to eslint #49

wants to merge 1 commit into from

Conversation

Dmytraw
Copy link

@Dmytraw Dmytraw commented Oct 8, 2019

Resolves #48

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an awesome start! Some requested changes, but I think this is in the right direction. 😄

@@ -0,0 +1,39 @@
comment-type does not yet have an ESLint equivalent.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, no need to check this in. Let's just remove it.

sourceType: "module",
},
plugins: ["@typescript-eslint", "@typescript-eslint/tslint"],
rules: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a lot of rules to enable! Let's extend from the list of rules defined in the plugins.

Example reference: https://github.com/typescript-eslint/tslint-to-eslint-config/pull/229/files#diff-e4403a877d80de653400d88d85e4801aR6

"space-before-function-paren": "off",
"use-isnan": "error",
yoda: "error",
"@typescript-eslint/tslint/config": [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amusing that there are still so many not yet implemented. You can go ahead and not include this list of tslint/config rules. I'm ok with them not being enabled any more. 😮

"tslint": "5.20.0",
"tslint-config-prettier": "^1.18.0"
"tslint": "^5.20.0",
"tslint-config-prettier": "^1.18.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two tslint packages should be removed. I think that'll be possible once the tslint/config rules are no longer included?

@JoshuaKGoldberg
Copy link
Member

Ping, still interested @Dmytraw ?

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch from TSLint to typescript-eslint
2 participants