This package provides Zach Hardesty's .eslintrc
as an extensible shared config.
Our default export contains all of our ESLint rules, including ECMAScript 6+ and React, but excludes TypeScript. In the future, React may be split into a separate config in this repo.
- Ensure your project has
eslint
installed:npm install eslint --save-dev
. Not all versions are compatible with this config. - Add
"extends": ["hardesty"]
to your .eslintrc or seteslintConfig: { "extends": ["hardesty"] },
in yourpackage.json
.- If you're using TypeScript, additionally add
"hardesty/typescript"
as a new item in the "extends" array after"hardesty"
. - If your project is a Node project, additionally add
"hardesty/node"
as a new item in the "extends" array after"hardesty"
.
- If you're using TypeScript, additionally add