Replies: 17 comments
-
Thanks for the issue @Juansecu, but I can't seem to reproduce this. I checked out your repo locally, installed dependencies with |
Beta Was this translation helpful? Give feedback.
-
I presume you want to ignore the dir totally, in your eslint.config.js file, if an ignores key is used without any other keys in the configuration object, then the patterns act as global ignores. see the docs: https://eslint.org/docs/latest/use/configure/ignore#ignoring-files if it does not work for you, please run |
Beta Was this translation helpful? Give feedback.
-
I also can't reproduce this. (on Windows, running If you could run eslint with the |
Beta Was this translation helpful? Give feedback.
-
Also, if you're still getting the same behavior (ESLint does not stop its execution automatically) with eslint v9.1.0, could you please also try with eslint v9.0.0? That would help us determine if the problem you're experiencing might have been caused by a change introduced in eslint v9.1.0. |
Beta Was this translation helpful? Give feedback.
-
@fasttime What happens if you try to execute the command with PNPM? Because I also use PNPM for running NPM scripts. |
Beta Was this translation helpful? Give feedback.
-
@Juansecu What command do you run exactly? |
Beta Was this translation helpful? Give feedback.
-
@fasttime I run the command |
Beta Was this translation helpful? Give feedback.
-
I don't have Webstorm installed, but when I run |
Beta Was this translation helpful? Give feedback.
-
@fasttime Jum, I will have to try to run the command from the CLI later today, and I will try the suggested things by @aladdin-add and @mdjermanovic, too. |
Beta Was this translation helpful? Give feedback.
-
@aladdin-add @mdjermanovic This is the output of the command using the
|
Beta Was this translation helpful? Give feedback.
-
@fasttime Maybe it is the error printed in the logs using the |
Beta Was this translation helpful? Give feedback.
-
@mdjermanovic Version 9.0.0 of ESLint does not work, either. |
Beta Was this translation helpful? Give feedback.
-
have you tried the global ignores? export default [
{ignores: ['public/']},
....
] |
Beta Was this translation helpful? Give feedback.
-
@aladdin-add Sorry, maybe I'm missing something, but in my configuration is included as you mention, so any file inside the public folder is not covered. Should I modify it? If so, what value should I put there? |
Beta Was this translation helpful? Give feedback.
-
global ignores is special, please see the docs: https://eslint.org/docs/latest/use/configure/ignore#ignoring-files |
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed info @Juansecu. Syntax errors are raised by the parser for a number of reasons, but normally they don't cause ESLint to run indefinitely. In your case, the error is coming from file |
Beta Was this translation helpful? Give feedback.
-
Okay @fasttime @aladdin-add @mdjermanovic, so I misread the documentation for ignoring files, and just created another object for ignoring the entire I'm just curious... why must it be separated from other configuration properties? |
Beta Was this translation helpful? Give feedback.
-
Environment
Node version: 20.12.2
npm version: PNPM 8.15.7
Local ESLint version: 9.1.0
Global ESLint version: N/A
Operating System: Windows
What parser are you using?
Default (Espree)
What did you do?
Configuration
I ran the following command to analyze linter issues with my Node.js ES modules (mjs), and ESLint does not stop the execution.
What did you expect to happen?
I expected ESLint to stop its execution automatically and show me the issues with my source code.
What actually happened?
ESLint does not stop its execution automatically.
Link to Minimal Reproducible Example
https://github.com/OpenToonix/OpenToonix-Assets-Gateway
Participation
Additional comments
No response
Beta Was this translation helpful? Give feedback.
All reactions