web:javascript:typescript:eslint
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
- trailing comma : comma-dangle
Unused variables pour rest siblings
const { password, ...result } = user;
"no-unused-vars": "off", "@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }]
Interfaces
"@typescript-eslint/interface-name-prefix": ["error", { "prefixWithI": "always" }]
web/javascript/typescript/eslint.txt · Dernière modification : 2022/02/02 00:42 de 127.0.0.1