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 2 days ago

Mouvedia commented 2 days 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": {
                […]
            },
            "additionalProperties": {
                "type": "string",
                "pattern": "TBD"
            },
        }

ref https://json-schema.org/understanding-json-schema/reference/regular_expressions

ota-meshi commented 1 day 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 day 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 15 hours ago

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