Skip to content

uscreen/eslint-config-prettystandard-node

Repository files navigation

@uscreen.de/eslint-config-prettystandard-node

Test CI Test Coverage Known Vulnerabilities NPM Version

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

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

Usage

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.

Roadmap

Changelog

Format according to https://keepachangelog.com

v0.2.0

Changed

  • upgrade to eslint ^8.5.0
  • upgrade to prettier ^2.5.1

v0.1.0

Added

  • Readme with instructions

v0.0.0

  • initially bootstrapped

License

Licensed under MIT.

Credits

Maintained, Supported and Sponsored by u|screen

About

ESLint sharable config: prettier & standard for node

Resources

License

Stars

Watchers

Forks

Packages

No packages published