# eslint-config-aspira

> We have two ESLint configurations for your usage.

Latest version **1.1.6** (published 2024-01-08) · none license · 0 weekly downloads

## Install

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

## 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.6 |
| Published | 2024-01-08 |
| First published | 2022-06-21 |
| Weekly downloads | 0 |
| License | none |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 21 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rikhou |

## Links

- npm: https://www.npmjs.com/package/eslint-config-aspira
- npm.io page: https://npm.io/package/eslint-config-aspira

## Dependencies (21)

- [prettier](https://npm.io/package/prettier.md) ^2.8.8
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.20.0
- [eslint-config-next](https://npm.io/package/eslint-config-next.md) ^12.3.1
- [eslint-plugin-jest](https://npm.io/package/eslint-plugin-jest.md) ^26.5.3
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.30.1
- [@babel/eslint-parser](https://npm.io/package/@babel/eslint-parser.md) ^7.20.0
- [eslint-config-airbnb](https://npm.io/package/eslint-config-airbnb.md) ^19.0.4
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.27.5
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.8.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.7.1
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^4.2.1
- [eslint-config-react-app](https://npm.io/package/eslint-config-react-app.md) ^7.0.1
- [@babel/plugin-syntax-flow](https://npm.io/package/@babel/plugin-syntax-flow.md) ^7.17.12
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^6.7.4
- [eslint-config-airbnb-base](https://npm.io/package/eslint-config-airbnb-base.md) ^15.0.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^4.6.0
- [eslint-plugin-react-native](https://npm.io/package/eslint-plugin-react-native.md) ^4.0.0
- [eslint-plugin-eslint-comments](https://npm.io/package/eslint-plugin-eslint-comments.md) ^3.2.0
- [eslint-config-airbnb-typescript](https://npm.io/package/eslint-config-airbnb-typescript.md) ^17.0.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^6.7.4
- [@babel/plugin-transform-react-jsx](https://npm.io/package/@babel/plugin-transform-react-jsx.md) ^7.22.3

## Recent versions

- 1.1.6 (latest) — 2024-01-08
- 1.1.5 — 2024-01-07
- 1.1.4 — 2023-12-27
- 1.1.3 — 2023-12-07
- 1.1.2 — 2023-12-06
- 1.1.0 — 2022-10-12
- 1.0.0 — 2022-06-21

## README

# eslint-config-aspira

We have two ESLint configurations for your usage.

## base

The base config is for plain javascript projects (without react) such as lfm-local-server.

The base config includes [eslint-config-airbnb-base](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base) and [prettier](../../.prettierrc) rules.

## typescript

The typescript config is for typescript projects.

This config requires knowledge of your TypeScript config.

In your ESLint config, set parserOptions.project to the path of your tsconfig.json.

For example:

```diff
{
  extends: ['aspira/typescript'],
+ parserOptions: {
+   project: './tsconfig.json'
+ }
}
```

## react

The react config is for react projects.

The react config includes base rule we defined, [eslint-config-react-app](https://github.com/facebook/create-react-app/tree/main/packages/eslint-config-react-app) and [eslint-plugin-jsx-a11y/recommended](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) rules.

## next

The next config is for next projects.

## react native
It depends on [@react-native/eslint-config](https://github.com/facebook/react-native/tree/HEAD/packages/eslint-config-react-native#readme) from Facebook at present. It can support js and ts at the same time. 



For this package user, you can ignore above technical detail.


### 1. install the package

example:

```bash 
yarn add @a1/eslint-config-aspira --save-dev 
```

### 2. set .eslintrc.*

```json
{
  extends: ["aspira/react-native"],
}
```

## Usage

Add one of configs to extends section of your `.eslintrc.js` configuration file.

```json
{
  extends: ['aspira' or 'aspira/react']
}
```

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