-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.stylelintrc.js
29 lines (27 loc) · 1.06 KB
/
.stylelintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
'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-notify, 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`,
},
],
},
};