# @raidorev/eslint-config

> Strict ESLint config for my projects

Latest version **2.0.0** (published 2023-03-09) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2023-03-09 |
| First published | 2023-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexander Titov |
| Maintainers | raidorev |
| Keywords | ESLint, TypeScript, Vue |

## Links

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

## Dependencies (12)

- [eslint-plugin-vue](https://npm.io/package/eslint-plugin-vue.md) ^9.9.0
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.27.5
- [eslint-plugin-regexp](https://npm.io/package/eslint-plugin-regexp.md) ^1.12.0
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) ^6.1.1
- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) ^0.18.0
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) ^46.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.7.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^4.2.1
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.54.1
- [@vue/eslint-config-typescript](https://npm.io/package/@vue/eslint-config-typescript.md) ^11.0.2
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^5.54.1
- [eslint-import-resolver-typescript](https://npm.io/package/eslint-import-resolver-typescript.md) ^3.5.3

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

- 2.0.0 (latest) — 2023-03-09

## README

# My ESLint configuration for TypeScript/Vue projects

This is my personal ESLint configuration for TypeScript/Vue projects. It uses quite a few plugins and have pretty strict rules.

## Installation

```bash
npm install --save-dev eslint prettier typescript @raidorev/eslint-config
```

```bash
yarn add --save-dev eslint prettier typescript @raidorev/eslint-config
```

```bash
pnpm add --save-dev eslint prettier typescript @raidorev/eslint-config
```

## Usage

In this configuration, the parserOptions.project is set to `./tsconfig.eslint.json` to allow typescript-eslint to work with TypeScript's type checking APIs. Here's an example of what this file might look like:

```json
{
  "extends": "./tsconfig.json",
  "include": [
    "src/**/*.ts",
    "src/**/*.tsx",
    "src/**/*.vue",
    "vite.config.ts",
    ".eslintrc.cjs",
    "stylelint.config.cjs"
  ]
}
```

Once you have created this file, you can extend the configuration in your ESLint config file like this:

```js
module.exports = {
  extends: ["@raidorev"],
};
```

## Plugins

This configuration uses the following plugins:

- [typescript-eslint](https://typescript-eslint.io): Provides additional rules specific to TypeScript, as well as the ability to use TypeScript's type checking APIs.
- [eslint-plugin-vue](https://eslint.vuejs.org): Supports linting for Vue.js code.
- [eslint-plugin-prettier](https://www.npmjs.com/package/eslint-plugin-prettier) with [eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier): Prettier integration.
- [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import): Rules for import/export usage. My favorite rule is 'import/order', which enforces a consistent order for imports. I use the following order: builtin, external, internal, parent, sibling, index, object, type, unknown. `@/**` alias is marked as internal import.
- [eslint-plugin-promise](https://www.npmjs.com/package/eslint-plugin-promise): Provides rules for working with Promises.
- [eslint-plugin-regexp](https://www.npmjs.com/package/eslint-plugin-regexp): Provides rules for working with regular expressions.
- [eslint-plugin-sonarjs](https://www.npmjs.com/package/eslint-plugin-sonarjs): Provides additional rules for code quality and maintainability, based on the [SonarQube](https://www.sonarsource.com/products/sonarqube/features/code-quality) project.
- [eslint-plugin-unicorn](https://www.npmjs.com/package/eslint-plugin-unicorn): More rules for code quality and maintainability.

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