5. Parcel & ESLint
Parcel
// package.json
"source": "./index.html",npm i -D parcel-reporter-static-files-copy๋ฐฐํฌํ๊ณ ์ถ๋ค
lint ๋ฌด์์ ์ํด์?
Last updated
// package.json
"source": "./index.html",npm i -D parcel-reporter-static-files-copyLast updated
// .parcelrc
{
"extends": ["@parcel/config-default"],
"reporters": ["...", "parcel-reporter-static-files-copy"]
}npm run build //start๋ง ํด๋ dist ์๊น.
// npx parcel build ํด๋๋จ package์ค์ ์ํ์ผ๋ฉดcd dist
npx servor // zero configuration server{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}{
"editor.rulers": [
80
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"trailing-spaces.trimOnSave": true
}npm run check //ํ์
์คํฌ๋ฆฝํธ ์ปดํ์ผ ํ๋ฉด์ ๋ฌธ์ ๋๋๊ฑฐ ์ก๊ณ
npm run lint //๋ฆฐํ
~
ํ๋์ง๋ฆฌ ์คํฌ๋ฆฝํธ๋ก ๋ง๋ค์ด๋๋จ (๋น์ฐ; ;)