Files
threshold-ui/ui/desktop/.stylelintrc.js
T
Carlos Alcaide Corvo 0a76111944 chore: 🤖 Upgrade Stylelint within desktop client (#1653)
Upgrade Stylelint within desktop client to be consistent with the same
version we use in Admin UI.

✅ Closes: ICU-3276
2023-03-02 11:07:41 -08:00

30 lines
1.1 KiB
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
'use strict';
module.exports = {
extends: ['stylelint-config-standard-scss', 'stylelint-config-prettier-scss'],
rules: {
'max-nesting-depth': 4,
'selector-max-compound-selectors': 4,
'scss/at-extend-no-missing-placeholder': null,
'function-parentheses-space-inside': null,
'property-no-vendor-prefix': null,
'at-rule-no-vendor-prefix': null,
// This is often limited by the DOM and we want to order our declarations by our own standard
'no-descending-specificity': null,
// As a team we want to stick to using kebab-case as our keyframe name pattern, but there are some exceptions
// in which we use keyframes from addons like ember-botify, HDS or other in which they use other naming style.
// This regex checks for these patterns and won't fail.
'keyframes-name-pattern': [
'(hds-)|(ember-notify-)|(^gradient)|(^fadeBackground)',
{
message: (name) => `Expected Keyframe name "${name}" to be kebab-case`,
},
],
},
};