mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-15 03:53:16 +08:00
🚨 修复qodana报错
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
{
|
||||
|
||||
@@ -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"],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user