# @goodrequest/eslint-config-javascript-react

> GoodRequest ESLint config for JavaScript + React projects

Latest version **1.2.0** (published 2022-05-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install @goodrequest/eslint-config-javascript-react
pnpm add @goodrequest/eslint-config-javascript-react
yarn add @goodrequest/eslint-config-javascript-react
bun add @goodrequest/eslint-config-javascript-react
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2022-05-25 |
| First published | 2021-11-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andrej Nemecek |
| Maintainers | logingoodrequest, lubomirigonda |
| Keywords | eslint, eslintconfig |

## Links

- npm: https://www.npmjs.com/package/@goodrequest/eslint-config-javascript-react
- Repository: https://github.com/GoodRequest/eslint
- Homepage: https://github.com/GoodRequest/eslint/tree/master/eslint-config-javascript-react
- Issues: https://github.com/GoodRequest/eslint/issues
- npm.io page: https://npm.io/package/@goodrequest/eslint-config-javascript-react

## Dependencies (2)

- [eslint-config-airbnb](https://npm.io/package/eslint-config-airbnb.md) ^19.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.3.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2022-05-25
- 1.1.1 — 2021-11-23
- 1.1.0 — 2021-11-14
- 1.0.0 — 2021-11-03

## README

# eslint-config-javascript-react
[![npm version](https://badge.fury.io/js/@goodrequest%2Feslint-config-javascript-react.svg)](https://badge.fury.io/js/@goodrequest%2Feslint-config-javascript-react)

ESLint config for JavaScript + React projects

## Usage
1. If using **npm 7+** you can install this package and npm automatically installs all peer dependencies.
```
npm install @goodrequest/eslint-config-javascript-react --save-dev
```

If you are using an **older npm** version, then the **next step** is to install all the peer dependencies listed with:
```
npm info "@goodrequest/eslint-config-javascript-react" peerDependencies

{
  eslint: '^8.2.0',
  'eslint-plugin-import': '^2.25.3',
  'eslint-plugin-jsx-a11y': '^6.5.1',
  'eslint-plugin-prettier': '^4.0.0',
  'eslint-plugin-react': '^7.27.0',
  'eslint-plugin-react-hooks': '^4.3.0',
  prettier: '^2.4.1'
}
```
Here is `npm install` command you can use:
```
npm install eslint@^8.2.0 eslint-plugin-import@^2.25.3 eslint-plugin-jsx-a11y@^6.5.1 eslint-plugin-prettier@^4.0.0 eslint-plugin-react@^7.27.0 eslint-plugin-react-hooks@^4.3.0 prettier@^2.4.1 --save-dev
```

2. Create `.eslintrc.json` file in your project root directory and add following lines:
```
{
  "extends": ["@goodrequest/eslint-config-javascript-react"]
}
```

3. Create `.prettierrc.json` file in your project root directory and add following lines:
```
{
  "useTabs": true,
  "semi": false,
  "singleQuote": true,
  "jsxSingleQuote": true,
  "trailingComma": "none",
  "printWidth": 160,
  "tabWidth": 4
}
```

4. Create `.editorconfig` file in your project root directory and add following lines:
```
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
```

---
_Source: https://npm.io/package/@goodrequest/eslint-config-javascript-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
