You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue refers to an inconsistency of the sorting of the "import/order" rule, presumably because of different operating systems. It is a svelte project in typescript.
This works on the Github Runner (Ubuntu) that runs the linting on every commit (npm ci && npm run lint). The problem is that on my machine (Windows), the linter reports an error that the imports are sorted incorrectly: error `./edit-dialog.svelte` import should occur before import of `$lib/validators` import/order
After running eslint --fix on my windows machine, the imports are sorted like this:
When making a commit with this import order, the linting on github fails with the error: ./edit-dialog.svelte` import should occur after import of `$lib/validators
Is there something wrong with my configuration?
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Yes, I am having the same issue where I am getting error reports by import/order when running in Github Runners using ubuntu-latest. On my developer notebook (macOS M1) or a macos-latest runner they both pass happily.
Looks like it an operation system or architecture behaviour different for sorting. I only couldn't figure out anything obvious in order.js
Node version: 18.19.1
npm version: 9.6.6
Local ESLint version: v8.57.0
Global ESLint version: v8.57.0
Operating System: Windows 10.0.22631 Build 22631 and Ubuntu 22.04.4 (LTS)
.eslintrc.cjs
package.json
The issue refers to an inconsistency of the sorting of the "import/order" rule, presumably because of different operating systems. It is a svelte project in typescript.
This is a minimal example:
We expected the imports to be sorted like this (using
eslint --fix
):This works on the Github Runner (Ubuntu) that runs the linting on every commit (
npm ci && npm run lint
). The problem is that on my machine (Windows), the linter reports an error that the imports are sorted incorrectly:error `./edit-dialog.svelte` import should occur before import of `$lib/validators` import/order
After running
eslint --fix
on my windows machine, the imports are sorted like this:When making a commit with this import order, the linting on github fails with the error:
./edit-dialog.svelte` import should occur after import of `$lib/validators
Is there something wrong with my configuration?
Thank you in advance!
The text was updated successfully, but these errors were encountered: