@superbet/eslint-config-node

1.0.0 • Public • Published

Superbet's ESLint Configuration for Node.JS Projects

Add this configuration to your .eslintrc if one of the target environments you're working on is Node.JS.

Installation

npm i -SE @superbet/eslint-config-node

.eslintrc

{
  "extends": "@superbet/eslint-config-node"
}

Mixing it Up

Some full stack applications, such as ones written with Next.JS, Remix or Gatsby, use a combination of client and server files in the same project. You can apply this configuration via "overrides" to target specific directories:

{
  "overrides": [
    { "files": ["src/api/**/*"], "extends": "@superbet/eslint-config-node" }
  ]
}

or if you have a convention to utilise file extensions to determine the target environment:

{
  "overrides": [
    { "files": ["*.server.js"], "extends": "@superbet/eslint-config-node" }
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @superbet/eslint-config-node

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

10.4 kB

Total Files

12

Last publish

Collaborators

  • danielkov