Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@webpack-contrib/eslint-config-webpack

webpack-contrib8.3kMIT3.0.0

Provides Webpacks's .eslintrc as an extensible shared config

eslint, eslintconfig, config, webpack, javascirpt

readme

npm deps test coverage chat

ESLint Config Webpack

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

Install

npm i -D eslint-config-webpack

Usage

Webpack's eslint config contains all of our ESLint rules, including ECMAScript 6+ and is similar to Airbnb's ESLint base rules. It requires eslint and eslint-plugin-import.

eslint setup

In your .eslintrc.js || .yml || .json add ...

// Add to your .eslintrc

"extends": "webpack"

Maintainers


Joshua Wiens

Juho Vepsäläinen

changelog

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.0.0 (2018-10-01)

Chores

  • package: update eslint v4.13.1...5.6.0 (devDependencies|peerDependencies) (a5a6594)

BREAKING CHANGES

  • package: minimum require eslint version is now 5.6.0

2.0.4 (2018-04-01)

Bug Fixes

  • import/order: Incorrect config syntax (fe40e36)

2.0.3 (2018-04-01)

Bug Fixes

  • import/order: Chage import order from error to warn (960c93f)
  • import/order: Update rule to not conflict with prettier (a8635f0)

2.0.2 (2017-12-17)

Bug Fixes

2.0.1 (2017-12-14)

Chore

  • Scopes package under contrib npm org (d589b67)

2.0.0 (2017-12-14)

Bug Fixes

  • style issues: Typo in new parens rule (7b7c012)

Code Refactoring

  • best practices: Update rules for Prettier integration (385aac8)
  • es6: Update rules for Prettier integration (2798140)
  • possible errors: Update rules for Prettier integration (c95baae)
  • style issues: Update rules for Prettier integration (4018072)

BREAKING CHANGES

  • style issues: Requires min eslint version of 4.x.
  • style issues: Multiple rules disabled and handled by Prettier, this will change code style for defaults based projects.

Upgrade: After upgrading with defaults, any editor Prettier plugin can be used to update style. The pre-commit hook will also fix & write the prettier changes.

  • possible errors: Requires min eslint version of 4.x.
  • possible errors: Multiple rules disabled and handled by Prettier, this will change code style for defaults based projects.

Upgrade: After upgrading with defaults, any editor Prettier plugin can be used to update style. The pre-commit hook will also fix & write the prettier changes.

  • es6: Requires min eslint version of 4.x.
  • es6: Multiple rules disabled and handled by Prettier, this will change code style for defaults based projects.

Upgrade: After upgrading with defaults, any editor Prettier plugin can be used to update style. The pre-commit hook will also fix & write the prettier changes.

  • best practices: Requires min eslint version of 4.x.
  • best practices: Multiple rules disabled and handled by Prettier, this will change code style for defaults based projects.

Upgrade: After upgrading with defaults, any editor Prettier plugin can be used to update style. The pre-commit hook will also fix & write the prettier changes.

1.2.5 (2017-06-12)

Bug Fixes

1.2.4 (2017-06-12)

Bug Fixes

  • Allow eslint 4.x via peerDep (74b078b)

1.2.3 (2017-05-08)

Bug Fixes

  • underscore-dangle: added exception for __dirname (#9) (213c417)

1.2.2 (2017-05-01)

Bug Fixes

  • allow dangle for private object members (#8) (a030c90)

1.2.1 (2017-03-29)

Bug Fixes

  • syntax error in stylistic rules (3a0176f)

1.2.0 (2017-03-29)

Features

  • stylistic: allow in for loop afterthought (#6) (efe3806)

1.1.1 (2017-03-16)

Bug Fixes

  • variables: Enable ignoreRestSiblings (9d0b234)

1.1.0 (2017-03-05)

Features

1.0.0 (2017-01-28)

1.0.0-alpha.1 (2017-01-28)

Bug Fixes

  • es2015: drop deprecated rule (7ccaef6)
  • node: add env mocha to node rules (1fc3832)
  • rules: update remaining v2 syntax (71e617a)
  • stylistic: add missing comma-dangle rule (e47d255)

Features

  • rules: add best practices rule set (c4742c0)
  • rules: add entrypoint (b921de4)
  • rules: add es2015 rule set (861edb8)
  • rules: add imports rule set (3e6eb77)
  • rules: add node rule set (2201d52)
  • rules: add possible errors rule set (08cde67)
  • rules: add stylistic rule set (bff21c7)
  • rules: add variables rule set (daabb4f)