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

Questions #6

Open
tinchoz49 opened this issue Jun 22, 2020 · 6 comments
Open

Questions #6

tinchoz49 opened this issue Jun 22, 2020 · 6 comments

Comments

@tinchoz49
Copy link

Hey @Raynos

First I want to share with you how I was using tsdocstandard. Maybe you can take something for the documentation.

In a clean project I installed tsdocstandard local using an alias:
npm install -D standard@npm:tsdocstandard

By doing this I can use tsdocstandard with vscode-standard and it works very well.

My questions are:

  1. I have some client projects using semistandard, how can I use tsdocstandard + semistandard?
  2. Do you know if there is a way to not having to define a tsconfig.json? Like having a default tsconfig.json with { "allowJs": true,"checkJs": true }.
@Raynos
Copy link
Owner

Raynos commented Jun 23, 2020

I believe ts supports jsconfig.json aswell.

You need to configure typescript and you need to run tsc && tsdocstandard together.

The linter won’t work if then typescript checker fails.

@Raynos
Copy link
Owner

Raynos commented Jun 23, 2020

As for semistandard. I can look into allowing rule overwrites like standardx

@Raynos
Copy link
Owner

Raynos commented Jul 8, 2020

I added a usage section ( https://github.com/Raynos/tsdocstandard#usage ).

@tinchoz49
Copy link
Author

Thanks, I was thinking on work in a PR to add the support for semistandard. I don't know yet if it should be through a flag or maybe by detecting semistandard installed locally?

@Raynos
Copy link
Owner

Raynos commented Jul 8, 2020

adding a --semi flag seems pretty straight forward. ( https://github.com/standard/eslint-config-semistandard/blob/master/.eslintrc.js )

It looks like it's literally two eslint rules. setting those two rules programatically should be fine.

@tinchoz49
Copy link
Author

tinchoz49 commented Jul 8, 2020

It looks like it's literally two eslint rules. setting those two rules programatically should be fine.

That's right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants