35 lines
746 B
JavaScript
35 lines
746 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2025 F7cloud GmbH and F7cloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
module.exports = {
|
|
extends: '@f7cloud/stylelint-config',
|
|
plugins: ['stylelint-use-logical'],
|
|
// TODO: Remove this when the F7cloud stylelint config is updated to include this rule (planned)
|
|
rules: {
|
|
'csstools/use-logical': [
|
|
'always',
|
|
{
|
|
severity: 'error',
|
|
// Only lint LTR-RTL properties for now
|
|
except: [
|
|
// Position properties
|
|
'top',
|
|
'bottom',
|
|
// Position properties with directional suffixes
|
|
/-top$/,
|
|
/-bottom$/,
|
|
// Size properties
|
|
'width',
|
|
'max-width',
|
|
'min-width',
|
|
'height',
|
|
'max-height',
|
|
'min-height',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
}
|