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

Linting for js files #42

Closed
qqilihq opened this issue Oct 31, 2017 · 2 comments · Fixed by #57
Closed

Linting for js files #42

qqilihq opened this issue Oct 31, 2017 · 2 comments · Fixed by #57
Labels

Comments

@qqilihq
Copy link

qqilihq commented Oct 31, 2017

Great work, thank you. This is more a general question than an issue, still I would appreciate some input:

We currently have a mixture of ts/js files in our project and I'd like to lint the js files with tslint as well.

When using the tslint:recommended rules, there are jsRules. tslint-config-standard and tslint-eslint-rules provide no jsRules however.

Is there any package or setting which I could use to have the 'JS Standard Style' linting for js files with tslint?

@ghost
Copy link

ghost commented Jun 15, 2018

@qqilihq : follow this tslint PR: palantir/tslint#3641 . It looks like you can set jsRules: true in tslint.json and it'll automatically apply any rules that aren't typescript specific.

@qqilihq
Copy link
Author

qqilihq commented Jun 15, 2018

Thanks for feedback! As chance will have it, we've now migrated all our JS files to TS, so I'm currently not able to give it a try, but I'll keep it in mind for future projects.

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

Successfully merging a pull request may close this issue.

2 participants