Skip to content

Commit aff9a23

Browse files
committed
minor #19893 [AssetMapper] Add FAQ for code lint/format (Kocal)
This PR was merged into the 6.4 branch. Discussion ---------- [AssetMapper] Add FAQ for code lint/format Hi everyone, Little self-promotional PR for AssetMapper, to indicates how users can lint and format their front assets when using the fresh [`kocal/biome-js-bundle`](https://github.com/Kocal/BiomeJsBundle). It's a bundle around Biome.js, a (much) faster linter (than ESLint) and formatter (than Prettier), which does not requires any configuration to handle JS/TS, JSX/TSX, CSS files... and soon Vue/Svelte files. Thanks! Commits ------- 2a81676 [AssetMapper] Add FAQ for code lint/format
2 parents 6e14857 + 2a81676 commit aff9a23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

frontend/asset_mapper.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,12 @@ files) with component, as those must be used in a build system. See the
799799
`UX Vue.js Documentation`_ for more details about using with the AssetMapper
800800
component.
801801

802+
Can I lint and format my code?
803+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
804+
805+
Yes! You can use `kocal/biome-js-bundle`_ to lint and format your front assets.
806+
It's ultra-fast and requires no configuration to handle your JavaScript, TypeScript, CSS, etc. files.
807+
802808
.. _asset-mapper-ts:
803809

804810
Using TypeScript
@@ -1170,3 +1176,4 @@ command as part of your CI to be warned anytime a new vulnerability is found.
11701176
.. _`package.json configuration file`: https://docs.npmjs.com/creating-a-package-json-file
11711177
.. _Content Security Policy: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
11721178
.. _NelmioSecurityBundle: https://symfony.com/bundles/NelmioSecurityBundle/current/index.html#nonce-for-inline-script-handling
1179+
.. _kocal/biome-js-bundle: https://github.com/Kocal/BiomeJsBundle

0 commit comments

Comments
 (0)