-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.js
45 lines (44 loc) · 1.04 KB
/
index.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
40
41
42
43
44
45
'use strict'
module.exports = {
overrides: [
{
files: ['*.vue', '**/*.vue'],
extends: ['stylelint-config-standard', 'stylelint-config-html']
},
{
files: ['*.css', '**/*.css'],
extends: ['stylelint-config-standard', 'stylelint-config-prettier']
}
],
rules: {
'color-hex-length': 'long',
'selector-class-pattern':
'^(rpl|tide)-[a-z0-9]+(?:-[a-z0-9$]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?(?:--[a-z0-9]+(?:-[a-z0-9]+)*)?(?:\\[.+\\])?$',
'custom-property-pattern': '(rpl|local)-[a-z0-9]+(?:-[a-z0-9$()]+)+',
'value-keyword-case': [
'lower',
{
ignoreProperties: ['--rpl-type-font-family']
}
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['for', 'each']
}
],
'function-no-unknown': [
true,
{
ignoreFunctions: ['$', 'v-bind']
}
],
'declaration-block-no-redundant-longhand-properties': [
true,
{
ignoreShorthands: ['padding', 'margin']
}
],
'import-notation': null
}
}