-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylelint.config.js
36 lines (36 loc) · 1.33 KB
/
stylelint.config.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
30
31
32
33
34
35
36
module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-prettier', 'stylelint-config-recess-order'],
plugins: ['stylelint-scss'],
rules: {
indentation: 2,
'string-quotes': 'single',
'at-rule-no-unknown': null,
'no-descending-specificity': null,
// ===
// PRETTIER
// ===
// HACK: to compensate for https://github.com/shannonmoeller/stylelint-config-prettier/issues/4
// Modifying setting from Standard: https://github.com/stylelint/stylelint-config-standard/blob/7b76d7d0060f2e13a331806a09c2096c7536b0a6/index.js#L6
'at-rule-empty-line-before': [
'always',
{
except: ['blockless-after-same-name-blockless', 'first-nested'],
ignore: ['after-comment'],
ignoreAtRules: ['else'],
},
],
// ===
// SCSS
// ===
'scss/dollar-variable-colon-space-after': 'always',
'scss/dollar-variable-colon-space-before': 'never',
'scss/dollar-variable-no-missing-interpolation': true,
'scss/dollar-variable-pattern': /^[a-z-1-9]+$/,
'scss/double-slash-comment-whitespace-inside': 'always',
'scss/operator-no-newline-before': true,
'scss/operator-no-unspaced': true,
'scss/selector-no-redundant-nesting-selector': true,
// Allow SCSS and CSS module keywords beginning with `@`
'scss/at-rule-no-unknown': true,
},
};