diff --git a/eslint.config.mjs b/eslint.config.mjs index 98368a2b..22b1a540 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,25 +1,11 @@ -import typescriptEslint from "@typescript-eslint/eslint-plugin"; import stylistic from "@stylistic/eslint-plugin"; import globals from "globals"; -import tsParser from "@typescript-eslint/parser"; -import path from "node:path"; -import { fileURLToPath } from "node:url"; -import js from "@eslint/js"; -import { FlatCompat } from "@eslint/eslintrc"; - -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); -const compat = new FlatCompat({ - baseDirectory: __dirname, - recommendedConfig: js.configs.recommended, - allConfig: js.configs.all -}); +import github from "eslint-plugin-github"; export default [{ ignores: ["**/dist/", "**/lib/", "**/node_modules/"], -}, ...compat.extends("plugin:github/typescript"), { +}, ...github.getFlatConfigs().typescript, { plugins: { - "@typescript-eslint": typescriptEslint, "@stylistic": stylistic, }, @@ -28,10 +14,6 @@ export default [{ ...globals.node, }, - parser: tsParser, - ecmaVersion: 9, - sourceType: "module", - parserOptions: { project: true, }, diff --git a/package-lock.json b/package-lock.json index 2f2b5cc6..a15d4541 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@typescript-eslint/parser": "^8.48.1", "@vercel/ncc": "^0.38.4", "eslint": "^9.39.1", - "eslint-plugin-github": "^5.1.8", + "eslint-plugin-github": "^6.0.0", "eslint-plugin-prettier": "^5.5.4", "js-yaml": "^4.1.1", "prettier": "3.7.4", @@ -2016,11 +2016,10 @@ } }, "node_modules/eslint-plugin-github": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-5.1.8.tgz", - "integrity": "sha512-A6q+R3EBMF7hxIViWpQsalqpu3O0POcQ9VpN1m9W2I8yGumw+SFxXZUTafBd9X9mgUJhaU4M9qSifC1q/39H3A==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-6.0.0.tgz", + "integrity": "sha512-J8MvUoiR/TU/Y9NnEmg1AnbvMUj9R6IO260z47zymMLLvso7B4c80IKjd8diqmqtSmeXXlbIus4i0SvK84flag==", "dev": true, - "license": "MIT", "dependencies": { "@eslint/compat": "^1.2.3", "@eslint/eslintrc": "^3.1.0", @@ -2039,10 +2038,11 @@ "eslint-plugin-no-only-tests": "^3.0.0", "eslint-plugin-prettier": "^5.2.1", "eslint-rule-documentation": ">=1.0.0", - "globals": "^15.12.0", + "globals": "^16.0.0", "jsx-ast-utils": "^3.3.2", "prettier": "^3.0.0", "svg-element-attributes": "^1.3.1", + "typescript": "^5.7.3", "typescript-eslint": "^8.14.0" }, "bin": { @@ -2070,9 +2070,9 @@ } }, "node_modules/eslint-plugin-github/node_modules/globals": { - "version": "15.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.12.0.tgz", - "integrity": "sha512-1+gLErljJFhbOVyaetcwJiJ4+eLe45S2E7P5UiZ9xGfeq3ATQf5DOv9G7MH3gGbKQLkzmNh2DxfZwLdw+j6oTQ==", + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", "dev": true, "engines": { "node": ">=18" @@ -5709,9 +5709,9 @@ } }, "eslint-plugin-github": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-5.1.8.tgz", - "integrity": "sha512-A6q+R3EBMF7hxIViWpQsalqpu3O0POcQ9VpN1m9W2I8yGumw+SFxXZUTafBd9X9mgUJhaU4M9qSifC1q/39H3A==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-6.0.0.tgz", + "integrity": "sha512-J8MvUoiR/TU/Y9NnEmg1AnbvMUj9R6IO260z47zymMLLvso7B4c80IKjd8diqmqtSmeXXlbIus4i0SvK84flag==", "dev": true, "requires": { "@eslint/compat": "^1.2.3", @@ -5731,10 +5731,11 @@ "eslint-plugin-no-only-tests": "^3.0.0", "eslint-plugin-prettier": "^5.2.1", "eslint-rule-documentation": ">=1.0.0", - "globals": "^15.12.0", + "globals": "^16.0.0", "jsx-ast-utils": "^3.3.2", "prettier": "^3.0.0", "svg-element-attributes": "^1.3.1", + "typescript": "^5.7.3", "typescript-eslint": "^8.14.0" }, "dependencies": { @@ -5746,9 +5747,9 @@ "requires": {} }, "globals": { - "version": "15.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.12.0.tgz", - "integrity": "sha512-1+gLErljJFhbOVyaetcwJiJ4+eLe45S2E7P5UiZ9xGfeq3ATQf5DOv9G7MH3gGbKQLkzmNh2DxfZwLdw+j6oTQ==", + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", "dev": true } } diff --git a/package.json b/package.json index d8362550..b3d3609a 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@typescript-eslint/parser": "^8.48.1", "@vercel/ncc": "^0.38.4", "eslint": "^9.39.1", - "eslint-plugin-github": "^5.1.8", + "eslint-plugin-github": "^6.0.0", "eslint-plugin-prettier": "^5.5.4", "js-yaml": "^4.1.1", "prettier": "3.7.4",