You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.
I agree to follow the code of conduct that this project follows, as appropriate.
I have searched the issue tracker for an issue that matches the one I want to file, without success.
Please describe your issue:
It doesn't appear the lint task work in the generated projects. For example, right away there's an issue with the curly rule warning not popping up for src/index.ts.
Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem.
Now open foobar-project/src/index.ts in something that's tslint aware like VS Code. You'll immediate see there's a linting error on about line 11, where there's no curly braces for the live reload check. That is, by the way, a separate issue.
Now run yarn lint or anything that runs the lint task. No lint warnings appears. If you go into either of the tsx or ts files and start putting stuff in them clearly out of style, the lint task will give no warnings. In fact, you can replace index.ts with the US constitution or anything that's not valid code and it won't be read either.
I think the issue is that the lint task resolves to tslint src and that does not appear to recursively lint .ts or .tsx files undernearth src. Running something explicit like yarn lint -- src/index.ts does get the linter to respond to the file on disk.
The text was updated successfully, but these errors were encountered:
While #31 resolves the react-typescript situation, as mentioned in #31, another PR should be made against the angular 2 version too.
malept
changed the title
lint task does not appear to work for react-typescript template and maybe the other Typescript templated projectslint task does not appear to work for the TypeScript templated projects
Apr 26, 2017
Please describe your issue:
It doesn't appear the
lint
task work in the generated projects. For example, right away there's an issue with thecurly
rule warning not popping up forsrc/index.ts
.Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem.
Run this:
Now open
foobar-project/src/index.ts
in something that'stslint
aware like VS Code. You'll immediate see there's a linting error on about line 11, where there's no curly braces for the live reload check. That is, by the way, a separate issue.Now run
yarn lint
or anything that runs thelint
task. No lint warnings appears. If you go into either of thetsx
orts
files and start putting stuff in them clearly out of style, thelint
task will give no warnings. In fact, you can replaceindex.ts
with the US constitution or anything that's not valid code and it won't be read either.I think the issue is that the
lint
task resolves totslint src
and that does not appear to recursively lint.ts
or.tsx
files undernearthsrc
. Running something explicit likeyarn lint -- src/index.ts
does get the linter to respond to the file on disk.The text was updated successfully, but these errors were encountered: