DEV Community

Larry Miami
Larry Miami

Posted on

1

Setting up Nextjs with AirBnB style guides for react, Prettier, ESlint, Husky and GitHub Actions

My Workflow

GitHub logo miami78 / nextjs-starter-pack

A JavaScript starter for Next.js that includes all you need to build your next 🦄 project.

Stargazers Forks License Issues

A JavaScript starter for Next.js that includes all you need to build your next 🦄 project.

Technologies Used

Also includes:

Getting started

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.

Usage

Development server

yarn start / npm start
Enter fullscreen mode Exit fullscreen mode

You can view the development server at localhost:3000.

Production build

 yarn build / npm run build
Enter fullscreen mode Exit fullscreen mode

Contributing

  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




Submission Category:

Maintainer Must-Haves

Yaml File

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
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay