3.5.0 • Published 11 months ago

@infinumjs/eslint-config-nextjs-ts v3.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

eslint-config-nextjs-ts

This package provides Infinum's ESLint NextJS TypeScript shareable config.

Usage

  1. Install the required packages:

    npm install --save-dev eslint eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-config-next @typescript-eslint/eslint-plugin @typescript-eslint/parser @infinumjs/eslint-config-nextjs-ts
  2. Extend your ESLint config:

{
	"extends": "@infinumjs/eslint-config-react-js",
	"overrides": [
		{
			"extends": "@infinumjs/eslint-config-nextjs-ts",
			"files": ["*.ts", "*.tsx"],
			"parserOptions": {
				"project": ["./tsconfig.json"]
			}
		}
	]
}

License

The MIT License

Credits

@infinumjs/eslint-config-nextjs-ts is maintained and sponsored by Infinum.