eslint-config-retn0
v2.5.0
Published
🧹 My custom ESLint configuration
Downloads
61
Readme
🧹 eslint-config-retn0
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 22.16.0 or higher
- ESLint 9.29.0 or higher
- TypeScript 5.8.3 or higher (if you are using TypeScript)
- React 19.1.0 or higher (if you are using React)
Installation
# npm
npm install -D eslint eslint-config-retn0
# pnpm
pnpm add -D eslint eslint-config-retn0
# yarn
yarn add -D eslint eslint-config-retn0Usage
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
}),
];