-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstylelint.config.js
48 lines (47 loc) · 1.16 KB
/
stylelint.config.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
const ISSTRICTSTYLE = false;
const PLUGINSCONFIG = {
"stylelint-config-standard-scss": true,
"stylelint-config-recess-order": true
};
const RULES = {
"color-function-notation": "legacy",
"color-hex-case": ["upper"],
"color-hex-length": ["long"],
"declaration-block-trailing-semicolon": ["always", {
ignore: ["single-declaration"]
}],
"indentation": "tab",
"linebreaks": "windows",
"max-nesting-depth": null,
"no-invalid-position-at-import-rule": null,
"order/properties-alphabetical-order": null,
"selector-max-compound-selectors": null,
"selector-max-id": 1
};
const IGNOREDFILES = [
".EXAMPLES&REFERENCE/**",
"node_modules/**",
"css/**",
"dist/**",
"*.mjs",
"*.js",
"*.min.js",
"FoundryVTT/**",
"resources/**",
"Draggable.min.js"
];
module.exports = {
"extends": Object.keys(PLUGINSCONFIG).filter((plugin) => PLUGINSCONFIG[plugin]),
"overrides": [
{
files: ["**/*.scss"],
customSyntax: "postcss-scss"
}
],
"rules": RULES,
"ignoreFiles": IGNOREDFILES,
"defaultSeverity": "warning",
"reportNeedlessDisables": true,
"reportInvalidScopeDisables": true,
"reportDescriptionlessDisables": true
};