Skip to content

Commit

Permalink
Merge pull request #103 from panoply/next
Browse files Browse the repository at this point in the history
v3.0.1 (patch)
  • Loading branch information
panoply authored Sep 28, 2022
2 parents e618188 + 031dd40 commit 029d2f5
Show file tree
Hide file tree
Showing 13 changed files with 313 additions and 433 deletions.
170 changes: 78 additions & 92 deletions package.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

99 changes: 53 additions & 46 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Below are the available commands exposed to the vscode command palette (`cmd + s

# Workspace Settings

The extension provides various workspace/user settings. The options available to `liquid.format` can be controlled using a `.liquidrc` configuration file or alternatively you can define format option on a `prettify` field in a node `package.json` file. Take a look at the [configuration](#configuration) section for more information.
The extension provides various workspace/user settings. The options available to `liquid.format` can be controlled using a `.liquidrc` configuration file or alternatively you can define format options via a `prettify` field in a node `package.json` file. Take a look at the [configuration](#configuration) section for more information.

By default, it is assumed you are using vscode workspace/user settings.

Expand Down Expand Up @@ -338,7 +338,7 @@ By default, it is assumed you are using vscode workspace/user settings.

### Config Base URL

The `liquid.config.baseUrl` option can be used to define a **relative** directory path for resolving config files. The option will only work in projects that use `.liquidrc` files or define formatting rules on a package.json `prettify` field (see: [Configuration](#configuration)). Consider the following directory layout:
The `liquid.config.baseUrl` option can be used to define a **relative** directory path for resolving config files. The option will only work in projects that use `.liquidrc` files or define formatting rules in as package.json `prettify` field (see: [Configuration](#configuration)). Consider the following directory layout:

```bash
root
Expand Down Expand Up @@ -477,26 +477,28 @@ _Be sure to define only the languages you wish to have formatted by the extensio
{
// Enables formatting of .liquid files
"[liquid]": {
"editor.defaultFormatter": "sissel.shopify-liquid"
"editor.defaultFormatter": "sissel.shopify-liquid",
"editor.formatOnSave": true
},
// Enables formatting of all .js.liquid files
"[liquid-javascript]": {
"editor.defaultFormatter": "sissel.shopify-liquid"
"editor.defaultFormatter": "sissel.shopify-liquid",
"editor.formatOnSave": false
},
// Enables formatting of all .css.liquid files
"[liquid-css]": {
"editor.defaultFormatter": "sissel.shopify-liquid"
"editor.defaultFormatter": "sissel.shopify-liquid",
"editor.formatOnSave": false
},
// Enables formatting of all .scss.liquid files
"[liquid-scss]": {
"editor.defaultFormatter": "sissel.shopify-liquid"
"editor.defaultFormatter": "sissel.shopify-liquid",
"editor.formatOnSave": false
}
}
```

In addition the above defaults, you can also choose to have Prettify beautify other supported languages. Please note, that when extending to the below languages that Prettify is still in its early stages so results may not be perfect.

> Liquid syntax contained in any of these languages is supported!
In addition the above defaults, you can also choose to have Prettify beautify other supported languages. Please note, that when extending to the below languages that Prettify is still in its early stages so results may not be perfect. Liquid syntax contained in any of these languages is supported!

```jsonc
{
Expand Down Expand Up @@ -619,63 +621,68 @@ Below is the **default** rules. It is important to note that if the `liquid.form
```jsonc
{
"ignore": [],
"crlf": false,
"wrap": 0,
"commentIndent": true,
"endNewline": false,
"indentChar": " ",
"crlf": false,
"indentSize": 2,
"preserveComment": false,
"preserveComment": true,
"preserveLine": 2,
"wrap": 0,
"endNewLine": true,
"markup": {
"correct": false,
"commentNewline": false,
"commentNewline": true,
"forceLeadAttribute": false,
"forceAttribute": false,
"forceIndent": false,
"attributeCasing": "preserve",
"attributeValues": "preserve",
"attributeSort": false,
"attributeSortList": [],
"forceAttribute": false,
"forceLeadAttribute": false,
"forceIndent": false,
"preserveText": false,
"correct": false,
"delimiterSpacing": false,
"preserveAttributes": false,
"selfCloseSpace": false,
"quoteConvert": "none"
"preserveText": true,
"quoteConvert": "none",
"selfCloseSpace": false
},
"json": {
"arrayFormat": "default",
"braceAllman": false,
"bracePadding": false,
"objectIndent": "default",
"objectSort": false
},
"style": {
"correct": false,
"braceAllman": false,
"classPadding": false,
"noLeadZero": false,
"sortProperties": false,
"sortSelectors": false,
"sortProperties": false
"selectorList": false,
"comments": false,
"correct": false,
"noLeadZero": false,
"quoteConvert": "none"
},
"script": {
"correct": false,
"braceNewline": false,
"bracePadding": false,
"braceStyle": "none",
"arrayFormat": "indent",
"braceAllman": false,
"caseSpace": false,
"inlineReturn": true,
"elseNewline": false,
"methodChain": 3,
"caseSpace": true,
"endComma": "never",
"arrayFormat": "default",
"objectIndent": "default",
"quoteConvert": "single",
"elseNewline": true,
"functionNameSpace": false,
"functionSpace": false,
"styleGuide": "none",
"ternaryLine": false,
"methodChain": 4,
"functionSpace": true,
"ternaryLine": true,
"braceNewline": false,
"bracePadding": true,
"braceStyle": "none",
"neverFlatten": false,
"noCaseIndent": false,
"noCaseIndent": true,
"noSemicolon": false,
"quoteConvert": "none"
},
"json": {
"arrayFormat": "default",
"braceAllman": false,
"bracePadding": false,
"objectIndent": "default"
"objectIndent": "indent",
"objectSort": false,
"vertical": false,
"variableList": false
}
}
```
Expand Down
Loading

0 comments on commit 029d2f5

Please sign in to comment.