1.0.1 • Published 1 year ago

@lighttypes/eslint-config-base v1.0.1

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

eslint-config-base

This ESLint configuration does the following:

  • Sets up environment variables for browser, commonjs, ES2021, and Node.js.
  • Extends the recommended ESLint rules.
  • Uses the @typescript-eslint/parser parser.
  • Enables parsing of JSX syntax.
  • Uses the @typescript-eslint plugin.
  • Sets up various ESLint rules related to TypeScript.

Installation

npm install --save-dev @lighttypes/eslint-config-base

Usage

In typescript project, you can apply rules from eslint-config-base.

.eslintrc.json:

{
  "extends": ["@lighttypes/eslint-config-base"]
}

Example

.eslintrc.json:

{
  "root": true,
  "extends": ["@lighttypes/eslint-config-base"],
  "ignorePatterns": ["coverage", "dist"],
  "settings": {
    "import/resolver": {
      "typescript": {
        "project": ["./tsconfig.json"]
      }
    }
  }
}