# eslint-config-bejamas

> Bejamas' ESLint config - our styleguide

Latest version **1.1.4** (published 2022-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-bejamas
pnpm add eslint-config-bejamas
yarn add eslint-config-bejamas
bun add eslint-config-bejamas
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2022-04-30 |
| First published | 2021-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ark Gorecki |
| Maintainers | argock |
| Keywords | eslint, eslintconfig, config, bejamas, javascript, styleguide |

## Links

- npm: https://www.npmjs.com/package/eslint-config-bejamas
- Repository: https://github.com/bejamas/bejamas-standards.git#master
- Homepage: https://github.com/bejamas/bejamas-standards/tree/master/packages/eslint
- Issues: https://github.com/bejamas/bejamas-standards/issues
- npm.io page: https://npm.io/package/eslint-config-bejamas

## 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.1.4 (latest) — 2022-04-30
- 1.1.3 — 2022-04-19
- 1.1.2 — 2022-03-27
- 1.1.1 — 2021-10-04
- 1.1.0 — 2021-10-04
- 1.0.8 — 2021-09-27
- 1.0.7 — 2021-09-27
- 1.0.6 — 2021-09-27
- 1.0.5 — 2021-09-27
- 1.0.4 — 2021-09-27
- 1.0.2 — 2021-09-27
- 1.0.1 — 2021-08-12
- 1.0.0 — 2021-08-12

## README

# eslint-config-bejamas

[![npm version](https://badge.fury.io/js/eslint-config-bejamas.svg)](https://badge.fury.io/js/eslint-config-bejamas)

## Install

**eslint-config-bejamas** package requires `eslint`, `eslint-plugin-import`, `eslint-plugin-react`, `eslint-plugin-react-hooks`, `eslint-plugin-jsx-a11y`, `eslint-plugin-prettier`, `eslint-config-prettier`, `@typescript-eslint/parser` and `@typescript-eslint/eslint-plugin`.

1. Install correct version of each package:

    ```bash
    npx install-peerdeps --dev eslint-config-bejamas
    ```

2. Add `"extends": "bejamas"` to your `.eslintrc`

## Example .eslintrc

### With Javascript (no typescript)

```json
{
  "parser": "@babel/eslint-parser", 
  "extends": ["bejamas", "plugin:cypress/recommended"],
  "settings": {
    "import/resolver": {
      "alias": {
        "map": [
          ["@", "./src"]
        ]
      },
      "node": {
        "extensions": [".js", ".jsx"]
      }
    }
  },
  "parserOptions": {
    "requireConfigFile": false
  }
}
```

### With Typescript

```json
{
  "extends": ["bejamas", "plugin:cypress/recommended"],
  "rules": {
    "react/react-in-jsx-scope": "off",
    "import/no-unresolved": "off",
    "import/order": [
      "error",
      {
        "groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
        "pathGroups": [
          {
            "pattern": "@/**",
            "group": "internal",
            "position": "before"
          }
        ]
      }
    ]
  },
  "settings": {
    "import/parsers": {
      "@typescript-eslint/parser": [".ts", ".tsx"]
    },
    "import/resolver": {
      "typescript": {
        "alwaysTryTypes": true
      }
    }
  }
}
```

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