-
-
Notifications
You must be signed in to change notification settings - Fork 871
Labels
A-linterArea - LinterArea - Linter
Description
What version of Oxlint are you using?
1.12.0
What command did you run?
oxlint && eslint . && lerna run lint
What does your .oxlintrc.json config file look like?
Root oxlint
Shared config oxlint in packages/configuration
{
"$schema": "../../node_modules/oxlint/configuration_schema.json",
"categories": {
"pedantic": "error",
"suspicious": "error",
"style": "error",
"perf": "error"
},
"ignorePatterns": ["*.tsx", "public/docs"],
"plugins": ["import", "oxc", "typescript", "unicorn"],
"rules": {
"curly": ["error", "multi"],
"func-names": "off",
"id-length": "off",
"import/default": "off",
"import/exports-last": "off",
"import/max-dependencies": "off",
"import/group-exports": "off",
"import/no-anonymous-default-export": "off",
"import/no-unassigned-import": ["error", { "allow": ["*.css", "*.d.ts", "*.i18n"] }],
"import/prefer-default-export": "off",
"init-declarations": "off",
"max-depth": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"max-params": "off",
"new-cap": "off",
"no-await-expression-member": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-duplicate-imports": "off",
"no-else-return": "off",
"no-magic-numbers": "off",
"no-multi-assign": "off",
"no-namespace": "off",
"no-nested-ternary": "off",
"no-ternary": "off",
"no-unassigned-import": "off",
"prefer-add-event-listener": "off",
"prefer-destructuring": "off",
"prefer-global-this": "off",
"radix": "off",
"sort-imports": "off",
"sort-keys": "off",
"typescript/ban-types": "off",
"typescript/consistent-indexed-object-style": ["error", "record"],
"typescript/consistent-type-imports": "off",
"typescript/no-empty-interface": "off",
"typescript/no-unsafe-function-type": "off",
"unicorn/filename-case": "off",
"unicorn/no-object-as-default-parameter": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-null": "off",
"unicorn/number-literal-case": "off",
"unicorn/numeric-separators-style": ["error", { "onlyIfContainsSeparator": true }],
"unicorn/prefer-dom-node-dataset": "off",
"unicorn/prefer-event-target": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/switch-case-braces": "off",
"vars-on-top": "off",
"yoda": ["error", "never"]
}
}What happened?
This was actually pretty obscure, since it just runs lint on duplicated files, but I generally also lint root files as well in the monorepo and ignore packages folder when I do this and noticed it was running lint on a load of files that were supposed to be ignored. There seems to be a few issues that have occurred since v1.12.0
- "packages" is no longer ignored
- "public/docs" is also no longer ignored, for some reason changing this to
public/docs/**seems to work, but changing topackages/**doesn't seem to do anything, but regardless, I don't want to add**to my glob patterns if I don't need to
This is also reflected in the CI auto-updating the deps
- before: oxlint v1.11.2, lint root files only 3 files as expected https://github.com/Esposter/Esposter/actions/runs/17013581242/job/48232817320#step:7:11
- after: oxlint v1.12.0, lints all(?) files, 1713 files selected https://github.com/Esposter/Esposter/actions/runs/17020072833/job/48247804357#step:7:13
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - Linter
{ "$schema": "./node_modules/oxlint/configuration_schema.json", "extends": ["packages/configuration/.oxlintrc.json"], "ignorePatterns": ["packages"] }