-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.precious.toml
More file actions
112 lines (104 loc) · 1.78 KB
/
.precious.toml
File metadata and controls
112 lines (104 loc) · 1.78 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[commands.lint-scripts]
type = "lint"
cmd = [
"pnpm",
"run",
"lint:scripts"
]
invoke = "once"
include = ["./assets/js/**/*", "./bin/**/*.{ts}"]
ok-exit-codes = 0
[commands.stylelint-styles]
type="both"
cmd = [
"pnpm",
"exec",
"stylelint"
]
lint-flags = []
tidy-flags = ["--fix"]
path-args = "absolute-file"
include = ["assets/scss/**"]
ok-exit-codes = 0
[commands.prettier-scripts]
type = "both"
cmd = [
"pnpm",
"exec",
"prettier",
"--write"
]
lint-flags = ["--check"]
tidy-flags = ["--write"]
path-args = "absolute-file"
include = ["assets/js/**", "bin/**/*.{ts}"]
ok-exit-codes = 0
[commands.cspell-content]
type="lint"
include = ["*.md"]
cmd = [
"pnpm",
"run",
"lint:cspell",
]
ok-exit-codes = 0
[commands.prettier-markdown]
type = "both"
include = [
"assets/**/*.md",
"content/**/*.md"
]
cmd = [
"pnpm",
"exec",
"prettier",
"--parser",
"markdown",
"--prose-wrap",
"always",
]
lint-flags = "--check"
tidy-flags = "--write"
ok-exit-codes = 0
lint-failure-exit-codes = 1
ignore-stderr = ["Code style issues"]
[commands.format-content]
type = "tidy"
cmd = [
"pnpm",
"run",
"format:rawhtml"
]
path-args = "absolute-file"
include = ["content/**/*.md"]
ok-exit-codes = 0
[commands.check-shortcode-parity]
type = "lint"
cmd = [
"pnpm",
"run",
"lint:shortcode-parity"
]
invoke = "once"
include = ["layouts/shortcodes/**/*.{html,md}"]
ok-exit-codes = 0
[commands.check-prettierignore-rawhtml]
type = "lint"
cmd = [
"pnpm",
"run",
"lint:prettierignore-rawhtml"
]
invoke = "once"
include = ["content/**/*.md", ".prettierignore"]
ok-exit-codes = 0
[commands.check-internal-links]
type = "lint"
cmd = [
"pnpm",
"run",
"lint:internal-links"
]
path-args = "absolute-file"
include = ["content/**/*.md", "layouts/**/*.html"]
ok-exit-codes = 0