-
Install the required packages:
npm install --save-dev eslint eslint-plugin-react eslint-plugin-react-hooks eslint-config-next @typescript-eslint/eslint-plugin @typescript-eslint/parser @locastic/eslint-config-nextjs-ts
-
Extend your ESLint config:
{ "extends": "@locastic/eslint-config-nextjs-ts", "overrides": [ { "files": ["*.ts", "*.tsx"], "parserOptions": { "project": ["./tsconfig.json"] } } ], "parser": "@typescript-eslint/parser" }
The MIT License