:|
This commit is contained in:
parent
f93566043e
commit
1257437ef0
@ -1,35 +0,0 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
||||||
const path = require("path");
|
|
||||||
|
|
||||||
/** @type {import("eslint").Linter.Config} */
|
|
||||||
const config = {
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
extends: [
|
|
||||||
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
||||||
],
|
|
||||||
files: ["*.ts", "*.tsx"],
|
|
||||||
parserOptions: {
|
|
||||||
project: path.join(__dirname, "tsconfig.json"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parser: "@typescript-eslint/parser",
|
|
||||||
parserOptions: {
|
|
||||||
project: path.join(__dirname, "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",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = config;
|
|
Loading…
x
Reference in New Issue
Block a user