Skip to content

Grande-Armee/pocket-style-guide

Repository files navigation

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();

About

Pocket's style guide package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published