# eslint-config-adidas-es5

> ESLint base configuration and rules for all JavaScript codebases

Latest version **3.0.0** (published 2024-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-adidas-es5
pnpm add eslint-config-adidas-es5
yarn add eslint-config-adidas-es5
bun add eslint-config-adidas-es5
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-10-18 |
| First published | 2018-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 20 |
| Dependencies | 0 |
| Unpacked size | 19 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 29 |
| Maintainers | adidas |
| Keywords | eslint, eslint-config |

## Links

- npm: https://www.npmjs.com/package/eslint-config-adidas-es5
- Repository: https://github.com/adidas/js-linter-configs
- Homepage: https://github.com/adidas/js-linter-configs#readme
- Issues: https://github.com/adidas/js-linter-configs/issues
- npm.io page: https://npm.io/package/eslint-config-adidas-es5

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

- 3.0.0 (latest) — 2024-10-18
- 2.0.0 — 2023-09-26
- 1.3.2 — 2021-02-19
- 1.3.1 — 2021-01-25
- 1.3.0 — 2021-01-22
- 1.2.0 — 2019-12-02
- 1.1.1 — 2018-11-06
- 1.1.0 — 2018-10-08
- 1.0.2 — 2018-09-21
- 1.0.1 — 2018-08-20
- 1.0.0 — 2018-07-31

## README

[![npm version](https://badge.fury.io/js/eslint-config-adidas-es5.svg)](https://npmjs.com/package/eslint-config-adidas-es5)

# eslint-config-adidas-es5

Basic JavaScript ESLint rules.

This should be the base for every JavaScript project, regardless of the ECMAScript level or environment.

## Install

```
npm i --save-dev eslint@9 eslint-plugin-jsdoc@50 eslint-config-adidas-es5
```

## Usage

Create a `.eslintrc` file on the root folder of the project and add the following:

```json
{
  "extends": "adidas-es5"
}
```

> You can also create `.eslintrc.json`, `.eslintrc.js` or `.eslintrc.yml`, check [ESLint documentation](https://eslint.org/docs/user-guide/configuring) for details.

> Additionally, you can have multiple `.eslintrc` files across directories, which will merge and override with the root configuration.

## Running

Create a `lint` script in your `package.json`:

```json
{
  "scripts": {
    "lint": "eslint src" // run the linter over our src directory, all the files ending in .js will be analyzed
  }
}
```

> `eslint` CLI provides far more options, make sure to check its [documentation](https://eslint.org/docs/user-guide/command-line-interface).

In a terminal, run:

```
npm run lint
```

The linter will run and either exit clean if there were no issues or display a report log with all the issues found and exit with error.

## Overriding rules

It sometimes can happen that some rule conflicts with the code, and the latter cannot be changed/updated to match the rule.

In those cases there are plenty of options, you can disable the rule globally, partially or override the rule.

> Check this [ESLint section on disabling rules](https://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments) through comments in the code. It is not recommended, but sometimes it's inevitable.

To override, add a `rules` entry in your `.eslintrc` configuration and set any rules that should be overridden:

```json
{
  "extends": "adidas-es5",
  "rules": {
    // overrides "one-var": ["error", { "var": "always" }]
    "one-var": ["error", { "var": "never" }],

    // overrides "radix": "error"
    "radix": "off"
  }
}
```

## Links

- [ESLint](https://eslint.org/)
- [ESLint: Configuration](https://eslint.org/docs/user-guide/configuring)
- [ESLint: CLI](https://eslint.org/docs/user-guide/command-line-interface)
- [ESLint: Rules](https://eslint.org/docs/rules/)
- [FAQ: ESLint Peer Dependencies](../../CHANGELOG.md#ESLint-Peer-Dependencies)

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