-
Notifications
You must be signed in to change notification settings - Fork 6
/
stylelint.config.cjs
44 lines (44 loc) · 1.68 KB
/
stylelint.config.cjs
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
// @see https://www.npmjs.com/package/stylelint-stylus
// @see https://stylelint.io/user-guide/configure/
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-prettier',
// 'stylelint-config-standard-scss',
// 'stylelint-config-prettier-scss',
// @see https://www.npmjs.com/package/stylelint-stylus
// 'stylelint-stylus/standard',
// @see https://www.npmjs.com/package/postcss-html
'stylelint-config-html',
// If you are using Vue.
'stylelint-config-recommended-vue',
'stylelint-config-idiomatic-order',
],
// plugins: [
// // add this plugin here:
// "stylelint-stylus",
// ],
// overrides: [
// {
// files: ["*.stylus", "*.styl", "**/*.stylus", "**/*.styl"],
// customSyntax: "postcss-styl",
// },
// ],
rules: {
// override/add rules settings here, such as:
// "stylus/declaration-colon": "never"
// @see https://stylelint.io/user-guide/rules/list/selector-pseudo-class-no-unknown/#ignorepseudoclasses-regex-string
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['global', 'local'] }],
'value-keyword-case': ['lower', { camelCaseSvgKeywords: true, ignoreFunctions: ['v-bind'] }],
'property-no-vendor-prefix': [true, { ignoreProperties: ['text-size-adjust', 'background-clip'] }],
// @see https://github.com/RockefellerArchiveCenter/styles/pull/73
'selector-class-pattern': [
'^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$',
{
message: 'Class names should match the BEM naming convention',
},
],
// 'no-descending-specificity': [true, { severity: 'warning' }],
'no-descending-specificity': null,
},
};