I want to use the same style in .js files and .ts files. I know there is jsRules property in tslint.json, but I see 2 problems with it:
- Copying ant pasting exactly the same rules
- When extending some configurations, e.g. tslint-react, you don't get the rules in jsRules, meaning that you have to go to the source code of the ruleset and copy it manually.
Any other way to have the same code style without having to maintain both eslint and tslint?
*.js
file into your roottslint.config
file, astslint
uses NodeJS import resolution behind the scenes... so if you have adynamiclint.js
, it imports just fine in your roottsconfig.json
:{ "extends": [ "./dynamiclint" ] }
– Terracotta