4.0.0 • Published 2 years ago

@pnxdxt/eslint-config v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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