0.0.49 • Published 4 years ago
@typoerr/eslint-config v0.0.49
Install
npm i -D @typoerr/eslint-config
Usage
.eslintrc.json
{ "extends": ["@typoerr/eslint-config"] }
+typeScript
{ "extends": ["@typoerr/eslint-config", "@typoerr/eslint-config/+typescript"] }
+prettier
Prettier を使う場合は必ず最後に追加する
{
"extends": [
"@typoerr/eslint-config",
"@typoerr/eslint-config/+typescript",
"@typoerr/eslint-config/+prettier"
]
}
env
利用環境に合わせて env を指定する
Language Options - ESLint - Pluggable JavaScript linter
Reference
ESLint
- 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
- 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.
TypeScript
- typescript-eslint/packages/eslint-plugin at master · typescript-eslint/typescript-eslint
- typescript-eslint/ROADMAP.md at master · typescript-eslint/typescript-eslint
- @typescript-eslint ことはじめ - teppeis blog
React(JSX)
React は除外してあるので、必要な場合に追加すること
React 以外でも JSX を使う場合は、no-unused-var
によってエラーがでるので以下の rule は必須
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
VSCode
0.0.45
4 years ago
0.0.46
4 years ago
0.0.47
4 years ago
0.0.48
4 years ago
0.0.49
4 years ago
0.0.44
4 years ago
0.0.43
4 years ago
0.0.42
4 years ago
0.0.40
4 years ago
0.0.41
4 years ago
0.0.39
4 years ago
0.0.38
5 years ago
0.0.37
5 years ago
0.0.36
5 years ago
0.0.35
5 years ago
0.0.34
5 years ago
0.0.33
5 years ago
0.0.32
5 years ago
0.0.30
5 years ago
0.0.31
5 years ago
0.0.29
5 years ago
0.0.28
5 years ago
0.0.27
5 years ago
0.0.26
5 years ago
0.0.25
5 years ago
0.0.24
5 years ago
0.0.23
6 years ago
0.0.22
6 years ago
0.0.21
6 years ago
0.0.20
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago