New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-ai

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-ai

Opinionated set of ESLint shareable configs by Alex Ilyaev

  • 3.6.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
35
increased by66.67%
Maintainers
0
Weekly downloads
 
Created
Source

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:

Keywords

FAQs

Package last updated on 01 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc