@cygns/eslint-config-node

6.1.0 • Public • Published

ESLint Config for Node.js

ESLint Configuration for Node.js development, with the following parameters,

  • Javascript style to support highly readable code
  • 120 character lines
  • Current ECMAScript (ES20xx) features
  • ES Modules using native Node.js ESM syntax
  • Type support using JSDoc

Usage

This configuration is suitable for use with projects that are using ESM (ECMAScript modules), and adding type support using JSDoc conventions. This allows creating deployment ready Javascript (no transpiling required) that is supported with rich linting and type-checking tooling.

Type-checking is supported through a combination of ESLint, code editor features (e.g. VSCode Intellisense), and type-checking tools (e.g. using the Typescript compiler as a type-checker, but not as a transpiler).

Acknowledgements

ESLint for the excellent tooling and documentation.

AirBnb for the base configuration and reasoning for configuration options. GitHub Repo

The contributors to the ESLint plugin for imports and JSDoc.

License

MIT

Package Sidebar

Install

npm i @cygns/eslint-config-node

Weekly Downloads

1

Version

6.1.0

License

MIT

Unpacked Size

58 kB

Total Files

14

Last publish

Collaborators

  • cygns