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
What does your .oxlint.json config file look like?
No config file
What happened?
Enabling the import-plugin starts linting files in the node_modules directory which cannot be disabled. Errors are not detected when the linter is run without the import-plugin enabled.
Steps to reproduce:
Add a library with code that triggers a linting error (we used [email protected])
Include at least one TS file that imports the library (the bug is not triggered without an import; both .ts and .mjs files trigger the issue)
Run oxlint enabling the import-plugin
Expected output:
Finished in 12ms on 1 file with 0 rules using 16 threads.
Found 0 warnings and 0 errors.
Actual output:
× '0'-prefixed octal literals and octal escape sequences are deprecated
╭─[node_modules/temp/lib/temp.js:226:21]
225 │ var dirPath = generateName(affixes, 'd-');
226 │ fs.mkdir(dirPath, 0700, function(err) {
· ────
227 │ if (!err) {
╰────
help: for octal literals use the '0o' prefix instead
....
Finished in 11ms on 1 file with 0 rules using 16 threads.
Found 0 warnings and 5 errors.
Using --ignore-pattern does not seem to have any effect, e.g. the bug is still reproduced when using --ignore-pattern "**/*.js" or --ignore-pattern "node_modules.
What version of Oxlint are you using?
latest
What command did you run?
npx oxlint@latest --import-plugin -A all
What does your
.oxlint.json
config file look like?No config file
What happened?
Enabling the
import-plugin
starts linting files in thenode_modules
directory which cannot be disabled. Errors are not detected when the linter is run without theimport-plugin
enabled.Steps to reproduce:
oxlint
enabling theimport-plugin
Expected output:
Actual output:
Using
--ignore-pattern
does not seem to have any effect, e.g. the bug is still reproduced when using--ignore-pattern "**/*.js"
or--ignore-pattern "node_modules
.package.json
:test.ts
:The text was updated successfully, but these errors were encountered: