Skip to content

Commit

Permalink
Adding Vale to shared components for testing (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
atsansone authored Jun 27, 2024
1 parent d79a7a2 commit 67c3c9a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@
build/

build

# We want to ignore our StylesPath *except* for our local
# `vocabularies/Base` directory.

tool/vale/styles/*
!tool/vale/styles/config/

tool/vale/styles/config/*
!tool/vale/styles/config/vocabularies/

tool/vale/styles/config/vocabularies/*
!tool/vale/styles/config/vocabularies/Base
12 changes: 12 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
StylesPath = "tool/vale/styles"

MinAlertLevel = suggestion

IgnoredScopes = code, tt

Vocab = Base, Google

Packages = Google, proselint, Readability

[*]
BasedOnStyles = Vale, Google, proselint, Readability
11 changes: 11 additions & 0 deletions tool/vale/styles/config/vocabularies/Base/accept.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
env
webdev
pubspec
endcomment
endif
endcase
mixin(s)*
check out
codelab(s)*
API(s)*
\b\x60?([a-zA-Z]+_)+[a-zA-Z]+\x60?\b
Empty file.

0 comments on commit 67c3c9a

Please sign in to comment.