Skip to content

Commit 174b9d2

Browse files
committed
add: eslint, prettier 설정
1 parent bcc534e commit 174b9d2

File tree

5 files changed

+3974
-4511
lines changed

5 files changed

+3974
-4511
lines changed

.eslintrc

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"root": true,
3+
"extends": "eslint:recommended",
4+
"env": {
5+
"node": true,
6+
"es6": true,
7+
"jest/globals": true
8+
},
9+
"plugins": [
10+
"jest"
11+
],
12+
"parserOptions": {
13+
"ecmaVersion": 8,
14+
"sourceType": "module"
15+
},
16+
"ignorePatterns": ["node_modules/"],
17+
"rules": {
18+
"indent": ["error", 2, { "SwitchCase": 1 }],
19+
"linebreak-style": ["error", "unix"],
20+
"no-trailing-spaces": 2,
21+
"eol-last": 2,
22+
"space-in-parens": ["error", "never"],
23+
"no-multiple-empty-lines": 1,
24+
"space-infix-ops": "error",
25+
"no-useless-escape": "off",
26+
"require-atomic-updates": "off"
27+
}
28+
}

.eslintrc.js

-18
This file was deleted.

.prettierrc

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2+
"semi": true,
23
"trailingComma": "es5",
34
"tabWidth": 2,
4-
"semi": true,
5-
"singleQuote": true
5+
"singleQuote": true,
6+
"arrowParens": "avoid",
7+
"printWidth": 100
68
}

0 commit comments

Comments
 (0)