mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 00:55:07 +08:00
32 lines
800 B
JavaScript
32 lines
800 B
JavaScript
|
module.exports = {
|
||
|
extends: ["stylelint-config-standard", "stylelint-prettier/recommended"],
|
||
|
overrides: [
|
||
|
{
|
||
|
files: ["*.css"],
|
||
|
rules: {
|
||
|
"function-no-unknown": [true, { ignoreFunctions: ["theme"] }],
|
||
|
"selector-class-pattern": [
|
||
|
"^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
|
||
|
{
|
||
|
resolveNestedSelectors: true,
|
||
|
message: (selector) =>
|
||
|
`Expected class selector "${selector}" to be kebab-case`,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
files: ["*.module.css"],
|
||
|
rules: {
|
||
|
"selector-class-pattern": [
|
||
|
"^[a-z][a-zA-Z0-9]+$",
|
||
|
{
|
||
|
message: (selector) =>
|
||
|
`Expected class selector "${selector}" to be lowerCamelCase`,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
};
|