forked from cultureamp/kaizen-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylelint.config.js
39 lines (39 loc) · 1.04 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
37
38
39
module.exports = {
extends: ["./packages/stylelint-plugin/dev-config.js"],
overrides: [
{
files: ["*.scss", "**/*.scss"],
customSyntax: "postcss-scss",
},
],
rules: {
"string-quotes": "double",
"no-duplicate-at-import-rules": true,
"block-no-empty": true,
"block-opening-brace-space-before": "always",
"declaration-bang-space-after": "never",
"comment-no-empty": true,
"no-duplicate-selectors": true,
"font-family-no-duplicate-names": true,
/**
* "selector-pseudo-class-no-unknown": true
* https://stylelint.io/user-guide/rules/selector-pseudo-class-no-unknown
*
* Once we are certain normalise is working across all our repos, we should feel
* comfortable in removing "global" from "ignorePseudoClasses"
*/
"selector-pseudo-class-no-unknown": [
true,
{
ignorePseudoClasses: ["global", "export"],
},
],
"no-extra-semicolons": true,
"declaration-no-important": [
true,
{
severity: "error",
},
],
},
}