An open API service indexing awesome lists of open source software.

https://github.com/webpack/eslint-config-webpack

Webpack standard eslint configuration
https://github.com/webpack/eslint-config-webpack

eslint-config webpack

Last synced: 7 months ago
JSON representation

Webpack standard eslint configuration

Awesome Lists containing this project

README

          

[![npm][npm]][npm-url]
[![test][test]][test-url]
[![discussions](https://img.shields.io/github/discussions/webpack/webpack)](https://github.com/webpack/webpack/discussions)







ESLint Config Webpack


Provides Webpacks's eslint config as an extensible shared config.




# eslint-config-webpack

## Install

```bash
npm i -D eslint-config-webpack
```

## Usage

Webpack's eslint config contains all of our ESLint rules.

_In your eslint.config.js add ..._

```js
import { defineConfig } from "eslint/config";
import config from "eslint-config-webpack";

export default defineConfig([
{
extends: [config]
}
]);
```

[npm]: https://img.shields.io/npm/v/eslint-config-webpack.svg
[npm-url]: https://npmjs.com/package/eslint-config-webpack
[test]: https://github.com/webpack/eslint-config-webpack/actions/workflows/test.yml/badge.svg
[test-url]: https://github.com/webpack/eslint-config-webpack/actions/workflows/test.yml