-
Notifications
You must be signed in to change notification settings - Fork 887
When tslint.json uses extends, some rules can't be disabled #1759
Comments
likely a bug introduced by #1622 |
I can't reproduce. I can override |
There are 2 problems here:
I think the fix would be to catch the error in the non-API part of the code |
This still seems to happen:
I get |
I have the same problem and it's been a year since the last comment. {
"extends": ["gts/tslint.json"],
"rules": {
"quotemark": [true, "double", "avoid-escape", "avoid-template"]
},
"jsRules": {
"quotemark": [true, "double", "avoid-escape", "avoid-template"]
}
} $ gts check
...
export async function get_employees_as_json() {
const response = await pool.query(build_sql_to_get_all_employees_as_json());
- return response.rows[0]["json"];
+ return response.rows[0]['json'];
} gts 0.9.0 |
I'm not really familiar with |
You are right! I could not reproduce it with the |
Bug Report
4.0.1
1.8.10
gulp-tslint
v7.0.0When I use this configuration
I get violations for those 2 rules, even though they are set to be disabled. (I probably get more violations than this, but I have it limited to only show 50 at a time). However, if I comment out the contents of the
rulesDirectory
andextends
arrays like this:those rules stay disabled and do not report violations as expected.
The text was updated successfully, but these errors were encountered: