mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(format): void-function +javascript-npm-conf error
Amend: c0a1b9efc9
Close: #8005
This commit is contained in:
@ -102,5 +102,9 @@ This is controlled by `+format-on-save-disabled-modes'."
|
||||
".prettierrc.toml")
|
||||
if (locate-dominating-file default-directory file)
|
||||
return t)
|
||||
(assq 'prettier (+javascript-npm-conf)))
|
||||
(when-let ((pkg (locate-dominating-file default-directory "package.json")))
|
||||
(require 'json)
|
||||
(let ((json-key-type 'alist))
|
||||
(assq 'prettier
|
||||
(json-read-file (expand-file-name "package.json" pkg))))))
|
||||
(apheleia-formatters-indent "--use-tabs" "--tab-width"))))))))
|
||||
|
Reference in New Issue
Block a user