🚨 修复qodana报错

This commit is contained in:
目棃
2024-04-23 20:34:05 +08:00
parent 065019cdc6
commit 8917deb5db
6 changed files with 19 additions and 144 deletions

View File

@@ -26,7 +26,7 @@ const pkgJsonConfig = {
"keywords",
"author",
"license",
"respository",
"repository",
"homepage",
"bugs",
"dependencies",
@@ -66,7 +66,7 @@ const tscJsonConfig = {
};
const jsoncConfig = {
files: ["source/data/out/**/*.json"],
files: ["source/data/out/**/*.json", ".vscode/**/*.json"],
plugins: {
jsonc: eslint_jsonc,
},

View File

@@ -15,8 +15,8 @@ const tsConfigRules = {
},
],
"@typescript-eslint/no-import-type-side-effects": "error",
"@typescript-eslint/strict-boolean-expressions": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-explicit-any": "off",
"import/order": [
"error",
{

View File

@@ -1,18 +1,15 @@
import eslint_import from "eslint-plugin-import";
import eslint_yml from "eslint-plugin-yml";
import yml_parser from "yaml-eslint-parser";
const ymlEslintConfig = {
files: ["*.yaml", "*.yml"],
files: ["**/*.yml", "**/*.yaml"],
plugins: {
yml: eslint_yml,
import: eslint_import,
},
languageOptions: {
parser: yml_parser,
parserOptions: {
defaultYAMLVersion: "1.2",
project: "./tsconfig.json",
extraFileExtensions: [".yaml", ".yml"],
},
},