Skip to content

Meet-Coder-Study/study-platform-frontend

Repository files navigation

study-platform-frontend

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

setup

add eslint prettier

npm i eslint-config-prettier eslint-plugin-prettier --save-dev

.eslintrc.js rules에 'prettier/prettier': 'off', 추가

add husky

  • 커밋하기전에 eslint 검사
// 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"
  },

typescript props

interface Product {
  name: string;
  price: number;
}
props: {
  product: {
    type: Object as () => Product,
    required: true,
  },
},

breakpoint

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) { ... }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published