0.0.49 • Published 3 years ago

@typoerr/eslint-config v0.0.49

Weekly downloads
46
License
MIT
Repository
github
Last release
3 years ago

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

Prettier

TypeScript

React(JSX)

React は除外してあるので、必要な場合に追加すること

React 以外でも JSX を使う場合は、no-unused-varによってエラーがでるので以下の rule は必須

"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",

VSCode

0.0.45

3 years ago

0.0.46

3 years ago

0.0.47

3 years ago

0.0.48

3 years ago

0.0.49

3 years ago

0.0.44

3 years ago

0.0.43

3 years ago

0.0.42

3 years ago

0.0.40

3 years ago

0.0.41

3 years ago

0.0.39

3 years ago

0.0.38

3 years ago

0.0.37

3 years ago

0.0.36

3 years ago

0.0.35

4 years ago

0.0.34

4 years ago

0.0.33

4 years ago

0.0.32

4 years ago

0.0.30

4 years ago

0.0.31

4 years ago

0.0.29

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago