Pocket's style guide package: eslint, prettier & commitlint.
- 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"
}
}
- 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
- 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();