-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.stylelintrc.js
23 lines (23 loc) · 1.01 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
module.exports = {
extends: 'stylelint-config-sass-guidelines',
ignoreFiles: [
'./node_modules/**/*',
'./vendor/**/*',
'./web/**/*',
],
rules: {
// we don't enforce css properties to be sorted alphabetically
'order/properties-alphabetical-order': null,
// stylelint-config-sass-guidelines requires
// you to omit the '.scss' ending in @import statements.
// However, since we are using webpack to build the css,
// and there are also non-scss files (like .js) in folders like /components,
// webpack would try to import them into the scss and produce an error.
// Hence, we need to be able to specify the file ending to actually
// only import the .scss files.
'scss/at-import-partial-extension-blacklist': null,
// This enforces BEM class patterns. Feel free to edit.
'selector-class-pattern':
'^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\\[.+\\])?$',
},
};