@affinidi/eslint-config

2.0.0-beta.0 • Public • Published

ESLint Config

Affinidi's Base ESLint Configuration

Installation

npm install --save-dev @affinidi/eslint-config

Usage

// .eslintrc.js

module.exports = {
  extends: ['@affinidi/eslint-config'],
  parserOptions: {
    project: './tsconfig.eslint.json',
  },
}

It is reccommended that you have a separate tsconfig.eslint.json file that extends from your existing tsconfig.json file. This file will add .eslintrc.js to the "includes" property.

{
  "extends": "./tsconfig.json",
  "include": ["...", ".eslintrc.js"]
}

VS Code + Monorepos

VS Code's ESLint extension requires an additional setting to properly detect ESLint versions/installs/root paths. In a typical mono repo you can do the following:

"eslint.workingDirectories": [
  {
    "pattern": "./packages/*"
  }
]

For more details check out the extention's docs.

Readme

Keywords

none

Package Sidebar

Install

npm i @affinidi/eslint-config

Weekly Downloads

4

Version

2.0.0-beta.0

License

Apache-2.0

Unpacked Size

13.5 kB

Total Files

5

Last publish

Collaborators

  • rohitjjw
  • maratsh-affinidi
  • robert-affinidi
  • standemchuk