# @amazerealise/eslint-config

> AmazeRealise ESLint Shareable Config

Latest version **0.1.2** (published 2019-07-04) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @amazerealise/eslint-config
pnpm add @amazerealise/eslint-config
yarn add @amazerealise/eslint-config
bun add @amazerealise/eslint-config
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2019-07-04 |
| First published | 2019-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 190.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Radu Micu, AmazeRealise |
| Maintainers | bee_flaherty, davidpanik, radumza |
| Keywords | eslint, eslint-config, amazerealise |

## Links

- npm: https://www.npmjs.com/package/@amazerealise/eslint-config
- Repository: https://gitlab.com/amazerealise-fe-group/eslint-config
- Homepage: https://gitlab.com/amazerealise-fe-group/eslint-config#readme
- Issues: https://gitlab.com/amazerealise-fe-group/eslint-config/issues
- npm.io page: https://npm.io/package/@amazerealise/eslint-config

## Dependencies (11)

- [eslint-plugin-jest](https://npm.io/package/eslint-plugin-jest.md) ^22.7.1
- [eslint-plugin-node](https://npm.io/package/eslint-plugin-node.md) ^9.1.0
- [eslint-plugin-jsdoc](https://npm.io/package/eslint-plugin-jsdoc.md) ^8.6.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.14.2
- [eslint-plugin-compat](https://npm.io/package/eslint-plugin-compat.md) ^3.1.2
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.17.3
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) ^4.1.1
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) ^9.1.1
- [eslint-plugin-filenames](https://npm.io/package/eslint-plugin-filenames.md) ^1.3.2
- [confusing-browser-globals](https://npm.io/package/confusing-browser-globals.md) ^1.0.7
- [eslint-plugin-eslint-comments](https://npm.io/package/eslint-plugin-eslint-comments.md) ^3.1.2

## 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

- 0.1.2 (latest) — 2019-07-04
- 0.1.1 — 2019-06-26
- 0.1.0 — 2019-06-26

## README

# AR ESLint config

> The AR recommended shareable config for ESLint.

It turns on all the possible errors rules within eslint based on our JS styleguide.

Use it as is or as a foundation for your own config. You can extend or clone and change.

## Installation

```bash
npm install -D @amazerealise/eslint-config
```

## Usage

This package includes the following configurations:

* @amazerealise/eslint-config - The base code style guide.
* @amazerealise/eslint-config/node - To be used in addition to "@amazerealise/eslint-config" configuration by projects that use Node.
* @amazerealise/eslint-config/jest - To be used in addition to "@amazerealise/eslint-config" configuration by projects that use [jest](https://facebook.github.io/jest/).
* @amazerealise/eslint-config/react - To be used in addition to "@amazerealise/eslint-config" configuration by projects that react [React](https://facebook.github.io/react/).

If you've installed `@amazerealise/eslint-config` locally within your project, just set your eslint config to:

```bash
{
  "extends": "@amazerealise/eslint-config"
}
```

or if you are working on a Node script:

```bash
{
  "extends": [
	  "@amazerealise/eslint-config"
	  "@amazerealise/eslint-config/node"
  ]
}
```

If you've globally installed @amazerealise/eslint-config using the -g flag, then you'll need to use the absolute path to @amazerealise/eslint-config in your config e.g.

```bash
{
  "extends": "/absolute/path/to/@amazerealise/eslint-config"
}
```

You can also simply use the globally installed configuration name instead of the absolute path:

{
  "extends": "@amazerealise/eslint-config"
}

### Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

For example, to change the comma-dangle rule to off:

```json
{
  "extends": "@amazerealise/eslint-config",
  "rules": {
    "comma-dangle": "off",
  }
}
```

## Deploy

To deploy a new version, make sure you have a clean `node_modules` folder and then install the npm modules:

```bash
npm i --no-package-lock
```

Then run `np` or `npm run release`.

## Complementary tools

### Editor plugins

* Sublime Text 3:
    * [SublimeLinter-eslint](https://github.com/roadhump/SublimeLinter-eslint)
    * [Build Next](https://github.com/albertosantini/sublimetext-buildnext)
* Vim:
    * [ALE](https://github.com/w0rp/ale)
    * [Syntastic](https://github.com/vim-syntastic/syntastic/tree/master/syntax_checkers/javascript)
* Emacs: [Flycheck](http://www.flycheck.org/) supports ESLint with the [javascript-eslint](http://www.flycheck.org/en/latest/languages.html#javascript) checker.
* Eclipse Orion: ESLint is the [default linter](https://dev.eclipse.org/mhonarc/lists/orion-dev/msg02718.html)
* Eclipse IDE: [Tern ESLint linter](https://github.com/angelozerr/tern.java/wiki/Tern-Linter-ESLint)
* TextMate 2: [ESLint Bundle](https://github.com/natesilva/javascript-eslint.tmbundle)
* Atom: [linter-eslint](https://atom.io/packages/linter-eslint)
* IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, Android Studio, 0xDBE: [ESLint Plugin](https://plugins.jetbrains.com/plugin/7494-eslint)
* Visual Studio Code: [ESLint Extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
* Brackets: Included and [Brackets ESLint](https://github.com/brackets-userland/brackets-eslint)

More integration tools can be found here https://eslint.org/docs/user-guide/integrations

### Find eslint rules

Find eslint rules that are not configured in your eslint config. This is useful to see what else is new and what is deprecated or updated.

Running this in your root folder will show the list.

```
npx eslint-find-rules
```

More info here https://github.com/sarbbottam/eslint-find-rules

### Inspiration

This config is heavily inspired by the following configs and tools:

- https://github.com/airbnb/javascript

## [Changelog](CHANGELOG.md)

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