eslint-config-jk-ts
v2.0.0
Published
Node.js lint setup and config that I use in my TypeScript projects (based on StandardJS).
Downloads
34
Readme
eslint-config-jk-ts
Based on the original eslint-config-jk, this is the same idea but for TypeScript.
The lint setup and config that I use in my TypeScript projects. Basically StandardJS with a little extra, and linting on pre-commit.
Setup
One package sets up everything needed for linting:
npm i eslint-config-jk-ts --save-dev
- Installs eslint
- Installs the StandardJS eslint configs / plugins
- Installs the TypeScript esling configs / plugins
- Adds custom rules and plugins I like
- Installs husky
- Installs lint-staged
- Adds to
package.json
(if file exsists)- Eslint config option
- Husky hook to lint on pre-commit
- package script
lint
(npm run lint
)