1.0.0 • Published 8 months ago

@gijslaarman/styleguide v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Gijs Laarman's Styleguide

Node.js Package

Inspired by Vercel's styleguide: https://github.com/vercel/style-guide but less strict. For personal use, feel free to fork it.

Usage

Adding ESLint

  1. Install ESLint:
npm install eslint --save-dev

Adding Prettier

  1. Install Prettier:
npm install prettier --save-dev
  1. Add prettier to your package.json
{
  "prettier": "@gijslaarman/styleguide/prettier"
}

Adding TypeScript Configuration

  1. Create a tsconfig.json file:
{
  "compilerOptions": {
    "target": "es6",
    "module": "commonjs",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules", "**/*.spec.ts"]
}
  1. Install TypeScript:
npm install typescript --save-dev