31 lines
709 B
JavaScript
31 lines
709 B
JavaScript
/** @type {import("eslint").Linter.Config} */
|
|
const config = {
|
|
overrides: [
|
|
{
|
|
extends: [
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
],
|
|
files: ["*.ts", "*.tsx"],
|
|
parserOptions: {
|
|
project: "tsconfig.json",
|
|
},
|
|
},
|
|
],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
project: "./tsconfig.json",
|
|
},
|
|
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",
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|