Преглед на файлове

chore(deps): upgrade all dependencies to latest, drop legacy eslintrc

Bumps every devDependency to its current latest release, including five
majors that needed adjustments to the build setup:

- eslint 9.39.4 -> 10.4.0
- typescript 5.9.3 -> 6.0.3
- stylelint 16.26.1 -> 17.11.1
- eslint-plugin-unicorn 62 -> 64
- autoprefixer 10.4.27 -> 10.5.0 (minor, listed for completeness)

Plus all minors and patches:
- astro 6.0.0 -> 6.3.3
- @astrojs/check, @astrojs/mdx, @typescript-eslint/*, postcss, rollup,
  sass, terser, prettier, bundlewatch, fs-extra, eslint-plugin-astro

Tidies the ESLint config along the way:

- Removes .eslintrc.json (legacy config, ignored by ESLint 9+ since the
  flat config in eslint.config.js exists)
- Drops three deps that only the legacy config referenced:
  eslint-plugin-import, eslint-config-xo, eslint-config-xo-typescript
  (the latter is also deprecated upstream and merged into
  eslint-config-xo)
- Adds explicit deps for @eslint/js, globals, and typescript-eslint --
  these were resolved transitively under ESLint 9 but ESLint 10 requires
  them to be declared

Adds an npm overrides block to keep the install clean without
--legacy-peer-deps:

- stylelint-config-twbs-bootstrap pinned to follow the root stylelint
  version, since the upstream package hasn't tagged a release for
  stylelint 17 yet
- yaml forced to ^2.9.0 to clear the dev-only GHSA-48c2-rrv3-qjmp
  stack-overflow advisory pulled in through @astrojs/check ->
  yaml-language-server. npm audit now reports 0 vulnerabilities.
Aigars Silkalns преди 1 ден
родител
ревизия
4bb584cecd
променени са 3 файла, в които са добавени 380 реда и са изтрити 638 реда
  1. 0 120
      .eslintrc.json
  2. 353 497
      package-lock.json
  3. 27 21
      package.json

+ 0 - 120
.eslintrc.json

@@ -1,120 +0,0 @@
-{
-  "root": true,
-  "extends": [
-    "plugin:import/errors",
-    "plugin:import/warnings",
-    "plugin:unicorn/recommended",
-    "xo",
-    "xo/browser"
-  ],
-  "rules": {
-    "arrow-body-style": "off",
-    "capitalized-comments": "off",
-    "comma-dangle": [
-      "error",
-      "never"
-    ],
-    "indent": [
-      "error",
-      2,
-      {
-        "MemberExpression": "off",
-        "SwitchCase": 1
-      }
-    ],
-    "max-params": [
-      "warn",
-      5
-    ],
-    "multiline-ternary": [
-      "error",
-      "always-multiline"
-    ],
-    "new-cap": [
-      "error",
-      {
-        "properties": false
-      }
-    ],
-    "no-console": "error",
-    "no-negated-condition": "off",
-    "object-curly-spacing": [
-      "error",
-      "always"
-    ],
-    "operator-linebreak": [
-      "error",
-      "after"
-    ],
-    "semi": [
-      "error",
-      "never"
-    ],
-    "unicorn/explicit-length-check": "off",
-    "unicorn/no-array-callback-reference": "off",
-    "unicorn/no-array-for-each": "off",
-    "unicorn/no-array-method-this-argument": "off",
-    "unicorn/no-null": "off",
-    "unicorn/no-unused-properties": "error",
-    "unicorn/prefer-array-flat": "off",
-    "unicorn/prefer-dom-node-dataset": "off",
-    "unicorn/prefer-export-from": "off",
-    "unicorn/prefer-module": "off",
-    "unicorn/prefer-query-selector": "off",
-    "unicorn/prefer-spread": "off",
-    "unicorn/prefer-string-replace-all": "off",
-    "unicorn/prevent-abbreviations": "off"
-  },
-  "overrides": [
-    {
-      "files": ["*.ts", "*.tsx"],
-      "extends": [
-        "plugin:import/typescript",
-        "xo-typescript"
-      ],
-      "rules": {
-        "@typescript-eslint/comma-dangle": [
-          "error",
-          "never"
-        ],
-        "@typescript-eslint/indent": [
-          "error",
-          2,
-          {
-            "MemberExpression": "off",
-            "SwitchCase": 1
-          }
-        ],
-        "@typescript-eslint/naming-convention": [
-          "error",
-          {
-            "selector": "variable",
-            "format": ["camelCase", "StrictPascalCase", "UPPER_CASE"]
-          }
-        ],
-        "@typescript-eslint/object-curly-spacing": [
-          "error",
-          "always"
-        ],
-        "@typescript-eslint/semi": [
-          "error",
-          "never"
-        ]
-      }
-    },
-    {
-      "files": ["src/config/**"],
-      "env": {
-        "browser": false,
-        "node": true
-      },
-      "parserOptions": {
-        "sourceType": "module"
-      },
-      "rules": {
-        "no-console": "off",
-        "unicorn/prefer-top-level-await": "off"
-      }
-    }
-  ]
-}

Файловите разлики са ограничени, защото са твърде много
+ 353 - 497
package-lock.json


+ 27 - 21
package.json

@@ -62,42 +62,48 @@
   "bugs": {
     "url": "https://github.com/ColorlibHQ/AdminLTE/issues"
   },
+  "overrides": {
+    "stylelint-config-twbs-bootstrap": {
+      "stylelint": "$stylelint"
+    },
+    "yaml": "^2.9.0"
+  },
   "devDependencies": {
-    "@astrojs/check": "^0.9.7",
-    "@astrojs/mdx": "^5.0.0",
+    "@astrojs/check": "^0.9.9",
+    "@astrojs/mdx": "^5.0.6",
+    "@eslint/js": "^10.0.1",
     "@rollup/plugin-typescript": "^12.3.0",
-    "@typescript-eslint/eslint-plugin": "^8.57.0",
-    "@typescript-eslint/parser": "^8.57.0",
-    "astro": "^6.0.0",
-    "autoprefixer": "^10.4.27",
+    "@typescript-eslint/eslint-plugin": "^8.59.3",
+    "@typescript-eslint/parser": "^8.59.3",
+    "astro": "^6.3.3",
+    "autoprefixer": "^10.5.0",
     "bootstrap": "^5.3.8",
-    "bundlewatch": "^0.4.1",
+    "bundlewatch": "^0.4.2",
     "clean-css-cli": "^5.6.3",
     "concurrently": "^9.2.1",
     "cross-env": "^10.1.0",
-    "eslint": "^9.39.4",
-    "eslint-config-xo": "^0.49.0",
-    "eslint-config-xo-typescript": "^9.0.0",
-    "eslint-plugin-astro": "^1.6.0",
-    "eslint-plugin-import": "^2.32.0",
-    "eslint-plugin-unicorn": "^62.0.0",
-    "fs-extra": "^11.3.4",
+    "eslint": "^10.4.0",
+    "eslint-plugin-astro": "^1.7.0",
+    "eslint-plugin-unicorn": "^64.0.0",
+    "fs-extra": "^11.3.5",
+    "globals": "^17.6.0",
     "lockfile-lint": "^5.0.0",
     "nodemon": "^3.1.14",
     "npm-run-all": "^4.1.5",
-    "postcss": "^8.5.8",
+    "postcss": "^8.5.14",
     "postcss-cli": "^11.0.1",
-    "prettier": "^3.8.1",
+    "prettier": "^3.8.3",
     "prettier-plugin-astro": "^0.14.1",
     "rimraf": "^6.1.3",
-    "rollup": "^4.59.0",
+    "rollup": "^4.60.4",
     "rtlcss": "^4.3.0",
-    "sass": "^1.97.3",
+    "sass": "^1.99.0",
     "shx": "^0.4.0",
-    "stylelint": "^16.26.1",
+    "stylelint": "^17.11.1",
     "stylelint-config-twbs-bootstrap": "^16.1.0",
-    "terser": "^5.46.0",
+    "terser": "^5.47.1",
     "tslib": "^2.8.1",
-    "typescript": "^5.9.3"
+    "typescript": "^6.0.3",
+    "typescript-eslint": "^8.59.3"
   }
 }

Някои файлове не бяха показани, защото твърде много файлове са промени