gatsby-starter icon indicating copy to clipboard operation
gatsby-starter copied to clipboard

Adds tslint as a dev dependency

Open vitkon opened this issue 7 years ago • 6 comments

If TSLint is not installed globally, it will not lint in IDE local tslint installation fixes it

vitkon avatar Dec 10 '17 23:12 vitkon

Deploy preview ready!

Built with commit 5a99ddb6a80af4204e835aa9ad546dde7193db4b

https://deploy-preview-41--fabien0102-gatsby-starter.netlify.com

fabien0102 avatar Dec 10 '17 23:12 fabien0102

It's strange, we have already a ts-lint dependency and you add tslint (I need to check the difference between the both), and AppVeyor should not like this tslint 😞

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "lint"
npm ERR! node v6.12.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] lint: `npm run lint:ts && npm run lint:md && npm run lint:js && npm run lint:css`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] lint script 'npm run lint:ts && npm run lint:md && npm run lint:js && npm run lint:css'.

fabien0102 avatar Dec 11 '17 08:12 fabien0102

didn't realise there are 2 modules: tslint and ts-lint. It's just my VS Code linting only started to work when I added tslint

So you know what's the difference between these modules?

vitkon avatar Dec 11 '17 10:12 vitkon

@vitkon mmm, so maybe try to totally replace ts-lint by tslint. I want to have the actual lint-staged hook working and the npm run ts:lint also working :wink:

fabien0102 avatar Dec 12 '17 11:12 fabien0102

@fabien0102 ts-lint is a typosquat version of tslint, stuck back at version 4.5.1 (cf 5.9.1). ~Not sure if it's safe or not.~ I'd switch.

Update: I've confirmed ts-lint is a clean build of palantir/tslint@ee721bb, but I'd still switch to tslint for updates and peace of mind.

garthk avatar Jan 21 '18 04:01 garthk

@garthk Perfect, so you can remove and replace totally ts-lint by tslint in this PR and I approve this :wink:

fabien0102 avatar Jan 21 '18 18:01 fabien0102