Skip to content

Commit

Permalink
Ignore node_modules on fixers and linters
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe Lumia committed Dec 3, 2021
1 parent 07d0b87 commit cd92a15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[codespell]
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
ignore-words-list = afterall
skip = ./.git,./dist,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock
skip = ./.git,./dist,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock,./node_modules
builtin = clear,informal,en-GB_to_en-US
check-filenames =
check-hidden =
2 changes: 2 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Dependency directory
node_modules
6 changes: 4 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ tasks:
# Using -regex instead of -name to avoid Task's behavior of globbing even when quoted on Windows
# The odd method for escaping . in the regex is required for windows compatibility because mvdan.cc/sh gives
# \ characters special treatment on Windows in an attempt to support them as path separators.
for file in $(find . -regex ".*[.]md"); do
for file in \
$(find . -type d -name node_modules -prune -o -regex ".*[.]md" -print); do
markdown-link-check \
--quiet \
--config "./.markdown-link-check.json" \
Expand All @@ -93,7 +94,8 @@ tasks:
else
npx --package=markdown-link-check --call='
STATUS=0
for file in $(find . -regex ".*[.]md"); do
for file in \
$(find . -type d -name node_modules -prune -o -regex ".*[.]md" -print); do
markdown-link-check \
--quiet \
--config "./.markdown-link-check.json" \
Expand Down

0 comments on commit cd92a15

Please sign in to comment.