forked from depromeet/Swimie-Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
33 lines (33 loc) · 1011 Bytes
/
.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
{
"plugins": ["react", "@typescript-eslint", "simple-import-sort"],
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"react/react-in-jsx-scope": "off", // import React from 'react' 안해도 되게 만들어줌.
"simple-import-sort/imports": "error", // import 구문 순서 엉망이면 에러 냄.
"simple-import-sort/exports": "error", // export 구문도 순서 엉망이면 에러 냄.
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
"semi": true
}
]
},
"ignorePatterns": ["**/*.cjs", "**/*.mjs", "commitlint.config.js"]
}