eslint-config-retn0

2.3.0 • Public • Published

🧹 eslint-config-retn0

npm eslint gitmoji

This package provides my custom ESLint configuration as a shareable config.

Requirements

[!NOTE] This configuration uses the new flat config format introduced in ESLint v9. The flat config is not compatible with older version of ESLint.

  • Node.js 18.18.0 or higher
  • ESLint 9.13.0 or higher
  • TypeScript 5.0.0 or higher (if you are using TypeScript)
  • React 18.0.0 or higher (if you are using React)

Installation

npm install -D eslint eslint-config-retn0

Usage

Create an eslint.config.js (or eslint.config.mjs) file in the root of your project:

import { createConfigs } from 'eslint-config-retn0';

export default [
  ...createConfigs(),
  // Add your custom configurations here
];

You can customize the configuration by passing options to the createConfigs function:

import { createConfigs } from 'eslint-config-retn0';

export default [
  ...createConfigs({
    perfectionist: {
      internalPattern: ['@my-server/**', '@my-client/**'], // Define patterns for grouping internal imports separately
    },
    ts: false, // If you are not using TypeScript
  }),
];

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-retn0

Weekly Downloads

5

Version

2.3.0

License

MIT

Unpacked Size

54.4 kB

Total Files

11

Last publish

Collaborators

  • nbsp1221