|
1 | 1 | module.exports = {
|
2 |
| - "*.css": [ |
3 |
| - "stylelint --fix --cache --allow-empty-input --report-descriptionless-disables --report-invalid-scope-disables --report-needless-disables", |
| 2 | + "dist/*.css": [ |
4 | 3 | "prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
|
5 | 4 | ],
|
6 |
| - "*.{js,json},!package.json": [ |
7 |
| - "eslint --fix --cache --no-error-on-unmatched-pattern" |
8 |
| - ], |
9 |
| - "*.{md,mdx}": [ |
| 5 | + "*.css": [ |
| 6 | + "stylelint --fix --cache --allow-empty-input --report-descriptionless-disables --report-invalid-scope-disables --report-needless-disables", |
10 | 7 | "prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
|
11 |
| - "markdownlint --config .markdownlint.json --fix" |
12 | 8 | ],
|
13 |
| - "package.json": (files) => ([ |
| 9 | + "package.json": (files) => [ |
14 | 10 | "yarn constraints --fix",
|
15 | 11 | "yarn install --refresh-lockfile",
|
16 | 12 | `eslint --fix --cache --no-error-on-unmatched-pattern ${files.join(" ")}`,
|
17 |
| - "git add yarn.lock" |
18 |
| - ]), |
19 |
| - "dist/*.css": [ |
20 |
| - "prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc" |
| 13 | + "git add yarn.lock", |
21 | 14 | ],
|
22 | 15 | "components/*/dist/metadata.json": (files) => {
|
23 | 16 | return [
|
24 |
| - ...(files.map(file => `pajv test --valid -s ./schemas/metadata.schema.json -d "${file}"`) ?? []), |
| 17 | + ...(files.map( |
| 18 | + (file) => |
| 19 | + `pajv test --valid -s ./schemas/metadata.schema.json -d "${file}"`, |
| 20 | + ) ?? []), |
25 | 21 | ];
|
26 | 22 | },
|
27 |
| - ".github/renovate.json": () => ([ |
28 |
| - "yarn dlx --package renovate -- renovate-config-validator" |
29 |
| - ]) |
| 23 | + ".github/renovate.json": () => [ |
| 24 | + "yarn dlx --package renovate -- renovate-config-validator", |
| 25 | + ], |
| 26 | + "*.{js,json}": ["eslint --fix --cache --no-error-on-unmatched-pattern"], |
| 27 | + "*.md": [ |
| 28 | + "prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc", |
| 29 | + "markdownlint --config .markdownlint.json --fix", |
| 30 | + ], |
| 31 | + "*": [ |
| 32 | + "prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc", |
| 33 | + ], |
30 | 34 | };
|
0 commit comments