-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
46 lines (45 loc) · 1.02 KB
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
env:
browser: true
es2021: true
parser: '@typescript-eslint/parser'
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: latest
project: ./tsconfig.json
plugins:
- react
- react-hooks
- '@typescript-eslint'
- jest
- jest-dom
- testing-library
extends:
- plugin:react/recommended
- plugin:react-hooks/recommended
- airbnb
- airbnb-typescript
- prettier
overrides:
- files:
- '**/__tests__/**/*.+(ts|tsx|js)'
- '**/?(*.)+(spec|test).+(ts|tsx|js)'
extends:
- plugin:jest/recommended
- plugin:jest-dom/recommended
- plugin:testing-library/react
ignorePatterns:
- vite.config.ts
rules:
# Reactのインポートをチェックしない
react/react-in-jsx-scope: off
# セミコロンつけない
semi:
- error
- never
# importでエラーでないようにする
import/extensions: [0, {".js", ".jsx", ".ts", ".tsx"}]
#debuggerでエラー出さない
no-debugger: off
# testing-library/no-debugging-utilsをoff
testing-library/no-debugging-utils: off