@levibostian/eslint-config-node
v1.3.1
Published
eslint config file I use for all my nodejs projects
Downloads
429
Readme
@levibostian/eslint-config-node
Sharable eslint config file I use for my nodejs projects.
Getting started
- Install your dependencies:
npm install -D @levibostian/eslint-config-node
# These are modules that are required by the shareable config
npm install -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-jest
- Enable the config by adding to your existing
.eslintrc.json
file:
module.exports = {
"parser": "@typescript-eslint/parser",
"plugins": ["jest"],
"extends": ["plugin:@typescript-eslint/recommended", "plugin:jest/recommended", "@levibostian/eslint-config-node"],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
}
};
Development
- Setup
npm install
Test this config file out in a nodejs project you have on your local computer. In this project run
npm link
then in your project you want to test on runnpm link @levibostian/eslint-config-node
.This project follows a strict semantic versioning policy. The policy is enforced on the CI server where it will not allow you to merge your PR unless your commit messages are in the correct format. To learn more, check out this doc.
Keep the
peerDependencies
inpackage.json
up-to-date with latest releases. If you need to add a plugin requirement, add it in that list, too.Make a PR, the team will merge it in, the a release will be made.
License
See LICENSE