2.1.0 • Published 1 year ago

@lzear/eslint-config-typescript v2.1.0

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

@lzear/eslint-config-typescript

Version

Shareable ESLint config for TypeScript projects.

See docs for a list of all rules.

Installation

  1. Install package:
yarn add --save-dev eslint @lzear/eslint-config-typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-n eslint-plugin-node-import eslint-plugin-prefer-arrow eslint-plugin-promise eslint-plugin-sonarjs eslint-plugin-unicorn
  1. Create ESLint configuration file eslint.config.js:
import eslintConfig from '@lzear/eslint-config-typescript'

export default eslintConfig
  1. Add script for package.json:
{
  "scripts": {
    "lint": "eslint .",
  }
}