@baloise/eslint-config-typescript

1.0.0 • Public • Published

eslint-config-typescript

NPM package Build Status Sematic-Release

ESLint shareable config for the Baloise style.

TypeScript Rules

Installation

yarn add -D eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript

Create a .eslintrc file with the following content.

{
  "extends": [
    "@baloise/eslint-config-typescript"
  ]
}

Use prettier formatter

yarn add -D prettier eslint-config-prettier

Add prettier and prettier/@typescript-eslint to your .eslintrc file.

{
  "extends": [
    "@baloise/eslint-config-typescript",
    "prettier",
    "prettier/@typescript-eslint"
  ]
}

Create a .prettierrc file with the following content.

{
  "singleQuote": true,
  "semi": false,
  "trailingComma": "all"
}

Open your package.json and add the following script command format.

  "scripts": {
    "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
    ...
  },

Readme

Keywords

Package Sidebar

Install

npm i @baloise/eslint-config-typescript

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

15 kB

Total Files

4

Last publish

Collaborators

  • assistentenitch
  • madalina.iacob
  • yannickholzenkamp
  • montakasparsone
  • team_mortal
  • mladenplaninicic
  • nobilo
  • thomasseyssenstpo
  • se-aperto-com
  • baopso
  • hirsch88