Closed bvandercar-vt closed 3 months ago
Hmm, I'm a bit scared prettier and standardjs (/ts-standard) will clash on some code. Is there no way to get this working by adding an extra eslint rule to the standardjs ones? Or otherwise, eslint-plugin-prettier
?
Hmm, I'm a bit scared prettier and standardjs (/ts-standard) will clash on some code. Is there no way to get this working by adding an extra eslint rule to the standardjs ones? Or otherwise,
eslint-plugin-prettier
?
I've seen many repos with all 3 (ts checking, eslint, and prettier), there shouldn't be any clashing I don't think?
The problem with ts-standard
is you can't configure it. You can't add eslint plugins, or configure specific eslint rules. Would have to move towards regular eslint
.
Hmm, I'm a bit scared prettier and standardjs (/ts-standard) will clash on some code. Is there no way to get this working by adding an extra eslint rule to the standardjs ones? Or otherwise,
eslint-plugin-prettier
?I've seen many repos with all 3 (ts checking, eslint, and prettier), there shouldn't be any clashing I don't think?
The problem with
ts-standard
is you can't configure it. You can't add eslint plugins, or configure specific eslint rules. Would have to move towards regulareslint
.
I think it's definitely possible to add extra rules and configure ts-standard
. These can be added to package.json or tsconfig.eslint.json
. See: https://standardjs.com/#typescript
Hmm, I'm a bit scared prettier and standardjs (/ts-standard) will clash on some code. Is there no way to get this working by adding an extra eslint rule to the standardjs ones? Or otherwise,
eslint-plugin-prettier
?I've seen many repos with all 3 (ts checking, eslint, and prettier), there shouldn't be any clashing I don't think? The problem with
ts-standard
is you can't configure it. You can't add eslint plugins, or configure specific eslint rules. Would have to move towards regulareslint
.I think it's definitely possible to add extra rules and configure
ts-standard
. These can be added to package.json ortsconfig.eslint.json
. See: https://standardjs.com/#typescript
Have tried to get multiple plugins to work with ts-standard
-- Nothing I've tried works. Will just close this PR. I do see how prettier has conflicting opinions with ts-standard.
Thought I'd try this out and see how it looked, since ts-standard wasn't fixing whitespaces. Just a proposal, up to the repo owners if they like this!