Skip to content

Instantly share code, notes, and snippets.

@hyakt
Last active June 26, 2024 15:45
Show Gist options
  • Save hyakt/aea3a068e9466b2db4362fcab6b4c090 to your computer and use it in GitHub Desktop.
Save hyakt/aea3a068e9466b2db4362fcab6b4c090 to your computer and use it in GitHub Desktop.
;; deno project (for lsp-mode)
((nil . ((lsp-enabled-clients . (deno-ls))
(eval . (deno-fmt-mode))
(eval . (remove-hook 'before-save-hook 'prettier-js 'local))
(eval . (setq lsp-clients-deno-import-map "./import_map.json"))
)))
;; disable prettier
((nil . ((eval . (remove-hook 'before-save-hook 'prettier-js 'local)))))
;; disable prettier and enable eslintd
((nil . ((eval . (remove-hook 'before-save-hook 'prettier-js 'local))
(eval . (add-hook 'vue-mode-hook 'eslintd-fix-mode 'local))
(eval . (add-hook 'js-mode-hook 'eslintd-fix-mode 'local))
(eval . (add-hook 'typescript-mode-hook 'eslintd-fix-mode 'local)))))
;; change projectile test dir (for vue)
((nil . ((eval . (projectile-register-project-type 'vue '("package.json")
:project-file "package.json"
:compile "npm install"
:test "npm test"
:test-suffix ".spec"
:test-dir "tests/unit/")))))
;; biome
((nil
. ((indent-tabs-mode . t)
(eval . (add-hook 'astro-mode-hook (lambda () (add-to-list 'apheleia-mode-alist '(astro-mode . biome)))))
(eval . (add-hook 'css-ts-mode-hook (lambda () (add-to-list 'apheleia-mode-alist '(css-ts-mode . biome)))))
(eval . (add-hook 'json-mode-hook (lambda () (add-to-list 'apheleia-mode-alist '(json-mode . biome))))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment