@leandromatos/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

3.0.0-rc.7 • Public • Published

ESlint Config

[!IMPORTANT]

This package's version, v3.x, works with ESLint v9.x. If you are using an older version of ESLint, please use the package's version v2.x..

This is a custom and sharable ESLint configuration for TypeScript, JavaScript, and React projects. It includes the following packages:

Usage

[!NOTE]

It's crucial to note that you must install the typescript package, even in a project that uses only JavaScript. This is because ESLint leverages TypeScript to parse the code and provide more accurate error messages.

  1. Use yarn or another package manager to install the package. For example:
yarn add --dev eslint typescript @leandromatos/eslint-config
  1. Create a new eslint.config.js file in the root of your project and add the following content:
const { flatConfig } = require("@leandromatos/eslint-config")

module.exports = [
  ...flatConfig
]
  1. If you want to override some rules, you can do so by adding new configuration objects to the array. For example:
const { flatConfig } = require("@leandromatos/eslint-config")

module.exports = [
  ...flatConfig,
  {
    rules: {
      "no-unused-vars": "warn"
    }
  }
]

License

This package is licensed under the MIT License. For more information, see the LICENSE file.

Dependencies (15)

Dev Dependencies (8)

Package Sidebar

Install

npm i @leandromatos/eslint-config

Weekly Downloads

105

Version

3.0.0-rc.7

License

MIT

Unpacked Size

16.7 kB

Total Files

23

Last publish

Collaborators

  • leandromatos