-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylelint.config.js
More file actions
29 lines (29 loc) · 837 Bytes
/
stylelint.config.js
File metadata and controls
29 lines (29 loc) · 837 Bytes
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
export default {
extends: ['stylelint-config-standard-less', 'stylelint-prettier/recommended'],
ignoreFiles: ['node_modules', 'frontend/dist/**'],
plugins: ['stylelint-order'],
rules: {
'block-no-empty': true,
'selector-class-pattern': [
'^[a-zA-Z]*[-_a-zA-Z0-9]*$',
{
message: (selector) =>
`Expected class selector "${selector}" to be camelCase, PascalCase or following BEM naming convention`,
},
],
'keyframes-name-pattern': [
'^[a-z][a-zA-Z0-9]*$',
{
message: (name) => `Expected keyframe name "${name}" to be camelCase`,
},
],
'color-function-notation': 'legacy',
'order/properties-alphabetical-order': true,
},
overrides: [
{
files: ['**/*.less', '**/*.module.less'],
customSyntax: 'postcss-less',
},
],
};