Background:
My monorepo workspace root has a tslint.json file with common lint config. Child projects have their own tslint.json files, which extend the root config ("extends": "../../tslint.json").
root
tslint.json
libs
project1
tslint.json
foo.ts
project2
tslint.json
Problem:
When foo.ts is open, the root config is used rather than the corresponding child config.
Solution:
Instead of using the config at the root directory, it should walk up the tree until it finds a tslint.json and use that instead.
Background: My monorepo workspace root has a
tslint.json
file with common lint config. Child projects have their owntslint.json
files, which extend the root config ("extends": "../../tslint.json"
).Problem: When
foo.ts
is open, the root config is used rather than the corresponding child config.Solution: Instead of using the config at the root directory, it should walk up the tree until it finds a
tslint.json
and use that instead.