Typescript
eslint

config

.eslintrc.cjs
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require("path");
 
/** @type {import("eslint").Linter.Config} */
const config = {
  root: true,
  plugins: ["@typescript-eslint"],
  extends: ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
  rules: {
    "@typescript-eslint/consistent-type-imports": [
      "warn",
      {
        prefer: "type-imports",
        fixStyle: "inline-type-imports",
      },
    ],
    "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
  },
};
 
module.exports = config;