@arcblock/eslint-config-base
v0.3.3
Published
Arcblock's ESLint config base
Downloads
1,936
Readme
@arcblock/eslint-config-base
This package provides Arcblock's base JS .eslintrc (without React plugins) as an extensible shared config.
Usage
We export two ESLint configurations for your usage.
eslint-config-base
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint
, eslint-config-airbnb-base
, eslint-plugin-import
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-base
If using yarn, use this shortcut
npx install-peerdeps --dev --yarn @arcblock/eslint-config-base
- Add
"extends": "@arcblock/eslint-config-base"
to your.eslintrc
file.