Export the whole overrides array from project-lint and document the lint config
Check / check (pull_request) Successful in 1m28s
Check / check (pull_request) Successful in 1m28s
This commit is contained in:
+2
-7
@@ -2,7 +2,7 @@ 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";
|
||||
import projectLint, { projectOverrides } from "./scripts/project-lint.ts";
|
||||
|
||||
export default defineConfig({
|
||||
lint: {
|
||||
@@ -25,12 +25,7 @@ export default defineConfig({
|
||||
...importStructure.configs.all.rules,
|
||||
...projectLint.configs.project.rules,
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ["vite.config.ts", "scripts/**"],
|
||||
rules: projectLint.configs.node.rules,
|
||||
},
|
||||
],
|
||||
overrides: projectOverrides,
|
||||
options: {
|
||||
typeAware: true,
|
||||
typeCheck: true,
|
||||
|
||||
Reference in New Issue
Block a user