-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
50 lines (45 loc) · 1.53 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
50
export default {
/**
* @see {@link https://stylelint.io/user-guide/configure#extends}
* @see {@link https://www.npmjs.com/package/stylelint-config-standard}
* @see {@link https://www.npmjs.com/package/@stylistic/stylelint-config}
*/
extends: ["stylelint-config-standard", "@stylistic/stylelint-config"],
/**
* @see {@link https://stylelint.io/user-guide/configure#plugins}
* @see {@link https://www.npmjs.com/package/stylelint-order}
*/
plugins: ["stylelint-order"],
rules: {
/**
* Require an empty line before at-rules.
*
* @see {@link https://stylelint.io/user-guide/rules/at-rule-empty-line-before/}
*/
"at-rule-empty-line-before": [
"always",
{
except: ["blockless-after-same-name-blockless", "first-nested"],
ignore: ["after-comment"],
},
],
/**
* Specify the alphabetical order of properties within declaration blocks.
*
* @see {@link https://github.com/hudochenkov/stylelint-order/blob/master/rules/properties-alphabetical-order/README.md}
*/
"order/properties-alphabetical-order": true,
/**
* Specify Unix or Windows linebreaks.
*
* @see {@link https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/linebreaks}
*/
"@stylistic/linebreaks": "unix",
/**
* Disallow the Unicode Byte Order Mark.
*
* @see {@link https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/unicode-bom}
*/
"@stylistic/unicode-bom": "never",
},
};