Closed sebdanielsson closed 3 months ago
same here
TLDR: Problem is typically the same, just different config
1.1.13
Darwin 23.5.0 arm64 arm
Same problem appears on CI machine with amd64 cpu.
Dev dependencies:
"@typescript-eslint/eslint-plugin": "6.12.0",
"@typescript-eslint/parser": "6.12.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.0.0",
"eslint-formatter-gitlab": "5.1.0",
"eslint-import-resolver-alias": "1.1.2",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-filenames": "1.3.2",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-jest-dom": "5.2.0",
"eslint-plugin-prettier": "5.0.1",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-sonarjs": "0.23.0",
"eslint-plugin-storybook": "0.6.15",
"prettier": "3.1.0",
Eslint Config:
module.exports = {
env: {
browser: true,
es6: false,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:sonarjs/recommended',
'plugin:react/recommended',
'plugin:storybook/recommended',
'plugin:react-hooks/recommended',
],
plugins: ['@typescript-eslint', 'prettier', 'import', 'sonarjs'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: '.',
},
settings: {
react: {
version: 'detect',
},
'import/resolver': {
typescript: {
project: './tsconfig.json',
},
},
},
...project-specific rules
}
Run the command:
bunx --bun eslint src
Linting should run.
When running using command DEBUG=eslint:* bunx --bun eslint src
, hangs at line:
eslint:code-path onCodePathStart s1 +0ms
eslint:code-path onCodePathSegmentStart s1_1 +1ms
eslint:code-path s1_1) Program +1ms
Also works fine when using npx or bunx without --bun (so just when using node)
Same issue, on a pipeline with latest slim version of oven. Works locally on 1.1.6.
Same here
works on 1.1.12, but on versions >= 1.1.13 it hangs when forcing bun runtime via bun run --bun
or running on docker (both alpine and slim)
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['@typescript-eslint'],
extends: [
'prettier',
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/strict'
]
Found the problem that is causing ESLint to hang: #13034
What version of Bun is running?
1.1.13+bd6a60512
What platform is your computer?
Darwin 23.5.0 arm64 arm
What steps can reproduce the bug?
packages:
.eslintrc.cjs:
Command:
What is the expected behavior?
Linting should run.
What do you see instead?
Hangs at line:
Command:
DEBUG=eslint:* bunx --bun eslint "src/**/*.{astro,mjs,cjs,js,ts}"
Show logs
``` 2024-06-12T08:57:16.088Z eslint:cli CLI args: [ 'src/**/*.{astro,mjs,cjs,js,ts}' ] 2024-06-12T08:57:16.096Z eslint:cli Using flat config? false 2024-06-12T08:57:16.099Z eslint:cli Running on files 2024-06-12T08:57:16.108Z eslint:file-enumerator Start to iterate files: [ 'src/**/*.{astro,mjs,cjs,js,ts}' ] 2024-06-12T08:57:16.108Z eslint:file-enumerator Glob: src/**/*.{astro,mjs,cjs,js,ts} 2024-06-12T08:57:16.109Z eslint:file-enumerator recursive? true 2024-06-12T08:57:16.109Z eslint:file-enumerator Enter the directory: /Users/sebastian/Git/sebdanielsson.github.io/src 2024-06-12T08:57:16.361Z eslint:rules Loading rule 'block-spacing' (remaining=290) 2024-06-12T08:57:16.364Z eslint:rules Loading rule 'brace-style' (remaining=289) 2024-06-12T08:57:16.365Z eslint:rules Loading rule 'comma-dangle' (remaining=288) 2024-06-12T08:57:16.367Z eslint:rules Loading rule 'consistent-return' (remaining=287) 2024-06-12T08:57:16.372Z eslint:rules Loading rule 'dot-notation' (remaining=286) 2024-06-12T08:57:16.374Z eslint:rules Loading rule 'indent' (remaining=285) 2024-06-12T08:57:16.375Z eslint:rules Loading rule 'init-declarations' (remaining=284) 2024-06-12T08:57:16.376Z eslint:rules Loading rule 'key-spacing' (remaining=283) 2024-06-12T08:57:16.377Z eslint:rules Loading rule 'keyword-spacing' (remaining=282) 2024-06-12T08:57:16.378Z eslint:rules Loading rule 'lines-around-comment' (remaining=281) 2024-06-12T08:57:16.379Z eslint:rules Loading rule 'lines-between-class-members' (remaining=280) 2024-06-12T08:57:16.380Z eslint:rules Loading rule 'max-params' (remaining=279) 2024-06-12T08:57:16.387Z eslint:rules Loading rule 'no-dupe-class-members' (remaining=278) 2024-06-12T08:57:16.388Z eslint:rules Loading rule 'no-empty-function' (remaining=277) 2024-06-12T08:57:16.390Z eslint:rules Loading rule 'no-extra-parens' (remaining=276) 2024-06-12T08:57:16.391Z eslint:rules Loading rule 'no-extra-semi' (remaining=275) 2024-06-12T08:57:16.395Z eslint:rules Loading rule 'no-invalid-this' (remaining=274) 2024-06-12T08:57:16.396Z eslint:rules Loading rule 'no-loop-func' (remaining=273) 2024-06-12T08:57:16.396Z eslint:rules Loading rule 'no-loss-of-precision' (remaining=272) 2024-06-12T08:57:16.396Z eslint:rules Loading rule 'no-magic-numbers' (remaining=271) 2024-06-12T08:57:16.404Z eslint:rules Loading rule 'no-restricted-imports' (remaining=270) 2024-06-12T08:57:16.419Z eslint:rules Loading rule 'no-unused-expressions' (remaining=269) 2024-06-12T08:57:16.420Z eslint:rules Loading rule 'no-useless-constructor' (remaining=268) 2024-06-12T08:57:16.422Z eslint:rules Loading rule 'object-curly-spacing' (remaining=267) 2024-06-12T08:57:16.425Z eslint:rules Loading rule 'prefer-destructuring' (remaining=266) 2024-06-12T08:57:16.441Z eslint:rules Loading rule 'quotes' (remaining=265) 2024-06-12T08:57:16.444Z eslint:rules Loading rule 'semi' (remaining=264) 2024-06-12T08:57:16.445Z eslint:rules Loading rule 'space-before-blocks' (remaining=263) 2024-06-12T08:57:16.446Z eslint:rules Loading rule 'space-infix-ops' (remaining=262) 2024-06-12T08:57:16.454Z eslint:rules Loading rule 'constructor-super' (remaining=261) 2024-06-12T08:57:16.455Z eslint:rules Loading rule 'getter-return' (remaining=260) 2024-06-12T08:57:16.455Z eslint:rules Loading rule 'no-const-assign' (remaining=259) 2024-06-12T08:57:16.455Z eslint:rules Loading rule 'no-dupe-args' (remaining=258) 2024-06-12T08:57:16.455Z eslint:rules Loading rule 'no-dupe-keys' (remaining=257) 2024-06-12T08:57:16.455Z eslint:rules Loading rule 'no-func-assign' (remaining=256) 2024-06-12T08:57:16.456Z eslint:rules Loading rule 'no-import-assign' (remaining=255) 2024-06-12T08:57:16.456Z eslint:rules Loading rule 'no-new-symbol' (remaining=254) 2024-06-12T08:57:16.456Z eslint:rules Loading rule 'no-new-native-nonconstructor' (remaining=253) 2024-06-12T08:57:16.456Z eslint:rules Loading rule 'no-obj-calls' (remaining=252) 2024-06-12T08:57:16.456Z eslint:rules Loading rule 'no-redeclare' (remaining=251) 2024-06-12T08:57:16.457Z eslint:rules Loading rule 'no-setter-return' (remaining=250) 2024-06-12T08:57:16.457Z eslint:rules Loading rule 'no-this-before-super' (remaining=249) 2024-06-12T08:57:16.457Z eslint:rules Loading rule 'no-undef' (remaining=248) 2024-06-12T08:57:16.457Z eslint:rules Loading rule 'no-unreachable' (remaining=247) 2024-06-12T08:57:16.457Z eslint:rules Loading rule 'no-unsafe-negation' (remaining=246) 2024-06-12T08:57:16.458Z eslint:rules Loading rule 'no-var' (remaining=245) 2024-06-12T08:57:16.458Z eslint:rules Loading rule 'prefer-const' (remaining=244) 2024-06-12T08:57:16.459Z eslint:rules Loading rule 'prefer-rest-params' (remaining=243) 2024-06-12T08:57:16.459Z eslint:rules Loading rule 'prefer-spread' (remaining=242) 2024-06-12T08:57:16.462Z eslint:rules Loading rule 'no-array-constructor' (remaining=241) 2024-06-12T08:57:16.464Z eslint:rules Loading rule 'no-unused-vars' (remaining=240) 2024-06-12T08:57:16.466Z eslint:file-enumerator Didn't match: .DS_Store 2024-06-12T08:57:16.467Z eslint:file-enumerator Yield: env.d.ts 2024-06-12T08:57:16.467Z eslint:cli-engine Lint /Users/sebastian/Git/sebdanielsson.github.io/src/env.d.ts 2024-06-12T08:57:16.467Z eslint:linter Linting code for /Users/sebastian/Git/sebdanielsson.github.io/src/env.d.ts (pass 1) 2024-06-12T08:57:16.468Z eslint:linter Verify 2024-06-12T08:57:16.468Z eslint:linter With ConfigArray: /Users/sebastian/Git/sebdanielsson.github.io/src/env.d.ts 2024-06-12T08:57:16.468Z eslint:linter Parsing: /Users/sebastian/Git/sebdanielsson.github.io/src/env.d.ts 2024-06-12T08:57:16.474Z eslint:linter Parsing successful: /Users/sebastian/Git/sebdanielsson.github.io/src/env.d.ts 2024-06-12T08:57:16.475Z eslint:linter Scope analysis: /Users/sebastian/Git/sebdanielsson.github.io/src/env.d.ts 2024-06-12T08:57:16.475Z eslint:linter Scope analysis successful: /Users/sebastian/Git/sebdanielsson.github.io/src/env.d.ts 2024-06-12T08:57:16.481Z eslint:code-path onCodePathStart s1 2024-06-12T08:57:16.481Z eslint:code-path onCodePathSegmentStart s1_1 2024-06-12T08:57:16.481Z eslint:code-path s1_1) Program 2024-06-12T08:57:16.482Z eslint:code-path s1_1) Program:exit 2024-06-12T08:57:16.483Z eslint:code-path onCodePathSegmentEnd s1_1 2024-06-12T08:57:16.483Z eslint:code-path onCodePathEnd s1 2024-06-12T08:57:16.483Z eslint:code-path DOT digraph { node[shape=box,style="rounded,filled",fillcolor=white]; initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25]; final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25]; s1_1[label="Program"]; initial->s1_1->final; } 2024-06-12T08:57:16.483Z eslint:linter Generating fixed text for /Users/sebastian/Git/sebdanielsson.github.io/src/env.d.ts (pass 1) 2024-06-12T08:57:16.483Z eslint:source-code-fixer Applying fixes 2024-06-12T08:57:16.483Z eslint:source-code-fixer shouldFix parameter was false, not attempting fixes 2024-06-12T08:57:16.483Z eslint:file-enumerator Enter the directory: /Users/sebastian/Git/sebdanielsson.github.io/src/components 2024-06-12T08:57:16.484Z eslint:file-enumerator Yield: RaycastStoreCard.astro 2024-06-12T08:57:16.484Z eslint:cli-engine Lint /Users/sebastian/Git/sebdanielsson.github.io/src/components/RaycastStoreCard.astro 2024-06-12T08:57:16.484Z eslint:linter Linting code for /Users/sebastian/Git/sebdanielsson.github.io/src/components/RaycastStoreCard.astro (pass 1) 2024-06-12T08:57:16.484Z eslint:linter Verify 2024-06-12T08:57:16.484Z eslint:linter With ConfigArray: /Users/sebastian/Git/sebdanielsson.github.io/src/components/RaycastStoreCard.astro 2024-06-12T08:57:16.484Z eslint:linter Apply the processor: 'astro/.astro' ```Additional information
Works fine when using npx or bunx without
--bun
.