This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (results) { | |
return results | |
.flatMap((result) => | |
result.messages.map( | |
(msg) => | |
`${result.filePath}:${msg.line}:${msg.column} ${msg.message} (${msg.ruleId})` | |
) | |
) | |
.join('\n'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add this to .git/hooks/prepare-commit-msg | |
# Then run: | |
# chmod +x .git/hooks/prepare-commit-msg | |
branch_name=$(git rev-parse --abbrev-ref HEAD) | |
ticket_number=$(echo "$branch_name" | grep -oE '[A-Z]{3}-[0-9]+') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"*.tsx": { | |
"alternate": "{}.test.tsx", | |
"type": "source" | |
}, | |
"*.ts": { | |
"alternate": "{}.test.ts", | |
"type": "source" | |
}, | |
"*.test.tsx": { |
I hereby claim:
- I am jwworth on github.
- I am jwworth (https://keybase.io/jwworth) on keybase.
- I have a public key ASCQ0HZP2qsuBnqHaZ4f_RWQmQQbL98412fii0hHEdChZQo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
slides_to_split = File.read('slides.md') | |
slide_data = slides_to_split.split("\n---\n\n") | |
slide_data.each_with_index do |data, index| | |
File.write("slides/#{index.to_s.rjust(2, '0')}.md", data) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"app/javascript/packs/components/*.js": { | |
"command": "component" | |
}, | |
"app/javascript/packs/containers/*.js": { | |
"command": "container" | |
}, | |
"app/javascript/packs/reducers/*.js": { | |
"command": "reducer" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logrotater: | |
# - Daily | |
# - Timestamped | |
# - Doesn't error on missing log files | |
# - Keeps seven copies | |
# - Truncates log files (allows Rails to start writing to the new log file without | |
# a restart) | |
/var/app/current/log/production.log { | |
daily |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"client/app/actions/*.js": { | |
"command": "actions" | |
}, | |
"client/app/containers/*.js": { | |
"command": "container" | |
}, | |
"client/app/components/*.jsx": { | |
"command": "component" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lib/tilex_web/models": { | |
"type": "model" | |
}, | |
"lib/tilex_web/models/*.ex": { | |
"type": "model", | |
"alternate": "test/models/{}_test.exs", | |
"template": [ | |
"defmodule {project|camelcase|capitalize|basename}.{camelcase|capitalize|dot} do", | |
" use {project|camelcase|capitalize|basename}Web, :model", |
NewerOlder