Desired Outcome:
I am using sublime IDE and would like my typescript code to be automatically linted as I type, instead of relying on a watcher or any ng commands.
I have an angularcli project and I am examining the .angular-cli.json file.
In the lint array section, I have added a reference to my new tslint.json file:
"lint": [
{
"project": "tslint.json"
}
]
Subsequently, I created a tslint.json file and included a testing rule:
{
"rules": {
"semicolon": [
true,
"always"
]
}
}
I attempted to run ng lint because my package.json contains the following:
"scripts": {
"lint": "gulp lint"
}
However, running ng lint resulted in the following error message:
nvalidConfigError: Parsing '/Users/markoddi/Public/appscatter_ui2/.angular-cli.json' failed. Ensure the file is valid JSON. Error: Unexpected token / in JSON at position 1135
To summarize, I require assistance in setting up tslint to run during coding.