Closed DimiTech closed 4 years ago
Hi, I want the tsuquyomi linter to read the linting rules from my tslint.json. Currently it ignores it.
tsuquyomi
tslint.json
.vimrc
... " Syntastic + tsuquyomi (TypeScript) let g:tsuquyomi_disable_quickfix = 1 let g:syntastic_typescript_checkers = ['tsuquyomi'] ...
{ "defaultSeverity": "error", "extends": [ "tslint:recommended" ], "rules": { + "semicolon": [ true, "never" ], "no-console": { "severity": "warn" }, "quotemark": [ true, "single", "avoid-escape" ] }, "rulesDirectory": [] }
As you can see, tslint.json specifies that a linting error should be shown for semicolons.
IGreeter.ts
export default interface IGreeter { - greet(name: string): void; }
The semicolon at the end of the greet... line should trigger tsuquyomi to show a Unnecessary semicolon linting error but it does not.
greet...
Unnecessary semicolon
tslint
$ tslint IGreeter.ts ERROR: IGreeter.ts[2, 28]: Unnecessary semicolon
Is there anything I'm missing?
Thanks for all the hard work!
This issue is no longer relevant since tslint is being deprecated in favor of eslint.
eslint
The problem:
Hi, I want the
tsuquyomi
linter to read the linting rules from mytslint.json
. Currently it ignores it.My
.vimrc
tsuquyomi settings:My
tslint.json
file:As you can see,
tslint.json
specifies that a linting error should be shown for semicolons.File that I'm testing on -
IGreeter.ts
:The semicolon at the end of the
greet...
line should triggertsuquyomi
to show aUnnecessary semicolon
linting error but it does not.Here is what happens when I run
tslint
from the console:Is there anything I'm missing?
Thanks for all the hard work!