eslint-config-ns
eslint-config-ns copied to clipboard
ESLint config ready to be used in multiple projects. Based on Airbnb's code style with prettier, jest and react support.
eslint-config

Packages
This monorepo contains multiple packages. Take a look at their READMEs for more details.
- eslint-config-ns-base
- eslint-config-ns
- eslint-config-ns-ts-base
- eslint-config-ns-ts
How are they related to each other?
JavaScript
eslint-config-ns-baseis the base package for JavaScript projects.eslint-config-nsextendseslint-config-ns-basepackage and can be used in React projects.
TypeScript
eslint-config-ns-ts-baseextendseslint-config-ns-basepackage and is the base package for TypeScript projects.eslint-config-ns-tsis the last one in the chain and extendseslint-config-ns-ts-baseand is best used in React TypeScript projects.
How to release
This repository uses GitHub Actions (debug locally) to create a release and update the CHANGELOG. The implementation is inspired and based on github.com/babel/actions.
Either push the tags after running this command to origin, or run the release workflow manually on GitHub.
Manually trigger release
yarn lerna:version
git push --follow-tags
# wait until GitHub Action finishes and then run
yarn lerna:publish
Manually create Changelog entry
npx lerna-changelog --from <tag> --to <tag>
Automatically with GitHub Actions
Manually invoke the GitHub Action release and wait until it finishes.
Once the release was created with GitHub Actions, publish the packages manually
to npm with yarn lerna:publish.
Attention: make sure the Pull Requests have labels before you merge them. The
label (e.g. enhancement and bug) will be used to create the CHANGELOG.
LICENSE
MIT
Stefan Natter
|
Stefan Natter