ESLint sharable config: prettier & standard for node
While maintaining a larger number of projects with different versions of Node.js, modules, and linters, we can't recommend installing any global packages or binaries at all. Thus ESLint and it's config get installed as configured devDependency within their projects package.json. Editors are configured to use local eslint
if found to overcome compatibility issues throughout different projects.
This package aims to avoid boilerplate and cope&paste with dozens of dotfiles in that scenario.
Install all required plugins together with the ESLint and Prettier binaries as direct dependencies by adding this package to your devDependencies.
This is not following the proposed best-practice (see roadmap below), but works.
yarn:
yarn add @uscreen.de/eslint-config-prettystandard-node -D
npm:
npm install @uscreen.de/eslint-config-prettystandard-node -D
Add or modify your .eslintrc.js
to extend @uscreen.de/eslint-config-prettystandard-node
, for example:
module.exports = {
extends: ['@uscreen.de/eslint-config-prettystandard-node']
}
This includes Prettier configuration, so you don't need to apply any extra .prettierrc
.
- declare plugin deps properly:
Format according to https://keepachangelog.com
- upgrade to eslint ^8.5.0
- upgrade to prettier ^2.5.1
- Readme with instructions
- initially bootstrapped
Licensed under MIT.
Maintained, Supported and Sponsored by u|screen