Skip to content

Commit

Permalink
deps: update eslint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
KawaiiZapic committed Nov 5, 2024
1 parent 81d5aa4 commit 85db77a
Show file tree
Hide file tree
Showing 12 changed files with 497 additions and 779 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

24 changes: 0 additions & 24 deletions .eslintrc.cjs

This file was deleted.

47 changes: 47 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import ESLintJS from "@eslint/js";
import ESLintTS from "typescript-eslint";
import UnoCSS from "@unocss/eslint-config/flat";
import Prettier from "eslint-config-prettier";

/** @type { import("eslint").Linter.Config } */
export default [
ESLintJS.configs.recommended,
...ESLintTS.configs.recommendedTypeChecked,
UnoCSS,
Prettier,
{
rules: {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
caughtErrorsIgnorePattern: "^_$",
}
],
},
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
parserOptions: {
project: ["tsconfig.json", "tsconfig.node.json", "tsconfig.cjs.json"]
}
}
}, {
ignores: [
"dist/**/*",
"node_modules/**/*"
]
}, {
files: [
".stylelintrc.cjs",
"postcss.config.cjs"
],
languageOptions: {
sourceType: "commonjs"
},
rules: {
"@typescript-eslint/no-require-imports": "off"
}
}
];

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"./node_modules/mdui/web-types.zh-cn.json"
],
"dependencies": {
"@eslint/js": "^9.14.0",
"@fancyapps/ui": "^5.0.36",
"@mdui/icons": "^1.0.2",
"@mermaid-js/mermaid-zenuml": "^0.2.0",
Expand All @@ -13,13 +14,13 @@
"@types/node": "^20.11.28",
"@types/nprogress": "^0.2.3",
"@types/prismjs": "^1.26.4",
"@unocss/core": "^0.62.4",
"@unocss/eslint-config": "^0.62.4",
"@unocss/core": "^0.63.6",
"@unocss/eslint-config": "^0.63.6",
"autoprefixer": "^10.4.20",
"browserslist-useragent-regexp": "^4.1.3",
"clipboard": "^2.0.11",
"core-js": "^3.38.1",
"eslint": "^8.57.0",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"fast-glob": "^3.3.2",
Expand All @@ -42,8 +43,8 @@
"stylelint-config-standard": "^36.0.1",
"stylelint-less": "^3.0.1",
"typescript": "^5.4.2",
"typescript-eslint": "^7.4.0",
"unocss": "^0.62.4",
"typescript-eslint": "^8.13.0",
"unocss": "^0.63.6",
"vite": "^5.4.7"
},
"scripts": {
Expand Down
Loading

0 comments on commit 85db77a

Please sign in to comment.