2024-05-23 09:42:14 +00:00
|
|
|
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2024-09-07 12:49:27 +00:00
|
|
|
'use strict'
|
2021-11-09 16:45:54 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
extends: [
|
|
|
|
'stylelint-config-recommended-scss',
|
|
|
|
'stylelint-config-standard-scss'
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
'selector-class-pattern': [
|
|
|
|
// extending the kebab-case to accept ConverseJS class names.
|
2021-11-22 13:50:55 +00:00
|
|
|
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*((__|--)[a-z]+(-[a-z0-9]+)*)?$',
|
2021-11-09 16:45:54 +00:00
|
|
|
{
|
|
|
|
message: 'Expected class selector to be kebab-case, or ConverseJS-style.',
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|