@levibostian/eslint-config-node

1.3.1 • Public • Published

npm latest version Actions Status

@levibostian/eslint-config-node

Sharable eslint config file I use for my nodejs projects.

Getting started

  1. 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
  1. 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 run npm 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 in package.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

Readme

Keywords

Package Sidebar

Install

npm i @levibostian/eslint-config-node

Weekly Downloads

8

Version

1.3.1

License

MIT

Unpacked Size

8.97 kB

Total Files

5

Last publish

Collaborators

  • levibostian