File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,31 +198,34 @@ Check and style `many languages <https://biomejs.dev/internals/language-support/
198198 "useIgnoreFile" : true ,
199199 "defaultBranch" : " main"
200200 },
201- "assist" : {
202- "actions" : {
203- "source" : {
204- "organizeImports" : " on"
205- }
206- }
207- },
208201 "formatter" : {
209202 "indentStyle" : " space" ,
210- "indentWidth" : 4 ,
211203 "lineWidth" : 119
212- },
213- "json" : {
214- "formatter" : {
215- "indentWidth" : 2
216- }
217- },
218- "linter" : {
219- "enabled" : true ,
220- "rules" : {
221- "recommended" : true
222- }
223204 }
224205 }
225206
207+ By default, Biome runs the formatter, linter (with recommended preset) and assist (with recommended actions).
208+
209+ Skip formatting of generated files and OCDS schema:
210+
211+
212+ .. code-block :: json
213+ :emphasize-lines: 4
214+
215+ "formatter" : {
216+ "indentStyle" : " space" ,
217+ "lineWidth" : 119 ,
218+ "includes" : [" **" , " !path/pattern" ]
219+ },
220+
221+ Skip vendored files and mis-parsed files, like Django and Jinja templates that use ``{% … %} `` tags:
222+
223+ .. code-block :: json
224+
225+ "files" : {
226+ "includes" : [" **" , " !path/pattern" ]
227+ }
228+
226229 Run Biome with :ref: `pre-commit<linting-pre-commit> `:
227230
228231.. code-block :: yaml
You can’t perform that action at this time.
0 commit comments