typescript-eslint
legacy
$ yarn add --dev @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint typescript
eslintとtypescriptは前提として、
plugin本体と @typescript-eslint/eslint-plugin
parserが要る @typescript-eslint/parser
code:js
/* eslint-env node */
module.exports = {
parser: '@typescript-eslint/parser',
root: true,
};
plugin:@typescript-eslint/recommended
parserを指定する
公式のドキュメントでこうなってるけど、
そもそもこのrecommended内でparser指定があるような