tslint-config-prettier
tslint-config-prettier copied to clipboard
tslint rule `"quotemark": "avoid-template"` is not covered by prettier
"rules": {
"quotemark": [
true,
"avoid-template"
]
}
The above tslint rule prevents declaring strings like
const f = `f`
Prettier does not plan on supporting a rule like this: https://github.com/prettier/prettier/issues/4175
Is there a way that using the "avoid-template"
rule with "quotemark"
won't throw when running tslint-config-prettier-check
? Or an option to whitelist a rule?
Is there a way that using the
"avoid-template"
rule with"quotemark"
won't throw when runningtslint-config-prettier-check
? Or an option to whitelist a rule?
Currently, tslint-config-prettier-check
does not support whitelisting rule options, and I don't think we'll add support for it given that tslint
itself is already deprecated (palantir/tslint#4534). PRs to add such support is still welcome, though.
That's very interesting. @ikatyang do you think it could be a good idea to merge this library with eslint-config-prettier after that? You created a great setup in this lib that could be awesome to have it in eslint version!