UNPKG

2.42 kBMarkdownView Raw
1[![npm][npm]][npm-url]
2[![deps][deps]][deps-url]
3[![test][test]][test-url]
4[![coverage][cover]][cover-url]
5[![chat][chat]][chat-url]
6
7<div align="center">
8 <!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->
9 <img width="200" height="200"
10 src="https://cdn.worldvectorlogo.com/logos/eslint.svg">
11 <a href="https://github.com/webpack/webpack">
12 <img width="200" height="200" vspace="" hspace="25"
13 src="https://worldvectorlogo.com/logos/webpack.svg">
14 </a>
15 <h1>ESLint Config Webpack</h1>
16 <p>Provides Webpacks's .eslintrc as an extensible shared config.<p>
17</div>
18
19<h2 align="center">Install</h2>
20
21```bash
22npm i -D eslint-config-webpack
23```
24
25<h2 align="center">Usage</h2>
26
27Webpack's eslint config contains all of our ESLint rules, including ECMAScript 6+ and is similar to [Airbnb's ESLint base rules](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base). It requires `eslint` and `eslint-plugin-import`.
28
29<h2 align="center">eslint setup</h2>
30
31_In your .eslintrc.js || .yml || .json add ..._
32
33```js
34// Add to your .eslintrc
35
36"extends": "webpack"
37```
38
39<h2 align="center">Maintainers</h2>
40
41<table>
42 <tbody>
43 <tr>
44 <td align="center">
45 <img width="150" height="150"
46 src="https://avatars2.githubusercontent.com/u/8420490?v=3&s=150">
47 </br>
48 <a href="https://github.com/d3viant0ne">Joshua Wiens</a>
49 </td>
50 <td align="center">
51 <img width="150" height="150"
52 src="https://avatars3.githubusercontent.com/u/166921?v=3&s=150">
53 </br>
54 <a href="https://github.com/bebraw">Juho Vepsäläinen</a>
55 </td>
56 </tr>
57 <tbody>
58</table>
59
60
61[npm]: https://img.shields.io/npm/v/eslint-config-webpack.svg
62[npm-url]: https://npmjs.com/package/eslint-config-webpack
63
64[deps]: https://david-dm.org/webpack-contrib/eslint-config-webpack.svg
65[deps-url]: https://david-dm.org/webpack-contrib/eslint-config-webpack
66
67[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
68[chat-url]: https://gitter.im/webpack/webpack
69
70[test]: http://img.shields.io/travis/webpack-contrib/eslint-config-webpack.svg
71[test-url]: https://travis-ci.org/webpack-contrib/eslint-config-webpack
72
73[cover]: https://coveralls.io/repos/github/webpack-contrib/eslint-config-webpack/badge.svg?branch=master
74[cover-url]: https://coveralls.io/github/webpack-contrib/eslint-config-webpack?branch=master