stylelint / stylelint-demo

The online demo on the Stylelint website
https://stylelint.io/demo/
MIT License
15 stars 8 forks source link

`stylelintrc.json` should ignore namespaced rules #438

Open Mouvedia opened 1 week ago

Mouvedia commented 1 week ago

What is the problem you're trying to solve?

config tab

{
  "plugins": "@stylistic/stylelint-plugin",
  "rules": {
    "@stylistic/string-quotes": "single"
  }
}

What solution would you like to see?

        "rules": {
            "properties": {
                "alpha-value-notation": {
                […]
            },
            "patternProperties": {
              // TBD
            },
        }

ref https://json-schema.org/understanding-json-schema/reference/object#patternProperties

ota-meshi commented 1 week ago

Hmm... Is this an issue with the JSON schema registered in the Json Schema Store? https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/stylelintrc.json

Mouvedia commented 1 week ago

Is this an issue with the JSON schema registered in the Json Schema Store?

No it's not. I just need to update https://github.com/stylelint/stylelint-demo/blob/main/src/schema/stylelintrc.json I currently don't have time to check the pattern allowed for namespaces.

Do we inherit npm scope restrictions? i.e.

  • must be less than or equal to 214 characters
  • can begin with a dot or an underscore
  • can't contain any non-URL-safe characters
  • can't contain uppercase letters
ota-meshi commented 1 week ago

Oh, I didn't know I had that inside the project. Thank you for letting me know that 😅

Mouvedia commented 3 days ago

Oh, I didn't know I had that inside the project.

It was a joint effort between @ybiquitous and me. see #425

@ota-meshi can you add the status: wip label?