1.2.0 • Published 3 years ago
eslint-config-cc-react v1.2.0
eslint-config-cc-react
A collection of useful linting rules for React emphasizing correctness rather than style, as a shareable ESLint configuration.
Usage / Installation
1) Install this package using npm
.
npm install --save-dev eslint-config-cc-react eslint eslint-plugin-node eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y
2) Open or create an eslint configuration and add the property extends: "eslint-config-cc-react
.
// file: .eslintrc.js
module.exports = {
extends: ["cc-react"]
}
Publishing
Steps to publish a new version of this package to NPM:
# 1. Increment the version number in `package.json`
git add package.json && git commit -m "bump version to X.X.X"
# 2. Push your updates to `main` branch at https://github.com/couetilc/eslint-config-cc-react
git push origin main
# 3. Create and publish a new release from the `main` branch
hub release create -t origin/main -m "vX.X.X" "vX.X.X"
Increment the package version number according to Semantic Versioning. A Github Action will publish the new version to NPM.