Skip to content

Commit

Permalink
🚨 修复qodana报错
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Apr 23, 2024
1 parent 065019c commit 8917deb
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 144 deletions.
133 changes: 0 additions & 133 deletions .eslintrc.yml

This file was deleted.

13 changes: 12 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ export default [
ymlEslintConfig,
...vueEslintConfig,
{
ignores: ["dist", "src-tauri/target", "pnpm-lock.yaml", "src/data/**/*.json"],
ignores: [
"dist",
"src-tauri/target",
"pnpm-lock.yaml",
"src/data/**/*.json",
"src-tauri/tauri.conf.json",
"qodana.yaml",
".github",
".vscode",
".prettierrc.yml",
".stylelintrc.yml",
],
},
];
4 changes: 2 additions & 2 deletions eslint/jsonEslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const pkgJsonConfig = {
"keywords",
"author",
"license",
"respository",
"repository",
"homepage",
"bugs",
"dependencies",
Expand Down Expand Up @@ -66,7 +66,7 @@ const tscJsonConfig = {
};

const jsoncConfig = {
files: ["source/data/out/**/*.json"],
files: ["source/data/out/**/*.json", ".vscode/**/*.json"],
plugins: {
jsonc: eslint_jsonc,
},
Expand Down
4 changes: 2 additions & 2 deletions eslint/vueEslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
{
Expand Down
5 changes: 1 addition & 4 deletions eslint/ymlEslint.js
Original file line number Diff line number Diff line change
@@ -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"],
},
},
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"composite": true
},
"include": [
"**/*.yml",
"**/*.yaml",
"*.yml",
"*.yaml",
"package.json",
"src/**/*.d.ts",
"src/**/*.ts",
Expand Down

0 comments on commit 8917deb

Please sign in to comment.