Skip to content

marcustyphoon/js-repo-template

Repository files navigation

Quick and easy repo template for coding JavaScript.

What did I do to make this?

  • Set up .gitignore using some of GitHub's presets
  • Created empty package.json ({})
  • Installed eslint and prettier
    • pnpm add -D eslint (or pnpm dlx install-peerdeps --dev eslint-config-airbnb or pnpm dlx install-peerdeps --dev eslint-config-airbnb-base)
    • pnpm install -D prettier
    • pnpm install -D eslint-config-prettier (possibly optional without a config, but good to know about)
  • Added npmrc config to enforce pnpm package manager
  • Added basic config files for:
    • editorconfig
    • eslint ("es2022": true allows top-level await, ??=, etc)
    • prettier (my printWidth and quotePropssettings are kind of opinionated)
  • Added eslint and prettier scripts
  • Added basic automatic eslint + prettier GitHub workflow

I also committed the VS Code workspace setting to format files on save, which seems like a good idea for a repository that checks for prettier style as part of its CI script.

This work is marked with CC0 1.0 Universal.

About

basic javascript template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published