3.6.5 • Published 8 months ago

eslint-config-ai v3.6.5

Weekly downloads
100
License
MIT
Repository
github
Last release
8 months ago

eslint-config-ai

Opinionated set of ESLint shareable configs by Alex Ilyaev

Why?

I manage many projects and find myself copy/pasting configs between projects, which got out of hand pretty quickly.

What's included?

Installation

Required:

pnpm add -D \
  prettier \
  eslint \
  eslint-config-prettier \
  @stylistic/eslint-plugin \
  @typescript-eslint/eslint-plugin \
  @typescript-eslint/parser \
  eslint-config-ai

Optional (based on the configs you choose)

ai/react:

pnpm add -D \
  eslint-plugin-compat \
  eslint-plugin-jsx-a11y \
  eslint-plugin-react \
  eslint-plugin-react-hooks

ai/import:

pnpm add -D \
  eslint-plugin-import \
  eslint-import-resolver-typescript

Other:

pnpm add -D \
  eslint-plugin-jest \
  eslint-plugin-lodash \
  eslint-plugin-promise \
  eslint-plugin-jsdoc \
  eslint-plugin-eslint-comments \
  eslint-plugin-unicorn
  • If you use npm, replace pnpm add with npm install

Usage

Add to your .eslintrc:

Last

Disables styling rules that are covered by Prettier or deprecated and moved to @stylistic

Always add ai/last as the last extends

{
  "extends": ["ai/last"]
}

Base rules

This config extends eslint:recommended and sets up Prettier

{
  "extends": ["ai", "ai/last"]
}

Base + Plugins

You can choose which plugins to add

{
  "extends": [
    "ai",
    "ai/typescript",
    "ai/unicorn",
    "ai/import",
    "ai/jest",
    "ai/lodash",
    "ai/promise",
    "ai/jsdoc",
    "ai/eslint-comments",
    "ai/last"
  ]
}

Base + TypeScript + React

{
  "extends": ["ai", "ai/typescript", "ai/react", "ai/last"]
}

All (Base + All Plugins + Last)

{
  "extends": ["ai/all"]
}

Configured Rules

You can see what's currently configured in these files:

3.6.5

8 months ago

3.6.4

8 months ago

3.6.3

9 months ago

3.6.2

9 months ago

3.6.1

10 months ago

3.4.0

10 months ago

3.5.2

10 months ago

3.6.0

10 months ago

3.5.1

10 months ago

3.5.0

10 months ago

3.4.1

10 months ago

3.3.0

12 months ago

3.2.0

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.6.2

2 years ago

2.6.1

4 years ago

2.6.0

5 years ago

2.5.1

5 years ago

2.5.0

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.9.0

5 years ago

1.8.0

5 years ago

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.4.0

6 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago