eslint-config-snapper
v1.0.9
Published
ESLint configuration for Snapper
Downloads
683
Readme
ESLint Configuration Snapper
This repository contains eslint and prettier configurations for Snapper
Link to Public npm package
Instructions (ESLint)
- Install the official ESLint extension
- Pull the package into your project by running:
npm i -D eslint-config-snapper
- Edit the eslintrc.json file and add "snapper" into the extends array
- Run the following command to lint the entire project
ng lint
Instructions (Prettier)
- Install the official Prettier extension
- Pull the package into your project by running:
npm i -D eslint-config-snapper
- Add "prettier": "eslint-config-snapper/prettier.config" into the package.json file
- Run the following command to format the entire project
npx prettier --write \"**/*.ts\" \"**/*.html\" \"**/*.scss\
Publishing packages
- Go to packages/{package_to_publish} directory
- Run the following command: (if you haven't added your user yet)
npm adduser
- Bump the version number as appropriate following Semantic Versioning
- Once logged in, you can run the following to publish the package:
npm run deploy
- You will recieve an email when your package has been successfully published