Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix overrides.files in config to allow basename glob patterns #6547

Merged
merged 2 commits into from Jan 22, 2023

Commits on Dec 28, 2022

  1. Fix overrides.files in config to allow basename glob patterns

    This change fixes the `overrides.files` property in config to allow
    basename glob patterns like `*.css` or `*.html`.
    
    For example, let's consider `stylelint-config-standard-vue`:
    
    ```js
    {
      overrides: [
        {
          files: ["*.vue", "**/*.vue"],
          extends: [/* ... */],
        },
      ]
    }
    ```
    
    People should expect the `*.vue` pattern matches any `.vue` files in any directories.
    See <https://github.com/ota-meshi/stylelint-config-standard-vue/blob/v1.0.0/lib/index.js#L6>
    
    See also the `basename` option `micromatch`:
    <https://github.com/micromatch/micromatch/tree/4.0.5#optionsbasename>
    ybiquitous committed Dec 28, 2022
    Copy the full SHA
    cc44267 View commit details
    Browse the repository at this point in the history
  2. Add changelog entry

    ybiquitous committed Dec 28, 2022
    Copy the full SHA
    6e29fab View commit details
    Browse the repository at this point in the history