8000 GitHub - axross/eslint-config: A hand-picked configuration set for ESLint.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

axross/eslint-config

Repository files navigation

@axross/eslint-config

A hand-crafted ESLint configuration set.

npm version license

Installation

As the minimal setup, you can install 📦 @axross/eslint-config along with ESLint:

npm i -D @axross/eslint-config eslint

And create/update eslint.config.cjs as the following:

/* global __dirname:readonly */

module.exports = [
  ...require("./src/config.cjs")({ tsconfigRootDir: __dirname }),
];

For further better setups, please see Recommended Setup section.

Supported Plugins

This config detects the installed plugins in your project and automatically opts in the respective configurations. Currently this config supports the following plugins:

Recommended Setup

React + Next.js

npm i -D \
  @axross/eslint-config \
  eslint \
  @eslint/js \
  typescript-eslint \
  eslint-plugin-unicorn \
  eslint-plugin-compat \
  eslint-plugin-import \
  eslint-plugin-perfectionist \
  eslint-plugin-react \
  eslint-plugin-react-hooks \
  eslint-plugin-jsx-a11y \
  eslint-plugin-next \
  eslint-plugin-jest \
  eslint-plugin-jest-dom \
  eslint-plugin-jest-formatting \
  eslint-plugin-testing-library \
  eslint-plugin-storybook

React Native + Expo

npm i -D \
  @axross/eslint-config \
  eslint \
  @eslint/js \
  typescript-eslint \
  eslint-plugin-unicorn \
  eslint-plugin-compat \
  eslint-plugin-import \
  eslint-plugin-perfectionist \
  eslint-plugin-react \
  eslint-plugin-react-hooks \
  eslint-plugin-jsx-a11y \
  @react-native/eslint-plugin

License

MIT

0