forked from FranciscoKloganB/vitesse-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
38 lines (38 loc) · 1.36 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
30
31
32
33
34
35
36
37
38
module.exports = {
customSyntax: 'postcss-html',
extends: [
// Enables parsing of vue files. Required since Stylelint 14 (along with postcss-html)
'stylelint-config-html/vue',
// Extends both the standard css as well as standard scss configs (includes both packages)
'stylelint-config-standard-scss',
// Enforce a standard order for CSS properties
'stylelint-config-recess-order',
// Tweaks stylelint rules to accept css modules specific syntax.
'stylelint-config-css-modules',
// Turns of all the rules that would interfere with Prettier
'stylelint-config-prettier',
],
rules: {
'max-line-length': [
100,
{
ignorePattern: [
'/(https?://([-\\w\\.]+)+(:\\d+)?(/([\\w/_\\.]*(\\?\\S+)?)?)?)/',
'/^<path.*/>$/',
],
},
],
'at-rule-no-unknown': null,
'selector-max-universal': 1,
'string-no-newline': null,
'scss/at-rule-no-unknown': true,
'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-]+$/,
'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,
},
}