@joinnus-team/eslint-config v1.2.0
@joinnus-team/eslint-config
Set of shared ESLint-opinionated configurations for the Joinnus organization.
Installing
yarn add -D @joinnus-team/eslint-configJust replace
yarnwithnpmif 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
peerDependenciesare 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-pkgUsage
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-fermiumFor Node.js 14 applications.node-galliumFor Node.js 16 applications.
Contributing guidelines
Check out CONTRIBUTING.