30 lines
898 B
TypeScript
30 lines
898 B
TypeScript
import explicitTypes from "eslint-plugin-explicit-types";
|
|
import importStructure from "eslint-plugin-import-structure";
|
|
import { defineConfig } from "vite-plus";
|
|
|
|
import projectLint from "./scripts/project-lint.ts";
|
|
|
|
export default defineConfig({
|
|
lint: {
|
|
plugins: ["typescript", "unicorn", "oxc", "import"],
|
|
jsPlugins: [
|
|
"eslint-plugin-explicit-types",
|
|
"eslint-plugin-import-structure",
|
|
"./scripts/project-lint.ts",
|
|
],
|
|
categories: { correctness: "error", suspicious: "error", pedantic: "error", perf: "error" },
|
|
rules: {
|
|
...explicitTypes.configs.concrete.rules,
|
|
...explicitTypes.configs.absence.rules,
|
|
...importStructure.configs.modules.rules,
|
|
...projectLint.configs.project.rules,
|
|
},
|
|
options: {
|
|
typeAware: true,
|
|
typeCheck: true,
|
|
maxWarnings: 0,
|
|
reportUnusedDisableDirectives: "error",
|
|
},
|
|
},
|
|
});
|