forked from bro-academy/BAFC5-104
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.stylelintrc.js
More file actions
36 lines (36 loc) · 1.13 KB
/
.stylelintrc.js
File metadata and controls
36 lines (36 loc) · 1.13 KB
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
export default {
extends: ['stylelint-config-standard-scss'],
plugins: ['stylelint-prettier'],
rules: {
'selector-class-pattern': [
'^(?!\\d)([a-z0-9]+(-[a-z0-9]+)*)(__[a-z0-9]+(-[a-z0-9]+)*)?(--[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*){0,2}?$',
{
resolveNestedSelectors: true,
message: (selector) =>
`"${selector}" selector should be written by the BEM naming methodology: https://en.bem.info/methodology/naming-convention/#alternative-naming-schemes`,
},
],
'no-empty-source': null,
'selector-pseudo-element-no-unknown': true,
'media-feature-name-no-unknown': [
true,
{
ignoreMediaFeatureNames: ['min-device-pixel-ratio'],
},
],
'font-family-name-quotes': 'always-unless-keyword',
'alpha-value-notation': 'number',
'color-hex-length': 'long',
'color-named': 'never',
'font-weight-notation': 'numeric',
'selector-max-universal': 1,
'declaration-block-no-redundant-longhand-properties': null,
'function-url-quotes': 'always',
'value-keyword-case': [
'lower',
{
camelCaseSvgKeywords: true,
},
],
},
};