forked from ember-learn/ember-styleguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
24 lines (24 loc) · 868 Bytes
/
.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
module.exports = {
extends: 'stylelint-config-standard',
plugins: [
'stylelint-declaration-strict-value',
'stylelint-order',
'stylelint-scss'
],
rules: {
// Disables this rule to allow case agnostic color hex values
'color-hex-case': null,
// Require the long version of hex colors
'color-hex-length': 'long',
// Disallow ids
'selector-max-id': 0,
// Enforce alphabetical ordering of properties
'order/properties-alphabetical-order': true,
// Require that color, background-color, etc use variables for colors, instead of direct values
'scale-unlimited/declaration-strict-value': [
['/color/'] // We can enforce variables for font-size, margin, etc as well by adding here
],
// Enforce that variables are all lowercase and dasherized
'scss/dollar-variable-pattern': '^[a-z][a-z-]+$'
}
};