@joinnus-team/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@joinnus-team/eslint-config

semantic-release npm (scoped with tag)

Set of shared ESLint-opinionated configurations for the Joinnus organization.

Installing

yarn add -D @joinnus-team/eslint-config

Just replace yarn with npm if you are using it instead.

Installing with peer dependencies:

You need to make sure that peerDependencies are installed.

If you are using a package manager that does not perform this automatically, you'll have to do it manually:

npm >= 7 peerDependencies are installed automatically. If you are using it, ignore this step.

yarn add -D @joinnus-team/eslint-config \
  eslint \
  eslint-config-prettier \
  eslint-plugin-import \
  eslint-plugin-node \
  eslint-plugin-unicorn \
  prettier \
  prettier-plugin-organize-imports \
  prettier-plugin-pkg

Usage

ESLint config

In your .eslintrc.json:

{
  "extends": "@joinnus-team/eslint-config/{preset}"
}

Where {preset} is one of the available presets.

Check out the ESLint documentation other formats to use shared configurations and override some configs.

Prettier config

You also need to use the related prettier configuration.

In your .prettierrc.json:

"@joinnus-team/eslint-config/default-prettier-config"

Available presets for ESLint

The default export from this package offers rules for Node.js 16 and up. Other available presets are:

  • node-erbium: For Node.js 12 applications.
  • node-fermium For Node.js 14 applications.
  • node-gallium For Node.js 16 applications.

Contributing guidelines

Check out CONTRIBUTING.

Readme

Keywords

none

Package Sidebar

Install

npm i @joinnus-team/eslint-config

Weekly Downloads

3

Version

1.2.0

License

Apache-2.0

Unpacked Size

40.5 kB

Total Files

44

Last publish

Collaborators

  • nelson6e65
  • joinnus