jarrodwatts / code-like-google

A Next.JS Project using ESLint and Prettier to format code like Google's style guidelines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.JS Style Guide: Google Edition

This project is a guide for creating new Next.JS projects using Google's TypeScript Style guidelines.


Technologies we are using:

Auto-formatting on save:

Inside /.vscode/settings.json we set prettier as the default formatter, and also set editor.codeActionsOnSave to run:

  • Lint: "source.fixAll.eslint"
  • Format: "source.fixAll.format"

Checking standards pre-commit:

Using husky we can check all of our style standards to make sure our git commits are up to par. Check those checks out at .husky/pre-commit

About

A Next.JS Project using ESLint and Prettier to format code like Google's style guidelines.


Languages

Language:TypeScript 36.4%Language:CSS 34.7%Language:Shell 22.0%Language:JavaScript 6.9%