2023-04-20 04:20:00 -06:00
|
|
|
/** @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",
|
|
|
|
},
|
|
|
|
],
|
2023-06-07 22:31:43 -06:00
|
|
|
"@typescript-eslint/ban-ts-comment": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ts-ignore": "allow-with-description",
|
|
|
|
},
|
|
|
|
],
|
2023-04-20 04:20:00 -06:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|