-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
49 lines (48 loc) · 1.26 KB
/
index.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
'use strict';
/** @type {import("stylelint").Config} */
module.exports = {
extends: ['stylelint-config-standard'],
rules: {
'selector-pseudo-element-colon-notation': 'single',
'import-notation': 'string',
'font-weight-notation': 'numeric',
'color-function-notation': 'legacy',
'alpha-value-notation': 'number',
'color-no-invalid-hex': true,
'comment-whitespace-inside': 'always',
'max-nesting-depth': 3,
'selector-max-attribute': 3,
'selector-max-combinators': 2,
'selector-max-id': 1,
'selector-max-compound-selectors': 3,
'selector-max-pseudo-class': 3,
'selector-max-type': 3,
'selector-class-pattern': null,
'selector-id-pattern': null,
'keyframes-name-pattern': null,
'selector-max-universal': 1,
'color-named': 'never',
'color-hex-alpha': 'never',
},
overrides: [
{
files: '**/*.{js,ts,tsx}',
customSyntax: 'postcss-styled-syntax',
rules: {
'media-query-no-invalid': null,
},
},
{
files: ['**/*.scss'],
customSyntax: 'postcss-scss',
extends: ['stylelint-config-recommended-scss'],
rules: {
'media-query-no-invalid': null,
},
},
{
files: ['**/*.html'],
customSyntax: 'postcss-html',
},
],
};