This package provides Arcblock's base JS .eslintrc (without React plugins) as an extensible shared config.
We export two ESLint configurations for your usage.
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-ts
If using yarn, use this shortcut
npx install-peerdeps --dev --yarn @arcblock/eslint-config-ts
- Add
"extends": "@arcblock/eslint-config-ts"
to your.eslintrc
file.