npm i -D @typoerr/eslint-config
{ "extends": ["@typoerr/eslint-config"] }
{ "extends": ["@typoerr/eslint-config", "@typoerr/eslint-config/+typescript"] }
Prettier を使う場合は必ず最後に追加する
{
"extends": [
"@typoerr/eslint-config",
"@typoerr/eslint-config/+typescript",
"@typoerr/eslint-config/+prettier"
]
}
利用環境に合わせて env を指定する
Language Options - ESLint - Pluggable JavaScript linter
- eslint/eslint: A fully pluggable tool for identifying and reporting on patterns in JavaScript
- ESLint - Pluggable JavaScript linter
- List of available rules - ESLint - Pluggable JavaScript linter
- Configuring ESLint - ESLint - Pluggable JavaScript linter
- ESLint 最初の一歩 - Qiita
- teppeis/eslint-config-teppeis: ESLint shareable config for me!
- prettier/eslint-plugin-prettier: ESLint plugin for Prettier formatting
- prettier/eslint-config-prettier: Turns off all rules that are unnecessary or might conflict with Prettier.