blakeembrey / tslint-config-standard

A TSLint config for JavaScript Standard Style
Other
358 stars 43 forks source link

Linting for js files #42

Closed qqilihq closed 5 years ago

qqilihq commented 7 years ago

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 commented 6 years ago

@qqilihq : follow this tslint PR: https://github.com/palantir/tslint/pull/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 commented 6 years ago

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.