This package provides my custom ESLint configuration as a shareable config.
[!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)
npm install -D eslint eslint-config-retn0
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
}),
];