eslint-config-ns

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

MIT License

Downloads
7.6K
Stars
28
Committers
4

eslint-config

Packages

This monorepo contains multiple packages. Take a look at their READMEs for more details.

How are they related to each other?

JavaScript

  • eslint-config-ns-base is the base package for JavaScript projects.
  • eslint-config-ns extends eslint-config-ns-base package and can be used in
    React projects.

TypeScript

  • eslint-config-ns-ts-base extends eslint-config-ns-base package and is the
    base package for TypeScript projects.
  • eslint-config-ns-ts is the last one in the chain and extends
    eslint-config-ns-ts-base and 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