• 追加された行はこの色です。
  • 削除された行はこの色です。
#author("2021-02-17T06:07:54+09:00","default:ryuichi","ryuichi")
* ESLint + TypeScript [#p51dbd4d]
- 2019年TSLintはdeprecatedになったので、2020年以降はESLintを代わりに使う

## インストール

	npm install --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin

** 設定 [#z8b07b8e]

''.eslintrc.js'' 👇👇👇
	
	module.exports = {
	  root: true,
	  parser: '@typescript-eslint/parser',
	  plugins: [
	    '@typescript-eslint',
	  ],
	  extends: [
	    'eslint:recommended',
	    'plugin:@typescript-eslint/recommended',
	  ],
	};

** 参考 [#we92b5f8]
- https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/README.md
- https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin/src/configs



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS