ts-standard
ts-standard copied to clipboard
Making ts-standard easier to use
I was going through the issues of standard in the original repo, and I saw that issue : https://github.com/standard/standard/issues/1356
What problem do you want to solve?
I feel like ts-standard should follow the principles/rules as close as possible of standard.
What do you think is the correct solution to this problem?
-
Build in
snazzyso users can dots-standard --report=snazzyand get pretty output maybe we can add package.json options as well. Also, in thestandardissue, they're talking aboutstandard-jsonandstandard-tap. -
Build-in
prettierwould be awesome, maybe if we dots-standard --format, it automatically runsprettier+ts-standard --fix.prettieralso runs in.md,.json,.yaml,.cssfiles etc. not only in.jsor.tsI see that this project is using this script in
package.json:"lint": "prettier --write '**/*.{ts*,js*,yml}' && bin/cmd.js --fix && tsc --noEmit"and this
prettierconfiguration :"prettier": { "singleQuote": true, "semi": false }What if we would not need to do all these configurations ourselves and
ts-standardwill do it for us ?
Are you willing to submit a pull request to implement this change?
Yes of couse!
Any thoughts ? @toddbluhm
@Divlo Thanks for the feedback. Initially, my goal for this package was to mimick standard as close as possible and keep feature parity with standard. However, your right, it looks like @feross is trying to improve the ease of use of standard
I'd say go for it! It might be cool to have this package be a test-bed for new standard features.
Make sure all new features are behind some sort of flag and opt-in only. All existing standard flags should continue to perform exactly like the regular standard that way we maintain full parity/backward compatibility with it.
Alright, I will try to open a pull request to add the --format flag to the CLI. :+1:
I just cloned the repo but when I run npm run lint, I've got errors thrown by tsc --noEmit command, so I will first open a PR (see #104) to update dependencies and try to fix this issue, maybe once this is fixed, we could release the v10 release (also there is no standard organization on npm) before adding --format flag.
also there is no standard organization on npm
Our organization on npm is called standardjs because standard is being used by someone with private packages.
If you're keen to work on these issues, I'd love to solve it in standard-engine (where that makes sense) so that all downstream packages like standard, semistandard, ts-standard, etc. benefit and maybe we can close https://github.com/standard/standard/issues/1356 at the same time!