@pnxdxt/eslint-config

4.0.0 • Public • Published

@pnxdxt/eslint-config

ESLint shareable config for Next.js

Install

$ npm i --dev @pnxdxt/eslint-config

Example usage with eslintrc.json

{
	"extends": ["@pnxdxt/eslint-config"],
	"settings": {
		"tailwindcss": {
			"config": "tailwind.config.js"
		}
	}
}

Auto-fix in vscode: update settings.json

{
	"typescript.tsdk": "./node_modules/typescript/lib",
	"typescript.preferences.importModuleSpecifier": "non-relative",
	"editor.defaultFormatter": "esbenp.prettier-vscode",
	"editor.formatOnSave": true,
	"editor.codeActionsOnSave": [
		"source.addMissingImports",
		"source.fixAll.eslint"
	]
}

Ignore paths: update .eslintignore

**/node_modules/*
**/out/*
**/.next/*

pnpm-lock.yaml
next-env.d.ts

*.mjs
*.cjs

License

MIT © pnxdxt

Package Sidebar

Install

npm i @pnxdxt/eslint-config

Weekly Downloads

1

Version

4.0.0

License

MIT

Unpacked Size

75.3 kB

Total Files

13

Last publish

Collaborators

  • pnodet