-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.json
39 lines (39 loc) · 1.63 KB
/
.eslintrc.json
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
{
"parser": "@typescript-eslint/parser", // eslint to TS
"plugins": ["prettier", "@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/recommended", // ts 추천 rules https://github.com/typescript-eslint/typescript-eslint#readme
"plugin:react/recommended", // react 추천 rules. https://github.com/yannickcr/eslint-plugin-react
"plugin:react-hooks/recommended", // react-hook 추천 rules. https://github.com/facebook/react
"plugin:jsx-a11y/recommended", // jsx 추천 rules. https://www.npmjs.com/package/eslint-plugin-jsx-a11y
"plugin:import/errors", // es6+ import/export syntax linting 지원. https://www.npmjs.com/package/eslint-plugin-import
"plugin:import/warnings", // es6+ import/export syntax linting 지원. https://www.npmjs.com/package/eslint-plugin-import
"prettier" // eslint rule과 prettier rule 충돌 방지. https://github.com/prettier/eslint-config-prettier
],
"parserOptions": {
"ecmaVersion": 2018, // 문법 지원 (기본 값으로 둠)
"sourceType": "module" // 모듈 시스템 사용
},
"rules": {
// custom 해야할 규칙 선언
"prettier/prettier": ["error", {"endOfLine":"auto"}],
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "off",
"jsx-a11y/no-onchange": "off"
},
"settings": {
"react": {
"version": "detect"
},
"import/extensitions": [".js", ".jsx", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
}
}