Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@navinc/eslint-config-typescript

frontend-nav17UNLICENSED1.5.0

Nav's base ESLint+Typescript configuration

readme

@navinc/eslint-config-typescript

Nav's home for common ESLint+Prettier+Typescript configurations.

Getting Started

Install the package and all peer dependencies using the following command:

npx install-peerdeps @navinc/eslint-config-typescript --dev

Usage

Add the following to your .eslintrc file:

{
  ...
  "extends": "@navinc/eslint-config-typescript",
  "parserOptions": {
    "project": "./tsconfig.json"
  }
  ...
}

Create a .prettierrc.js file with the following:

module.exports = {
  ...require("@navinc/eslint-config-typescript/prettier.js")
};