@strv/eslint-config-node
Configuration for Node.js projects.
Installation
npm install -D @strv/eslint-config-node
Rulesets
'@strv/eslint-config-node'
: A generic ruleset that focuses on code correctness'@strv/eslint-config-node/optional'
: Addiitonal ruleset that might provide useful tips and hints how to improve your code'@strv/eslint-config-node/style'
: Ruleset that focuses solely on code style (indentation, spacing, naming, syntax preference etc.)
Usage
import node from '@strv/eslint-config-node'
import optional from '@strv/eslint-config-node/optional'
import style from '@strv/eslint-config-node/style'
const globs = {
js: '**/*.js',
}
const config = [
{ files: [globs.js], ...node },
{ files: [globs.js], ...optional },
{ files: [globs.js], ...style },
{ files: [globs.js],
languageOptions: { ecmaVersion: 2023 },
},
]
export default config
License
See the LICENSE file for information.