-
Notifications
You must be signed in to change notification settings - Fork 100
Missing converter: triple-equals #187
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
Comments
The issue here is that this package doesn't know how to convert the TSLint rule into the equivalent ESLint rule. Accepting PRs to add in a converter! 🙌
See #189 for an example of a simple rule converter that was recently added in. |
Hey I'd like to give this a go |
The TSLint options for the triple-equals rule are: [ "allow-null-check", "allow-undefined-check" ]. The "allow-null-check" option best maps to the ESLint "smart "option. It also has the additional functionality of allowing comparing two literal values and evaluating the value of typeof. I have added this information in the "notice" array if the user has selected the "allow-null-check" option. The "allow-undefined-check" option does not have a direct mapping to ESLint. I have added this to the "notice" array and selected the "smart" option as I believe it to be the closest. Not supplying an argument for TSLint defaults to the ESLint "always" option. |
💥 Missing Converter
tslint-to-eslint-config
version: 1.2.0typescript-eslint
version: 2.3.2TSLint Rule Name
triple-equals
The text was updated successfully, but these errors were encountered: