npm install
npm run serve
npm run build
npm run lint
npm i eslint-config-prettier eslint-plugin-prettier --save-dev
.eslintrc.js rules에 'prettier/prettier': 'off', 추가
// packages.json
"husky": {
"hooks": {
"pre-commit": "eslint app.js --fix"
}
}
npm i lint-staged --save-dev
//packages.json
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": "eslint --fix"
},
interface Product {
name: string;
price: number;
}
props: {
product: {
type: Object as () => Product,
required: true,
},
},
Breakpoint prefix Minimum width CSS
sm 640px @media (min-width: 640px) { ... }
md 768px @media (min-width: 768px) { ... }
lg 1024px @media (min-width: 1024px) { ... }
xl 1280px @media (min-width: 1280px) { ... }
2xl 1536px @media (min-width: 1536px) { ... }