Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zachhardesty7/eslint-config-hardesty

This package provides Zach Hardesty's .eslintrc as an extensible shared config.
https://github.com/zachhardesty7/eslint-config-hardesty

Last synced: about 9 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# eslint-config-hardesty

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

[NPM Package Listing](https://npmjs.com/eslint-config-hardesty)

## 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"`.