From 97c01d2167af8679a1a3e14ba893322753172081 Mon Sep 17 00:00:00 2001 From: "depfu[bot]" <23717796+depfu[bot]@users.noreply.github.com> Date: Sat, 21 Nov 2026 07:56:02 +0000 Subject: [PATCH] Update @stylistic/eslint-plugin to version 6.0.1 --- .eslint_todo.ts | 84 ++++++++++++++++++++++++++++++++++++++----------- package.json | 2 +- pnpm-lock.yaml | 62 +++++++++++++++++++++++++----------- 3 files changed, 111 insertions(+), 37 deletions(-) diff --git a/.eslint_todo.ts b/.eslint_todo.ts index d65430851..a1d68a167 100644 --- a/.eslint_todo.ts +++ b/.eslint_todo.ts @@ -1,5 +1,5 @@ // This configuration was generated by `exe/eslint_autogen` -// on 2026-07-06 17:55:24 UTC. +// on 2026-11-22 03:23:42 UTC. // The point is for the user to remove these configuration records // one by one as the offenses are removed from the code base. @@ -15,6 +15,17 @@ const config: Linter.Config[] = [ "@stylistic/comma-dangle": "off", }, }, + // Offense count: 6 + { + files: [ + "spec/javascript/controllers/star_toggle_controller_spec.ts", + "spec/javascript/controllers/story_refresh_controller_spec.ts", + "spec/javascript/helpers/api_spec.ts", + ], + rules: { + "@stylistic/dot-location": "off", + }, + }, // Offense count: 3 { files: [ @@ -33,7 +44,40 @@ const config: Linter.Config[] = [ "@stylistic/keyword-spacing": "off", }, }, - // Offense count: 20 + // Offense count: 188 + { + files: [ + "app/javascript/application.ts", + "app/javascript/controllers/application.ts", + "app/javascript/controllers/dialog_controller.ts", + "app/javascript/controllers/hotkeys_controller.ts", + "app/javascript/controllers/index.ts", + "app/javascript/controllers/keep_unread_toggle_controller.ts", + "app/javascript/controllers/mark_all_as_read_controller.ts", + "app/javascript/controllers/star_toggle_controller.ts", + "app/javascript/controllers/story_refresh_controller.ts", + "app/javascript/controllers/unread_count_controller.ts", + "app/javascript/helpers/api.ts", + "app/javascript/helpers/assert.ts", + "eslint.config.ts", + "spec/javascript/application_spec.ts", + "spec/javascript/controllers/dialog_controller_spec.ts", + "spec/javascript/controllers/hotkeys_controller_spec.ts", + "spec/javascript/controllers/mark_all_as_read_controller_spec.ts", + "spec/javascript/controllers/star_toggle_controller_spec.ts", + "spec/javascript/controllers/story_refresh_controller_spec.ts", + "spec/javascript/controllers/unread_count_controller_spec.ts", + "spec/javascript/helpers/api_spec.ts", + "spec/javascript/helpers/assert_spec.ts", + "spec/javascript/support/stimulus.ts", + "types/eslint-plugin-sort-keys-fix.d.ts", + "vitest.config.ts", + ], + rules: { + "@stylistic/list-style": "off", + }, + }, + // Offense count: 21 { files: [ "app/javascript/application.ts", @@ -46,7 +90,23 @@ const config: Linter.Config[] = [ "@stylistic/max-len": "off", }, }, - // Offense count: 2 + // Offense count: 13 + { + files: [ + "app/javascript/application.ts", + "app/javascript/controllers/hotkeys_controller.ts", + "app/javascript/controllers/keep_unread_toggle_controller.ts", + "app/javascript/controllers/star_toggle_controller.ts", + "spec/javascript/controllers/star_toggle_controller_spec.ts", + "spec/javascript/controllers/unread_count_controller_spec.ts", + "spec/javascript/helpers/assert_spec.ts", + "spec/javascript/support/stimulus.ts", + ], + rules: { + "@stylistic/max-statements-per-line": "off", + }, + }, + // Offense count: 1 { files: [ "spec/javascript/setup.ts", @@ -75,18 +135,6 @@ const config: Linter.Config[] = [ "@stylistic/no-extra-parens": "off", }, }, - // Offense count: 40 - { - files: [ - "app/javascript/application.ts", - "spec/javascript/setup.ts", - "spec/javascript/spec/models/story_spec.ts", - "spec/javascript/spec/views/story_view_spec.ts", - ], - rules: { - "@stylistic/object-curly-spacing": "off", - }, - }, // Offense count: 3 { files: [ @@ -186,7 +234,7 @@ const config: Linter.Config[] = [ "@typescript-eslint/no-unsafe-argument": "off", }, }, - // Offense count: 51 + // Offense count: 55 { files: [ "app/javascript/application.ts", @@ -198,7 +246,7 @@ const config: Linter.Config[] = [ "@typescript-eslint/no-unsafe-assignment": "off", }, }, - // Offense count: 181 + // Offense count: 187 { files: [ "app/javascript/application.ts", @@ -210,7 +258,7 @@ const config: Linter.Config[] = [ "@typescript-eslint/no-unsafe-call": "off", }, }, - // Offense count: 266 + // Offense count: 271 { files: [ "app/javascript/application.ts", diff --git a/package.json b/package.json index 57bb6c9a4..62c0a6b85 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "devDependencies": { "@eslint/eslintrc": "^3.3.7", "@eslint/js": "^10.0.1", - "@stylistic/eslint-plugin": "^5.10.0", + "@stylistic/eslint-plugin": "^6.0.1", "@types/backbone": "latest", "@types/hotwired__turbo": "^8.0.16", "@types/mousetrap": "latest", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1f31298d9..af512ce56 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -222,8 +222,8 @@ importers: specifier: ^10.0.1 version: 10.0.1(eslint@10.14.0(jiti@2.7.0)(supports-color@10.2.2)) '@stylistic/eslint-plugin': - specifier: ^5.10.0 - version: 5.10.0(eslint@10.14.0(jiti@2.7.0)(supports-color@10.2.2)) + specifier: ^6.0.1 + version: 6.0.1(eslint@10.14.0(jiti@2.7.0)(supports-color@10.2.2)) '@types/backbone': specifier: latest version: 1.4.23 @@ -697,6 +697,12 @@ packages: cpu: [x64] os: [win32] + '@eslint-community/eslint-utils@4.10.1': + resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + '@eslint-community/eslint-utils@4.9.1': resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -957,11 +963,17 @@ packages: '@rtsao/scc@1.1.0': resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==} - '@stylistic/eslint-plugin@5.10.0': - resolution: {integrity: sha512-nPK52ZHvot8Ju/0A4ucSX1dcPV2/1clx0kLcH5wDmrE4naKso7TUC/voUyU1O9OTKTrR6MYip6LP0ogEMQ9jPQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@stylistic/eslint-plugin@6.0.1': + resolution: {integrity: sha512-7nyi2RmGIuzBYGq5C8cFaoQsh+COfo6oHMWCygzg2iaqJJ4RDThaKCMYRkkOUAQWv80R7sbBbpuKZfulH7bFcw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} peerDependencies: eslint: ^9.0.0 || ^10.0.0 + oxlint: ^1.55.0 + peerDependenciesMeta: + eslint: + optional: true + oxlint: + optional: true '@tybys/wasm-util@0.10.1': resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==} @@ -1046,14 +1058,14 @@ packages: eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/types@8.57.1': - resolution: {integrity: sha512-S29BOBPJSFUiblEl6RzPPjJt6w25A6XsBqRVDt53tA/tlL8q7ceQNZHTjPeONt/3S7KRI4quk+yP9jK2WjBiPQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/types@8.72.1': resolution: {integrity: sha512-LmE5IhQet1BWOWEXqBrVtBPsMAOQ6Nzk35d+WLh3mk4EUF33sqlfxjio1MdYeSvKSG5skactKKuixBIKXhL4Rw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/types@8.73.0': + resolution: {integrity: sha512-O/1ytYzflF16QDKXx4/qOXg1IuZp+n7hr9t+S0nv7N/2Tl8rJiNCshztV1gcSUvHbPtoX3+zmNbtSAyVbzxVfw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/typescript-estree@8.72.1': resolution: {integrity: sha512-DAlUoUV93hIvrtIQLwCbmZQYVZwOMhiHJrOVUUIWicFZaIYjTRqlY3I/NZevfkLmSqkNHRu2qYDcq9lrn16oOQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1071,6 +1083,10 @@ packages: resolution: {integrity: sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/visitor-keys@8.73.0': + resolution: {integrity: sha512-k4lsFVpRZICbltkIEEH4hZRkwXkqDF1GHBpClKQOHQY+RkoZAAuyc1ci3I6p+CB6v3U4jaHIUshc4RzzQXZWLg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@unrs/resolver-binding-android-arm-eabi@1.11.1': resolution: {integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==} cpu: [arm] @@ -2833,6 +2849,11 @@ snapshots: '@esbuild/win32-x64@0.28.2': optional: true + '@eslint-community/eslint-utils@4.10.1(eslint@10.14.0(jiti@2.7.0)(supports-color@10.2.2))': + dependencies: + eslint: 10.14.0(jiti@2.7.0)(supports-color@10.2.2) + eslint-visitor-keys: 3.4.3 + '@eslint-community/eslint-utils@4.9.1(eslint@10.14.0(jiti@2.7.0)(supports-color@10.2.2))': dependencies: eslint: 10.14.0(jiti@2.7.0)(supports-color@10.2.2) @@ -3021,15 +3042,15 @@ snapshots: '@rtsao/scc@1.1.0': {} - '@stylistic/eslint-plugin@5.10.0(eslint@10.14.0(jiti@2.7.0)(supports-color@10.2.2))': + '@stylistic/eslint-plugin@6.0.1(eslint@10.14.0(jiti@2.7.0)(supports-color@10.2.2))': dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@10.14.0(jiti@2.7.0)(supports-color@10.2.2)) - '@typescript-eslint/types': 8.57.1 + '@eslint-community/eslint-utils': 4.10.1(eslint@10.14.0(jiti@2.7.0)(supports-color@10.2.2)) + '@typescript-eslint/types': 8.73.0 + '@typescript-eslint/visitor-keys': 8.73.0 + espree: 11.2.0 + picomatch: 4.0.7 + optionalDependencies: eslint: 10.14.0(jiti@2.7.0)(supports-color@10.2.2) - eslint-visitor-keys: 4.2.1 - espree: 10.4.0 - estraverse: 5.3.0 - picomatch: 4.0.3 '@tybys/wasm-util@0.10.1': dependencies: @@ -3132,10 +3153,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/types@8.57.1': {} - '@typescript-eslint/types@8.72.1': {} + '@typescript-eslint/types@8.73.0': {} + '@typescript-eslint/typescript-estree@8.72.1(supports-color@10.2.2)(typescript@6.0.3)': dependencies: '@typescript-eslint/project-service': 8.72.1(supports-color@10.2.2)(typescript@6.0.3) @@ -3167,6 +3188,11 @@ snapshots: '@typescript-eslint/types': 8.72.1 eslint-visitor-keys: 5.0.1 + '@typescript-eslint/visitor-keys@8.73.0': + dependencies: + '@typescript-eslint/types': 8.73.0 + eslint-visitor-keys: 5.0.1 + '@unrs/resolver-binding-android-arm-eabi@1.11.1': optional: true