@retn0/eslint-config
v1.1.0
Published
🧹 My custom ESLint configuration
Downloads
120
Maintainers
Readme
@retn0/eslint-config
Comprehensive ESLint configuration with code quality and style enforcement.
Requirements
- Node.js 22.0.0 or higher
- ESLint 9.29.0 or higher
- TypeScript 5.0.0 or higher (if using TypeScript)
- React 19.0.0 or higher (if using React)
Installation
# npm
npm install -D eslint @retn0/eslint-config
# pnpm
pnpm add -D eslint @retn0/eslint-config
# yarn
yarn add -D eslint @retn0/eslint-configUsage
Create an eslint.config.js file in the root of your project:
import { createConfigs } from '@retn0/eslint-config';
import { defineConfig } from 'eslint/config';
export default defineConfig([
...createConfigs(),
// Add your custom configurations here
]);You can customize the configuration by passing options to createConfigs(). Here are the default values:
...createConfigs({
js: true,
ts: true,
stylistic: true,
perfectionist: {
internalPattern: ['^@/.*', '^~/.*'],
},
react: true,
oxlint: false,
})License
MIT © nbsp1221
