Skip to content

Commit

Permalink
Merge pull request #20 from per1234/svglint
Browse files Browse the repository at this point in the history
Configure SVGLint to run all rules
  • Loading branch information
per1234 authored Nov 9, 2023
2 parents 16a100b + 1c15701 commit d4f527b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/check-svg-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
create:
push:
paths:
- ".svglintrc.js"
- "go.mod"
- "go.sum"
- "package.json"
Expand All @@ -13,6 +14,7 @@ on:
- "**.svg"
pull_request:
paths:
- ".svglintrc.js"
- "go.mod"
- "go.sum"
- "package.json"
Expand Down
8 changes: 8 additions & 0 deletions .svglintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// See: https://github.com/birjj/svglint#config
module.exports = {
rules: {
attr: true,
elm: true,
valid: true,
},
};
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -565,4 +565,4 @@ tasks:
npx \
svglint \
'{}' \
+ \
+

0 comments on commit d4f527b

Please sign in to comment.