Skip to content

Commit

Permalink
stylelint: use language-specific heredoc delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Dec 3, 2024
1 parent 1c347df commit 0354ffd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/s/stylelint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ def install
end

test do
(testpath/".stylelintrc").write <<~EOS
(testpath/".stylelintrc").write <<~JSON
{
"rules": {
"block-no-empty": true
}
}
EOS
JSON

(testpath/"test.css").write <<~EOS
(testpath/"test.css").write <<~CSS
a {
}
EOS
CSS

output = shell_output("#{bin}/stylelint test.css 2>&1", 2)
assert_match "Unexpected empty block", output
Expand Down

0 comments on commit 0354ffd

Please sign in to comment.