This package has been deprecated

Author message:

Use @moxy/eslint-config-base

@moxy/eslint-config-node

1.0.0 • Public • Published

eslint-config-node

NPM version Downloads Dependency status Dev Dependency status

MOXY eslint configuration to be used in Javascript projects targeted for NodeJS.

Installation

$ npm install --save-dev eslint @moxy/eslint-config-node

Usage

Create a .eslintrc.json file in the project root and extend @moxy/eslint-config-browser.

You can change the ECMAScript version for the base configuration to use:

  • es6 - The configuration to be used in ECMAScript 6 based projects (aka 2015)
  • es7 - The configuration to be used in ECMAScript 7 based projects (aka 2016)
  • es8 - The configuration to be used in ECMAScript 8 based projects (aka 2017)
  • es9 - The configuration to be used in ECMAScript 9 based projects (aka 2018)
  • es10 - The configuration to be used in ECMAScript 10 based projects (aka 2019)

The default configuration is es10.

Examples

{
    "root": true,
    "extends": [
        "@moxy/eslint-config-node"
    ]
}

In case you want to specify an ECMAScript version:

{
    "root": true,
    "extends": [
        "@moxy/eslint-config-node/es7"
    ]
}

Note that by setting root to true, we ensure that no ancestor configuration is used which also improves ESLint performance because no more file lookups need to be done.

Package Sidebar

Install

npm i @moxy/eslint-config-node

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

7.07 kB

Total Files

12

Last publish

Collaborators

  • tiagodinis
  • moxyhq
  • filipediasf
  • satazor
  • marcooliveira
  • acostalima
  • andregoncalvesdev