forked from PastVu/pastvu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
30 lines (29 loc) · 1.23 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
/**
* Copyright: The PastVu contributors.
* GNU Affero General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/agpl.txt)
*/
module.exports = {
'extends': 'stylelint-config-standard',
'ignoreFiles': ['**/*.{eot,ttf,woff}'],
'customSyntax': 'postcss-less',
'rules': {
'indentation': 4,
// If we have Autoprefixer one day, remove *-no-vendor-prefix rules
// and run stylelint with --fix param to strip prefixes.
'property-no-vendor-prefix': null,
'value-no-vendor-prefix': null,
'at-rule-no-vendor-prefix': null,
'color-function-notation': 'legacy',
'string-quotes': 'single',
'font-family-no-missing-generic-family-keyword': [true, {
ignoreFontFamilies: ['Glyphicons Halflings', 'UCondensed', '/^Material Icons/'],
}],
'selector-class-pattern': '^([a-z]+).*$', // We have a mix of snake_case, lowerCamelCase and kebab-case
'selector-id-pattern': '^[a-z][a-zA-Z0-9]+$', // lowerCamelCase
'keyframes-name-pattern': '^[a-z][a-zA-Z0-9]+$', // lowerCamelCase
'no-descending-specificity': null,
'function-url-quotes': 'never',
'max-line-length': null,
'block-no-empty': null,
},
};