Skip to content

friendsoftheweb/eslint-config

Repository files navigation

ESLint Configuration

TypeScript Projects

Install dependencies:

$ yarn add --dev eslint @ftw/eslint-config-ts

Create an .eslintrc file in the root of your project:

{
  "extends": ["@ftw/eslint-config-ts"],
  "env": {
    "node": true,
    "browser": true
  }
}

Add a lint script to your package.json:

"scripts": {
  "lint": "eslint \"client/**/*.{js,ts,tsx}\""
}

Publishing

You can publish a new version of the package by running yarn publish. Lerna will prompt you to choose new version numbers before the package is published.