@arcblock/eslint-config
v0.3.3
Published
Arcblock's ESLint config for react
Downloads
2,207
Readme
@arcblock/eslint-config
This package provides Arcblock's JS .eslintrc (with React plugins) as an extensible shared config.
Usage
We export two ESLint configurations for your usage.
eslint-config
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint
, eslint-config-airbnb
, eslint-plugin-import
, eslint-plugin-jsx-a11y
, eslint-plugin-react
, eslint-plugin-react-hooks
, and eslint-plugin-unicorn
.
- Install the correct versions of each package.
If using npm 5+, use this shortcut
npx install-peerdeps --dev @arcblock/eslint-config
If using yarn, use this shortcut
npx install-peerdeps --dev --yarn @arcblock/eslint-config
- Add
"extends": "@arcblock/eslint-config"
to your.eslintrc
file.