Open Kaffiend opened 6 years ago
Run into same problem. Changing project tslint.json
doesn't seem to have any effect
I didn't even manage to find location of packaged tslint.json
... @Kaffiend where did you find it?
@boyangwang Its in the libs directory under your node_modules
you have to dig through there and change it instead of the generated project tslint.json
Hi, I got it working. After some digging , I found that tslint.json is being used correctly. But, if you are seeing error from js files, then you need to add jsRules
in tslint.json, parallel to rules
... and then override whichever rules to suppress errors/warnings
by default tslint.json doesn't have the rules
property. Adding it solved it for me.
{
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
"rules": {
"interface-name": false,
"no-empty-interface": false,
"ordered-imports": false,
"interface-over-type-literal": false
},
"linterOptions": {
"exclude": [
"config/**/*.js",
"node_modules/**/*.ts"
]
}
}
project root
tslint.json
should take precedence over packagedtslint.json
to change any rules you have to dig through node_modules and change the packagetslint.json
Edit: even though the editor doesnt complain when coding, the build still fails.