Skip to content

linter: ignorePatterns broken since v1.12.0, last working on v1.11.2 #13204

@Q16solver

Description

@Q16solver

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

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "extends": ["packages/configuration/.oxlintrc.json"],
  "ignorePatterns": ["packages"]
}

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 to packages/** 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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions