eslint-config-wagtail
v0.1.1
Published
ESLint config rules for Wagtail JavaScript components
Downloads
84
Readme
eslint-config-wagtail
The package provides Wagtail's .eslintrc as an extensible shared config.
Usage
Our default export contains all of our ESLint rules, including Airbnb's config
(which has ECMAScript 6 and React). It requires eslint
,
eslint-plugin-import
, eslint-plugin-react
, and eslint-plugin-jsx-a11y
.
- Run
npm install eslint eslint-config-wagtail eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y --save-dev
- Add
"extends": "wagtail"
to your.eslintrc