open-index/open-npm huggingface dataset:
npm package: @kodehort/eslint-config
Description: A curated set of ESLint configurations that we use across our projects and can be used in your projects.
Author: Alistair Stead
Latest version: 6.0.3

# eslint-config

`eslint-config` is a curated set of ESLint configurations that are used across
our projects and can be used in your projects too. It includes a set of rules
that are designed to help you write clean, maintainable, and error-free code.

## Installation

```sh
npm install eslint @kodehort/eslint-config --save-dev

# or

pnpm add eslint @kodehort/eslint-config -D
```

## Usage

To use `eslint-config`, you need to extend it in your ESLint configuration file.
Here's an example `.eslintrc.cjs` file:

```javascript eslint.config.js
import { baseConfig } from '@kodehort/eslint-config'

export default [
  ...baseConfig,
  // ... Project specific configuration
]
```

## Package discovery and file resolution

The dynamic configuration will search for `package.json` files in the current or
child folders of the project. Each `packjage.json` file will be used to define a
path for the ESLint rules. The content of the file will be used to infer the
project type and setup the appropriate ESLint rules.

## Debugging the configuration

Add the following scripts entry to your `package.json` file. This will allow you
to run a command to see the resolved ESLint configuration.

```json
{
  "scripts": {
    "inspect": "eslint --inspect-config"
  }
}
```
npm package: @kodehort/eslint-config-kodehort
Description: A curated set of ESLint configurations that we use across our projects and can be used in your projects.
Author: Kodehort
Latest version: 1.1.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# eslint-config-kodehort

`eslint-config-kodehort` is a curated set of ESLint configurations that can be
across our projects and can be used in your projects. It includes a set of
rules that are designed to help you write clean, maintainable, and error-free code.
It is inspired by the config in [template-typescript-node-package](https://github.com/JoshuaKGoldberg/template-typescript-node-package)
but with further customisation and intended to be included as a dependency across
our projects. Rather than add this all to a template it is included as a package
enabling updates to be pulled forward into consuming projects.

## Installation

1. You'll first need to install [ESLint](https://eslint.org/):

```sh
npm install eslint --save-dev
```

2. Next, install `eslint-config-kodehort`, run the following command:

```sh
npm install --save-dev kodehort/eslint-config-kodehort
```

Or:

```sh
pnpm add kodehort/eslint-config-kodehort -D
```

## Usage

To use `eslint-config-kodehort`, you need to extend it in your ESLint
configuration file. Here's an example `.eslintrc.json` file:

```json
{
  "extends": ["kodehort"],
  "rules": {
    // your custom rules here
  }
}
```

## Included Packages

`eslint-config-kodehort` includes the following packages:

- `@typescript-eslint/eslint-plugin`: Provides ESLint rules specific to TypeScript.
- `@typescript-eslint/parser`: Parses TypeScript code for ESLint.
- `eslint-config-next`: Provides ESLint rules for Next.js projects.
- `eslint-config-turbo`: Provides ESLint rules for Turbo projects.
- `eslint-plugin-security`: Provides ESLint rules for security vulnerabilities.
- `eslint-config-prettier`: Disables ESLint rules that conflict with Prettier.
- `eslint-plugin-deprecation`: Provides ...
npm package: @kodehort/prettier-config
Description: A curated set of prettier configurations that we use across our projects and can be used in your projects.
Author: Alistair Stead
Latest version: 3.0.3

# prettier-config

[![npm version](https://badge.fury.io/js/@kodehort%2Fprettier-config.svg)](https://badge.fury.io/js/@kodehort%2Fprettier-config)

`prettier-config` is a curated prettier configuration that can be across our
projects and can be used in your projects. Rather than add this all to a
template, it is included as a package enabling updates to be pulled forward into
consuming projects.

## Installation

1. You'll first need to install [Prettier](https://prettier.io/):

```sh
npm install prettier --save-dev
```

2. Next, install `prettier-config`, run the following command:

```sh
npm install --save-dev @kodehort/prettier-config
```

Or:

```sh
pnpm add @kodehort/prettier-config -D
```

## Usage

To use `prettier-config`, you need to extend it in your prettier configuration
file. Here's an example `prettier.config.js` file

```javascript prettier.config.js
import { baseConfig } from '@kodehort/prettier-config'

/** @type {import("prettier").Config} */
export default {
  ...baseConfig,
  /** Add your project specific configurations here */
}
```

## FAQs

### Module type of the repository has an impact in the configuration file

If the package is defined with type `module` in the `package.json` file, you
need to use the `.js` extension for the configuration file. This is because the
`import` statement is not supported in CommonJS files.

````json package.json
{
  "type": "module"
}
```

Otherwise you can use the `.mjs` extension for the configuration file.
````