-
Notifications
You must be signed in to change notification settings - Fork 888
Allow Line comment in tslint.json #4484
Comments
@sokcuri very much agreed! I typically do write inline comments in |
As @JoshuaKGoldberg mentioned, TSLint itself already supports comments in |
I have figured out why this is happening. The package.json below is the npm script where the error occurred. "scripts": {
"lint": "node tslint 'src/**/*.{ts,tsx}'"
} The node is excluded, so it works normally. tslint is not installed globally. |
If Line comment is present in tslint.json, the following error occurs.
https://github.com/Microsoft/TypeScript/blob/master/tslint.json
I have noticed that copying tslint.json from the Microsoft Typescript repository will cause an error. I think there will be enough cases to write line comment during development.
The JSON specification does not officially support Line comment, so I get the above error, but I would like to be able to comment on line.
The text was updated successfully, but these errors were encountered: