1.1.0 • Published 1 year ago

@matali/eslint-config v1.1.0

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

@matali/eslint-config

Personal, shareable ESLint configuration for TypeScript and Next.js projects.

Features

Installation

npm install --save-dev @matali/eslint-config @typescript-eslint/parser eslint typescript
yarn add --dev @matali/eslint-config @typescript-eslint/parser eslint typescript
pnpm add --save-dev @matali/eslint-config @typescript-eslint/parser eslint typescript

Usage

Specify the parser for TypeScript files in your .eslintrc.* configuration file, provide a path to your project's tsconfig.json and add @matali to the extends array.

{
  "extends": ["@matali"],
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

In Next.js projects extend @matali/eslint-config/next instead.

{
  "extends": ["@matali/eslint-config/next"],
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

Authors

License

MIT