forked from jiphyeonjeon-42/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
43 lines (41 loc) ยท 956 Bytes
/
.eslintrc.js
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
// .eslintrc.js
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
"airbnb",
"prettier",
"eslint:recommended",
"plugin:prettier/recommended",
],
rules: {
"react/jsx-filename-extension": [
"error",
{
extensions: [".js", ".jsx"],
},
],
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
"no-console": 0,
},
settings: {
"import/resolver": {
node: {
paths: ["src"],
},
},
},
parser: "babel-eslint",
};
// "extends": ["plugin:prettier/recommended"]๋ ์ธ ๊ฐ์ง๋ฅผ ํ๋ค๊ณ ์ค๋ช
ํ๋ค.
// 1. eslint-plugin-prettier๋ฅผ ์คํํ๋ค.(Enables eslint-plugin-prettier.)
// 2. prettier/prettier์ ๊ท์น์ "error"๋ก ์ค์ ํ๋ค.(Sets the prettier/prettier rule to "error".)
// 3. eslint-config-prettier๋ฅผ ์ ์ฉ์ํจ๋ค.(Extends the eslint-config-prettier configuration.)