@greenymcgee/next-eslint-config
v0.1.3
Published
My ESLint config for Next.js projects.
Readme
@greenymcgee/next-eslint-config
My ESLint config for Next.js projects.
Installation
npm
npm install -D @greenymcgee/eslint-configpnpm
pnpm add -D @greenymcgee/eslint-configPeer Dependencies
- @vitest/eslint-plugin
- eslint
- eslint-config-next
- eslint-plugin-simple-import-sort
This script excludes the dependencies included by a Next.js project setup.
npm
npm install -D @vitest/eslint-plugin eslint-plugin-simple-import-sortpnpm
pnpm add -D @vitest/eslint-plugin eslint-plugin-simple-import-sortUsage
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals'
import nextTypescript from 'eslint-config-next/typescript'
import greenymcgeeConfig from '@greenymcgee/next-eslint-config'
export default [
...nextCoreWebVitals,
...nextTypescript,
...greenymcgeeConfig,
// Override or add rules as needed
{
rules: {
'no-console': 'warn',
},
},
]