# eslint-config-earlycross

> ESLint shareable config for EarlyCross JavaScript/TypeScript project

Latest version **2.0.0** (published 2022-11-02) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.0.0 |
| Published | 2022-11-02 |
| First published | 2022-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 19.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | ken_yamamura, ec_moriya |
| Keywords | eslint, eslintconfig, javascript, typescript, react |

## Links

- npm: https://www.npmjs.com/package/eslint-config-earlycross
- Repository: https://github.com/earlycross-inc/eslint-config-earlycross
- Homepage: https://github.com/earlycross-inc/eslint-config-earlycross#readme
- Issues: https://github.com/earlycross-inc/eslint-config-earlycross/issues
- npm.io page: https://npm.io/package/eslint-config-earlycross

## Dependencies (10)

- [eslint-plugin-jest](https://npm.io/package/eslint-plugin-jest.md) ^27.1.3
- [eslint-plugin-jsdoc](https://npm.io/package/eslint-plugin-jsdoc.md) ^39.4.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.28.0
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.25.4
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.3.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.5.1
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.10.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^4.3.0
- [eslint-plugin-testing-library](https://npm.io/package/eslint-plugin-testing-library.md) ^5.0.4
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^5.10.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2022-11-02
- 1.0.0 — 2022-01-27

## README

# eslint-config-earlycross

This is an ESLint shareable config that is intended for use within EarlyCross.

Currently, this package contains three presets.

| Presets                       | Details                                                        |
| ----------------------------- | -------------------------------------------------------------- |
| `earlycross/javascript`       | For project written entirely in JavaScript                     |
| `earlycross/typescript`       | For project written in TypeScript (including JavaScript)       |
| `earlycross/typescript-react` | For react project written in TypeScript (including JavaScript) |

Plus, `earlycross/jest` preset is provided for projects which use Jest. This preset is intended to be used along with presets above.

## Dependent configs or plugins

### JavaScript

- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-jsdoc

### TypeScript

In addition to JavaScript

- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser

### TypeScript React

In addition to TypeScript

- eslint-plugin-jsx-a11y
- eslint-plugin-react
- eslint-plugin-react-hooks
- eslint-plugin-testing-library

### Jest

- eslint-plugin-jest

## Install

```
npm i -D eslint-config-earlycross
```

## Configuration

Examples of `.eslintrc.json`:

### JavaScript

```jsonc
{
  "extends": ["earlycross/javascript"],
  "plugins": [
    // additional plugins
  ],
  "env": { "node": true },
  "rules": {
    // javascript rules to override
  }
}
```

### TypeScript

```jsonc
{
  "extends": ["earlycross/typescript"],
  "plugins": [
    // additional plugins
  ],
  "env": { "node": true },
  "overrides": [
    {
      "files": ["*.ts"],
      "parserOptions": { "project": ["./tsconfig.eslint.json"] },
      "rules": {
        // typescript rules to override
      }
    }
  ]
}
```

### TypeScript React

```jsonc
{
  "extends": ["earlycross/typescript-react"],
  "plugins": [
    // additional plugins
  ],
  "env": { "node": true },
  "overrides": [
    {
      "files": ["*.ts", "*.tsx"],
      "parserOptions": { "project": ["./tsconfig.eslint.json"] },
      "rules": {
        // typescript rules to override
      }
    }
  ]
}
```

### JavaScript + Jest

```jsonc
{
  "extends": ["earlycross/javascript", "earlycross/jest"],
  "plugins": [
    // additional plugins
  ],
  "env": { "node": true },
  "rules": {
    // javascript rules to override
  }
}
```

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