prettier-plugin-toml
Advanced tools
+3
-1
@@ -22,6 +22,8 @@ 'use strict'; | ||
| "Cargo.lock", | ||
| "Cargo.toml.orig", | ||
| "Gopkg.lock", | ||
| "Pipfile", | ||
| "pdm.lock", | ||
| "poetry.lock" | ||
| "poetry.lock", | ||
| "uv.lock" | ||
| ], | ||
@@ -28,0 +30,0 @@ "tmScope": "source.toml", |
+3
-1
@@ -18,6 +18,8 @@ export const languages = [ | ||
| "Cargo.lock", | ||
| "Cargo.toml.orig", | ||
| "Gopkg.lock", | ||
| "Pipfile", | ||
| "pdm.lock", | ||
| "poetry.lock" | ||
| "poetry.lock", | ||
| "uv.lock" | ||
| ], | ||
@@ -24,0 +26,0 @@ "tmScope": "source.toml", |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"languages.js","sourceRoot":"","sources":["../src/languages.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB;QACE,MAAM,EAAE,MAAM;QACd,SAAS,EAAE,MAAM;QACjB,OAAO,EAAE,OAAO;QAChB,SAAS,EAAE;YACT,MAAM;SACP;QACD,oBAAoB,EAAE,GAAG;QACzB,mBAAmB,EAAE;YACnB,MAAM;SACP;QACD,YAAY,EAAE;YACZ,OAAO;SACR;QACD,WAAW,EAAE;YACX,YAAY;YACZ,YAAY;YACZ,SAAS;YACT,UAAU;YACV,aAAa;SACd;QACD,SAAS,EAAE,aAAa;QACxB,gBAAgB,EAAE,MAAM;QACxB,oBAAoB,EAAE,aAAa;KACpC;CACmB,CAAA"} | ||
| {"version":3,"file":"languages.js","sourceRoot":"","sources":["../src/languages.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB;QACE,MAAM,EAAE,MAAM;QACd,SAAS,EAAE,MAAM;QACjB,OAAO,EAAE,OAAO;QAChB,SAAS,EAAE;YACT,MAAM;SACP;QACD,oBAAoB,EAAE,GAAG;QACzB,mBAAmB,EAAE;YACnB,MAAM;SACP;QACD,YAAY,EAAE;YACZ,OAAO;SACR;QACD,WAAW,EAAE;YACX,YAAY;YACZ,iBAAiB;YACjB,YAAY;YACZ,SAAS;YACT,UAAU;YACV,aAAa;YACb,SAAS;SACV;QACD,SAAS,EAAE,aAAa;QACxB,gBAAgB,EAAE,MAAM;QACxB,oBAAoB,EAAE,aAAa;KACpC;CACmB,CAAA"} |
+1
-1
| { | ||
| "name": "prettier-plugin-toml", | ||
| "version": "2.0.2", | ||
| "version": "2.0.3", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "description": "An opinionated `toml` formatter plugin for Prettier", |
+32
-0
@@ -50,2 +50,34 @@ # prettier-plugin-toml   | ||
| ## Parser Options | ||
| ```ts | ||
| interface PrettierOptions { | ||
| // 'Align consecutive entries vertically.' | ||
| alignEntries: boolean // default `false` | ||
| // Align consecutive comments after entries and items vertically. This applies | ||
| // to comments that are after entries or array items. | ||
| alignComments: boolean // default `true` | ||
| // Expand arrays to multiple lines that exceed the maximum column width. | ||
| arrayAutoExpand: boolean // default `true` | ||
| // Collapse arrays that don't exceed the maximum column width and don't | ||
| // contain comments. | ||
| arrayAutoCollapse: boolean // default `true` | ||
| // Omit white space padding from single-line arrays. | ||
| compactArrays: boolean // default `true` | ||
| // Omit white space padding from the start and end of inline tables. | ||
| compactInlineTables: boolean // default `false` | ||
| // Omit white space around `=`. | ||
| compactEntries: boolean // default `false` | ||
| // Indent based on tables and arrays of tables and their subtables, subtables | ||
| // out of order are not indented. | ||
| indentTables: boolean // default `false` | ||
| // Indent entries under tables. | ||
| indentEntries: boolean // default `false` | ||
| // Alphabetically reorder keys that are not separated by empty lines. | ||
| reorderKeys: boolean // default `false` | ||
| // The maximum number of allowed blank lines between entries and tables. | ||
| allowedBlankLines: number // integer, default `1` | ||
| } | ||
| ``` | ||
| ## Sponsors | ||
@@ -52,0 +84,0 @@ |
22904
6.94%423
0.95%109
41.56%