2.1.5 • Published 3 months ago

@slhs/eslint-config v2.1.5

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

@slhs/eslint-config

This is the SLHS ESLint configuration.

npm Version Build Status

Requirements

This config uses the new "Flat Config" format and comes with some requirements:

  • Node.js 20.0.0 or newer
  • ESLint 8.57.0 or newer
  • Your project to be in native ESM ("type": "module" in your package.json)
  • VSCode must be configured to use the Flat Config file (eslint.config.js). You'll probably want to enable this as a workspace setting (not a user setting) and check it in to source control:

VSCode Settings Screenshot

Install

npm install --save-dev @slhs/eslint-config

Be sure to install the appropriately versioned eslint peer dependency as well.

Usage

Follow the ESLint documentation on shared configurations. See the documentation on ignoring files if you need to ignore anything the config doesn't already ignore by default.

Examples

eslint.config.js

import slhsConfig from '@slhs/eslint-config';

/** @type {import('eslint').Linter.Config[]} */
const config = [
  ...slhsConfig,
  // overrides here
];

export default config;

package.json

{
  "scripts": {
    ...
    "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
    ...
  }
}
2.1.2

5 months ago

2.1.1

7 months ago

2.1.4

4 months ago

2.1.3

4 months ago

2.1.5

3 months ago

2.1.0

8 months ago

2.0.7

9 months ago

2.0.6

9 months ago

2.0.3

1 year ago

2.0.2

1 year ago

1.1.0

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago