eslint-config-nextjs-ts
This package provides Infinum's ESLint NextJS TypeScript shareable config.
Usage
-
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
-
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.