Miss any of our Open RFC calls?Watch the recordings here! »

eslint-config-hardesty

3.5.0 • Public • Published

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. It requires eslint, babel-eslint. If you see strange errors, try adding eslint-plugin-react and/or escape-regex-string as peer-dependencies. If you don't need React, see eslint-config-airbnb-base.

  1. Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-hardesty@latest" peerDependencies

If using npm 5+, use this shortcut

npx install-peerdeps --dev eslint-config-hardesty

If using yarn, you can also use the shortcut described above if you have npm 5+ installed on your machine, as the command will detect that you are using yarn and will act accordingly. Otherwise, run npm info "eslint-config-hardesty@latest" peerDependencies to list the peer dependencies and versions, then run yarn add --dev <dependency>@<version> for each listed peer dependency.

  1. Add "extends": "hardesty" to your .eslintrc or set eslintConfig: { "extends": "hardesty" }, in your package.json. If you want to use Prettier, use "hardesty/prettier" instead. It's expected that you will also add the following to your package.json.

    "prettier"{
      "semi": false
    },

Install

npm i eslint-config-hardesty

DownloadsWeekly Downloads

37

Version

3.5.0

License

MIT

Unpacked Size

12 kB

Total Files

13

Last publish

Collaborators

  • avatar