514136c99a
Problem: Prettier was not running when I saved Emacs buffers. Why? - prettier-js-mode needs needs node; lorri exposes node to direnv; direnv exposes node to Emacs; lorri was not working as expected. Solution: Now that I'm using nix-buffer, I can properly expose node (and other dependencies) to my Emacs buffers. Now Prettier is working. Commentary: Since prettier hadn't worked for so long, I stopped thinking about it. As such, I did not include it as a dependency in boilerplate/typescript. I added it now. I retroactively ran prettier across a few of my frontend projects to unify the code styling. I may need to run... ```shell $ cd ~/briefcase $ nix-shell $ npx prettier --list-different "**/*.{js,ts,jsx,tsx,html,css,json}" ``` ...to see which files I should have formatted. |
||
---|---|---|
.. | ||
misc | ||
.envrc | ||
balanced-binary-tree.py | ||
bst-checker.py | ||
cafe-order-checker.py | ||
delete-node.py | ||
dir-locals.nix | ||
find-duplicate-optimize-for-space-beast-mode.py | ||
find-duplicate-optimize-for-space.ts | ||
find-rotation-point.ts | ||
graph-coloring.ts | ||
highest-product-of-3.py | ||
inflight-entertainment.ts | ||
merge-sorted-arrays.ts | ||
merging-ranges.py | ||
mesh-message.py | ||
package-lock.json | ||
package.json | ||
permutation-palindrome.py | ||
product-of-other-numbers.py | ||
recursive-string-permutations.ts | ||
reverse-string-in-place.ts | ||
reverse-words.py | ||
second-largest-item-in-bst.ts | ||
shell.nix | ||
shuffle.py | ||
stock-price.py | ||
todo.org | ||
top-scores.py | ||
top-scores.ts | ||
tsconfig.json | ||
word-cloud.py |