/eslint-config-jk-ts

Node.js lint setup and config that I use in my TypeScript projects (based on StandardJS).

Primary LanguageJavaScriptMIT LicenseMIT

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)