refactor(php-cs-fixer): Move rules to external config file

This commit is contained in:
kj
2025-10-20 14:22:46 -03:00
parent 9a5f61bbdd
commit cb8b34bae7
2 changed files with 26 additions and 12 deletions

View File

@ -32,18 +32,8 @@
(use-package php-cs-fixer
:custom
(php-cs-fixer-rules-level-part-options (list (json-encode '(("@PSR12" . t)
("ordered_imports" . (("sort_algorithm" . "alpha")))
("concat_space" . (("spacing" . "one")))
("whitespace_after_comma_in_array" . t)
("align_multiline_comment" . t)
("no_unused_imports" . t)
("phpdoc_align" . t)
("phpdoc_indent" . t)
("no_useless_return" . t)
("return_assignment" . t)
("trailing_comma_in_multiline" . t)))))
(php-cs-fixer-rules-fixer-part-options '())
(php-cs-fixer-config-option (expand-file-name
(concat user-emacs-directory "php-cs-fixer-config")))
;; :hook (before-save . php-cs-fixer-before-save)
)