| Age | Commit message (Collapse) | Author |
|
Add `js-json-mode` to `apheleia-formatters-indent` with the same
behavior as `json-mode`.
|
|
Trivial change - other modes include `-ts-mode` variants, but not yaml.
This fix is confirmed to work for me, taking the indent level from
`yaml-indent-offset`.
---------
Co-authored-by: James Ferguson <james@faff.org>
|
|
* `apheleia-npx` would use an incorrect path for the Yarn PnP ESM
loader.
* `apheleia-npx` did not correctly guard against word splitting.
* `apheleia-npx` was sometimes not able to find formatters in a Yarn PnP
project if there was also a node_modules folder at the root of the
project. Unfortunately, many tools (including
[Prettier](https://github.com/prettier/prettier/issues/13032)) will
create a cache folder in `node_modules` even in Yarn PnP projects. The
presence of any `node_modules` folders are irrelevant when a `.pnp.cjs`
file is present.
---------
Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
|
|
Closes #274
|
|
Remove unused artifact from #224
|
|
Add [ruby-syntax-tree](https://github.com/ruby-syntax-tree/syntax_tree)
as an available formatter. Include support for finding a [`.streerc`
file](https://github.com/ruby-syntax-tree/syntax_tree#configuration).
---------
Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
|
|
Pass CSS, GraphQL, HTML, Ruby, Svelte, and YAML mode indent setting to
formatters that make use of it through `apheleia-formatters-js-indent`.
`prettier-markdown` and `prettier-scss` attempt to make use of this too,
but `markdown-mode` and `scss-mode` don't have such a setting that I can
tell. Left the uses in place for `indent-tabs-mode` support anyway.
BTW the `apheleia-formatters-js-indent` name and its description does
not seem quite spot on, as it was already being (partially
unsuccessfully) (ab?)used by some modes for which "JavaScript like"ness
is a bit of a stretch :)
Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
|
|
https://docs.python.org/3/library/json.html#module-json.tool
|
|
|
|
|
|
|
|
|
|
https://github.com/emacs-typescript/typescript.el/blob/v0.4/typescript-mode.el#L635-L639
https://github.com/emacs-mirror/emacs/blob/emacs-29.1/lisp/progmodes/typescript-ts-mode.el#L38-L43
---------
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
|
https://github.com/melpa/melpa/pull/8809#issuecomment-1807218549
|
|
CLOSES #212
PR to restructure apheleia to make it more modular and improve some of
the separation of concerns. Before merging we should make sure that we
don't reintroduce the issues from #181.
|
|
For
https://github.com/radian-software/apheleia/discussions/208#discussioncomment-7086819
|
|
|