5.0.0 • Published 1 month ago

@strv/eslint-config-node v5.0.0

Weekly downloads
457
License
BSD-3-Clause
Repository
github
Last release
1 month ago

@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

// eslint.config.mjs
import node from '@strv/eslint-config-node'
import optional from '@strv/eslint-config-node/optional'
import style from '@strv/eslint-config-node/style'
// Just to help us re-use the same globs multiple times
const globs = {
  js: '**/*.js',
}

/** @type {Array<import("eslint").Linter.FlatConfig>} */
const config = [
  { files: [globs.js], ...node },
  { files: [globs.js], ...optional },
  { files: [globs.js], ...style },
  // Any custom settings to be applied
  { files: [globs.js],
    languageOptions: { ecmaVersion: 2023 },
  },
]

export default config

License

See the LICENSE file for information.

5.0.0

1 month ago

5.0.0-alpha.2

1 month ago

5.0.0-alpha.1

5 months ago

5.0.0-alpha.0

5 months ago

4.0.0

1 year ago

3.3.1

2 years ago

3.3.0

2 years ago

3.3.2

2 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0-alpha.6

4 years ago

3.0.0

4 years ago

3.0.0-alpha.5

4 years ago

3.0.0-alpha.4

4 years ago

3.0.0-alpha.3

5 years ago

3.0.0-alpha.1

5 years ago

3.0.0-alpha.0

5 years ago

3.0.0-alpha.2

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.1-alpha.0

6 years ago