Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.1 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.1 KB

Pocket Style Guide

Pocket's style guide package: eslint, prettier & commitlint.

Usage

  1. Add @grande-armee/pocket-style-guide to devDependencies in package.json
npm install --save-dev @grande-armee/pocket-style-guide
{
  "devDependencies": {
    "@grande-armee/pocket-style-guide": "^2.0.0"
  }
}
  1. Install peer dependencies
npm install --save-dev eslint prettier @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-import eslint-plugin-unicorn eslint-plugin-jest eslint-plugin-prettier @commitlint/cli @commitlint/config-conventional
  1. Import config files

.eslintrc.js:

const { createConfig } = require('@grande-armee/pocket-style-guide/eslint');

module.exports = createConfig([]);

.prettierrc.js:

const { createConfig } = require('@grande-armee/pocket-style-guide/prettier');

module.exports = createConfig();

commitlint.config.js:

const { createConfig } = require('@grande-armee/pocket-style-guide/commitlint');

module.exports = createConfig();