@superbet/eslint-config-node
v1.0.0
Published
ESLint configuration for Node.JS projects, used at Superbet
Readme
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" }
]
}