Table des matières

ESLint

Dépendances

$ npm i eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-jest -D
$ npm i prettier eslint-plugin-prettier eslint-config-prettier -D
$ npm i eslint-plugin-simple-import-sort -D

Règles

Unused variables pour rest siblings

const { password, ...result } = user;
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", {
  "ignoreRestSiblings": true
}]

Source

Interfaces

"@typescript-eslint/interface-name-prefix": ["error", {
  "prefixWithI": "always"
}]