-
Notifications
You must be signed in to change notification settings - Fork 11
RATY-357 stuck Dependabot workflows #1378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mikkojamG
wants to merge
13
commits into
main
Choose a base branch
from
fix/RATY-357-stuck-dependabot-workflows
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
189589a
ci: bump pnpm version
mikkojamG 642d19d
deps: bump ws Refs: RATY-357
mikkojamG 2e47a03
deps: bump sentry, opentelemetry/core override Refs: RATY-357
mikkojamG 996e0a6
deps: bump eslint to version 10 Refs: RATY-357
mikkojamG aedd803
deps: bump js-yaml Refs: RATY-357
mikkojamG 2d795e5
deps: brace-expansion override Refs: RATY-357
mikkojamG a9d6aa9
deps: qs override Refs: RATY-357
mikkojamG 0adbd1d
chore: pr fixes Refs: RATY-357
mikkojamG d9b3deb
deps: bump eslint-plugin-react-hooks Refs: RATY-357
mikkojamG ccb972b
chore: embedderView url null check Refs: RATY-357
mikkojamG db78c59
deps: replace eslint react plugin Refs: RATY-357
mikkojamG b3b29e0
chore: lint fix Refs: RATY-357
mikkojamG 14590f8
ci: e2e test fix Refs: RATY-357
mikkojamG File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,134 @@ | ||
| import js from '@eslint/js'; | ||
| import eslintReact from '@eslint-react/eslint-plugin'; | ||
| import globals from 'globals'; | ||
| import tsParser from '@typescript-eslint/parser'; | ||
| import reactHooksPlugin from 'eslint-plugin-react-hooks'; | ||
| import jsxA11yPlugin from 'eslint-plugin-jsx-a11y'; | ||
| import importXPlugin from 'eslint-plugin-import-x'; | ||
| import simpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
|
|
||
| const reactFiles = ['src/**/*.{js,jsx}', 'server/**/*.js']; | ||
|
|
||
| export default [ | ||
| { ignores: ['build/', 'dist/', 'node_modules/', 'coverage/'] }, | ||
|
|
||
| // @eslint-react (replaces eslint-plugin-react; supports ESLint 10) | ||
| { files: reactFiles, ...eslintReact.configs['recommended-typescript'] }, | ||
| { files: reactFiles, ...eslintReact.configs['disable-conflict-eslint-plugin-react-hooks'] }, | ||
| { | ||
| files: reactFiles, | ||
| rules: { | ||
| '@eslint-react/exhaustive-deps': 'off', | ||
| '@eslint-react/set-state-in-effect': 'off', | ||
| '@eslint-react/naming-convention-ref-name': 'off', | ||
| '@eslint-react/use-state': 'off', | ||
| '@eslint-react/no-context-provider': 'off', | ||
| '@eslint-react/web-api-no-leaked-timeout': 'off', | ||
| '@eslint-react/rules-of-hooks': 'off', | ||
| '@eslint-react/no-use-context': 'off', | ||
| '@eslint-react/purity': 'off', | ||
| '@eslint-react/no-forward-ref': 'off', | ||
| }, | ||
| }, | ||
|
|
||
| // Shared plugins/rules for src + server | ||
| { | ||
| files: reactFiles, | ||
| languageOptions: { | ||
| parser: tsParser, | ||
| ecmaVersion: 'latest', | ||
| sourceType: 'module', | ||
| parserOptions: { | ||
| ecmaFeatures: { jsx: true }, | ||
| }, | ||
| }, | ||
| plugins: { | ||
| 'react-hooks': reactHooksPlugin, | ||
| 'jsx-a11y': jsxA11yPlugin, | ||
| 'import-x': importXPlugin, | ||
| 'simple-import-sort': simpleImportSort, | ||
| }, | ||
| rules: { | ||
| ...js.configs.recommended.rules, | ||
| ...reactHooksPlugin.configs.flat['recommended-latest'].rules, | ||
| ...jsxA11yPlugin.flatConfigs.recommended.rules, | ||
| ...importXPlugin.flatConfigs.recommended.rules, | ||
| 'array-bracket-spacing': ['warn', 'never'], | ||
| 'max-len': ['warn', { code: 120 }], | ||
| 'no-plusplus': 'error', | ||
| 'no-undef': 'warn', | ||
| 'no-unused-vars': 'warn', | ||
| 'no-useless-assignment': 'off', | ||
| 'jsx-a11y/no-autofocus': 'off', | ||
| 'object-curly-spacing': ['warn', 'always'], | ||
| 'import-x/named': 'off', | ||
| 'simple-import-sort/imports': 'error', | ||
| 'simple-import-sort/exports': 'error', | ||
| // eslint-plugin-react-hooks v7 recommended-latest adds rules that | ||
| // require a wider codebase pass. Disable here to keep the plugin | ||
| // bump scoped; adopt them in follow-up work. | ||
| 'react-hooks/set-state-in-effect': 'off', | ||
| 'react-hooks/refs': 'off', | ||
| 'react-hooks/immutability': 'off', | ||
| 'react-hooks/error-boundaries': 'off', | ||
| }, | ||
| }, | ||
|
|
||
| // src — browser globals | ||
| { | ||
| files: ['src/**/*.{js,jsx}'], | ||
| languageOptions: { | ||
| globals: { | ||
| ...globals.browser, | ||
| globalThis: 'readonly', | ||
| }, | ||
| }, | ||
| }, | ||
|
|
||
| // server — Node.js globals + build-time injected constants | ||
| { | ||
| files: ['server/**/*.js'], | ||
| languageOptions: { | ||
| globals: { | ||
| ...globals.node, | ||
| GIT_TAG: 'readonly', | ||
| GIT_COMMIT: 'readonly', | ||
| }, | ||
| }, | ||
| }, | ||
|
|
||
| // test files — vitest globals | ||
| { | ||
| files: [ | ||
| 'src/**/*.{test,spec}.{js,jsx}', | ||
| 'src/**/__tests__/**/*.{js,jsx}', | ||
| ], | ||
| languageOptions: { | ||
| globals: { | ||
| ...globals.jest, | ||
| vi: 'readonly', | ||
| }, | ||
| }, | ||
| }, | ||
|
|
||
| // Files using CommonJS require() — SSR-safe leaflet loading + test bootstrap | ||
| { | ||
| files: ['src/views/MapView/**/*.js', 'src/setupTests.js'], | ||
| languageOptions: { | ||
| globals: { | ||
| require: 'readonly', | ||
| }, | ||
| }, | ||
| }, | ||
|
|
||
| // serviceWorker — dead CRA scaffolding not currently imported anywhere; | ||
| // process.env is the CRA-era pattern preserved for potential reactivation. | ||
| { | ||
| files: ['src/serviceWorker.js'], | ||
| languageOptions: { | ||
| globals: { | ||
| process: 'readonly', | ||
| }, | ||
| }, | ||
| }, | ||
| ]; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.