React, Prettier, ESlint, Husky 및 GitHub Actions용 ​​AirBnB 스타일 가이드로 Nextjs 설정

내 워크플로




miami78 / nextjs-스타터 팩


다음 🦄 프로젝트를 빌드하는 데 필요한 모든 것을 포함하는 Next.js용 JavaScript 스타터입니다.









다음 🦄 프로젝트를 빌드하는 데 필요한 모든 것이 포함된 Next.js용 JavaScript 스타터입니다.

사용 기술


  • Nextjs
  • Eslint
  • Prettier
  • Husky

  • 또한 다음이 포함됩니다.
  • Absolute imports
  • AirBnB Style Guides for React

  • 시작하기

    1. git clone https://github.com/miami78/nextjs-starter-pack.git
    
    2. cd nextjs-starter-pack
    
    3. yarn && yarn dev or npm install && npm run dev if you prefer not to use yarn.
    
    

    용법


    개발 서버


    yarn start / npm start

    You can view the development server at localhost:3000.

    생산 빌드

     yarn build / npm run build

    기여

    1. Fork this repository;
    2. Create your branch: git checkout -b my-new-feature
    3. Commit your changes: git commit -m 'Add some feature'
    4. Push to the branch: git push origin my-new-feature

    Made by Larry Miami




    제출 카테고리:

    Maintainer Must-Haves

    Yaml 파일

    name: Code quality
    
    on: push
    
    jobs:
      code-quality:
        name: Lint source code
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@v2
    
        - name: Install dependencies
          run: yarn
    
        - name: Run Prettier
          run: yarn prettier --ignore-path .prettierignore --write .
    
        - name: Run ESLint
          run: yarn eslint '**/*.js' --report-unused-disable-directives
    

    좋은 웹페이지 즐겨찾기