-
Notifications
You must be signed in to change notification settings - Fork 5
/
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.)