@axross/eslint-config

2.25.1 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @axross/eslint-config

Weekly Downloads

52

Version

2.25.1

License

none

Unpacked Size

54.5 kB

Total Files

19

Last publish

Collaborators

  • axross