Skip to content

Commit cff0401

Browse files
committed
린트
1 parent 0760994 commit cff0401

18 files changed

+992
-348
lines changed

Diff for: .eslintrc.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
node: true,
6+
},
7+
extends: "eslint:recommended",
8+
globals: {
9+
Atomics: "readonly",
10+
SharedArrayBuffer: "readonly"
11+
},
12+
parserOptions: {
13+
ecmaVersion: 2018,
14+
sourceType: "module"
15+
},
16+
plugins: ["prettier"],
17+
rules: {
18+
"prettier/prettier": "error"
19+
}
20+
};

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- 1-webpack/2-loader: 웹팩 로더 실습
1919
- 1-webpack/3-plugin: 웹팩 플러그인 실습
2020
- 2-babel/1-babel: 바벨 실습
21+
- 2-babel/1-sass: 사스 실습
2122
- 3-lint/1-eslint: 린트 실습
2223
- 3-lint/2-prettier: 프리티어 실습
2324
- 4-webpack/1-dev-server: 웹팩 개발 서버 실습

Diff for: babel.config.js

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
module.exports = {
22
presets: [
3-
['@babel/preset-env', {
4-
targets: {
5-
chrome: '79',
6-
ie: '11', // npm i regenerator-runtime 필요함
7-
},
8-
useBuiltIns: 'usage', // 폴리필 사용 방식 지정
9-
corejs: { // 폴리필 버전 지정
10-
version: 2
3+
[
4+
"@babel/preset-env",
5+
{
6+
targets: {
7+
chrome: "79",
8+
ie: "11" // npm i regenerator-runtime 필요함
9+
},
10+
useBuiltIns: "usage", // 폴리필 사용 방식 지정
11+
corejs: {
12+
// 폴리필 버전 지정
13+
version: 2
14+
}
1115
}
12-
}],
13-
],
14-
};
16+
]
17+
]
18+
};

0 commit comments

Comments
 (0)