Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-hardesty

zachhardesty7116MIT7.3.3

Zach Hardesty's ESLint config, forked from Airbnb. To use, extend hardesty and optionally hardesty/typescript

eslint, eslintconfig, config, javascript, styleguide, es2015, es2016, es2017, es2018

readme

eslint-config-hardesty

This package provides Zach Hardesty's .eslintrc as an extensible shared config.

NPM Package Listing

Usage

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.

  1. Ensure your project has eslint installed: npm install eslint --save-dev. Not all versions are compatible with this config.
  2. Add "extends": ["hardesty"] to your .eslintrc or set eslintConfig: { "extends": ["hardesty"] }, in your package.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".