2.0.1 • Published 1 year ago

@justinkalland/eslint-ts v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

JavaScript Style Guide

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)