@myowncake/config
v0.2.1
Published
An NPM package providing my own miscellaneous configuration.
Downloads
6
Readme
@myowncake/config
An NPM package providing my own miscellaneous configuration.
Install
$ npm i -D @myowncake/config
Setup
TypeScript
- Extend
dist/tsconfig.*.json
ESLint and Prettier
- Install Packages
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslint
- eslint-config-prettier
- prettier
- Create eslintrc, extends
dist/.eslintrc.*.json
and set parserOptions like:{ "root": true, "extends": "./node_modules/@myowncake/config/dist/.eslintrc.node14.json", "parserOptions": { "project": ["./tsconfig.json"] } }
- Create prettierrc and require
dist/.prettierrc.general.js
:module.exports = { ...require('@myowncake/config/dist/.prettierrc.general'), /* additional settings */ }