Merge branch 'fix-beautify-file-option-for-lua-files' of https://github.com/JackTreble/atom-beautify into JackTreble-fix-beautify-file-option-for-lua-files

This commit is contained in:
Glavin Wiechert 2018-03-01 23:22:34 -04:00
commit e979422c51
6 changed files with 4266 additions and 0 deletions

View File

@ -1,4 +1,5 @@
# Next # Next
- Fix Beauify File option for .lua files
- Switch to Remark as a default markdown beautifier due to a more active state of its community compared to Tidy Markdown ([#2004](https://github.com/Glavin001/atom-beautify/pull/2004)). - Switch to Remark as a default markdown beautifier due to a more active state of its community compared to Tidy Markdown ([#2004](https://github.com/Glavin001/atom-beautify/pull/2004)).
This is a __breaking change__ for Tidy Markdown users: This is a __breaking change__ for Tidy Markdown users:
- list indentation is now four characters per level (three spaces after `-` for unordered lists and two spaces after `N.` in ordered lists) - list indentation is now four characters per level (three spaces after `-` for unordered lists and two spaces after `N.` in ordered lists)

View File

@ -7718,6 +7718,8 @@ Maximum amount of characters per line (0 = disable) (Supported by Pretty Diff)
| `default_beautifier` | :white_check_mark: | | `default_beautifier` | :white_check_mark: |
| `beautify_on_save` | :white_check_mark: | | `beautify_on_save` | :white_check_mark: |
| `end_of_line` | :white_check_mark: | | `end_of_line` | :white_check_mark: |
| `indent_char` | :white_check_mark: |
| `indent_size` | :white_check_mark: |
**Description**: **Description**:
@ -7806,6 +7808,58 @@ Override EOL from line-ending-selector (Supported by Lua beautifier)
} }
``` ```
##### [Indent char](#indent-char)
**Namespace**: `lua`
**Key**: `indent_char`
**Default**: ` `
**Type**: `string`
**Supported Beautifiers**: [`Lua beautifier`](#lua-beautifier)
**Description**:
Indentation character (Supported by Lua beautifier)
**Example `.jsbeautifyrc` Configuration**
```json
{
"lua": {
"indent_char": " "
}
}
```
##### [Indent size](#indent-size)
**Namespace**: `lua`
**Key**: `indent_size`
**Default**: `4`
**Type**: `integer`
**Supported Beautifiers**: [`Lua beautifier`](#lua-beautifier)
**Description**:
Indentation size/length (Supported by Lua beautifier)
**Example `.jsbeautifyrc` Configuration**
```json
{
"lua": {
"indent_size": 4
}
}
```
#### [Markdown](#markdown) #### [Markdown](#markdown)
**Supported Beautifiers**: [`Prettier`](#prettier) [`Remark`](#remark) [`Tidy Markdown`](#tidy-markdown) **Supported Beautifiers**: [`Prettier`](#prettier) [`Remark`](#remark) [`Tidy Markdown`](#tidy-markdown)
@ -16460,6 +16514,58 @@ Aligns columns by the alignment tabs for environments specified (Supported by La
### Lua beautifier ### Lua beautifier
##### [Indent size](#indent-size)
**Namespace**: `lua`
**Key**: `indent_size`
**Default**: `4`
**Type**: `integer`
**Supported Beautifiers**: [`Lua beautifier`](#lua-beautifier)
**Description**:
Indentation size/length (Supported by Lua beautifier)
**Example `.jsbeautifyrc` Configuration**
```json
{
"lua": {
"indent_size": 4
}
}
```
##### [Indent char](#indent-char)
**Namespace**: `lua`
**Key**: `indent_char`
**Default**: ` `
**Type**: `string`
**Supported Beautifiers**: [`Lua beautifier`](#lua-beautifier)
**Description**:
Indentation character (Supported by Lua beautifier)
**Example `.jsbeautifyrc` Configuration**
```json
{
"lua": {
"indent_char": " "
}
}
```
##### [End of line](#end-of-line) ##### [End of line](#end-of-line)
**Namespace**: `lua` **Namespace**: `lua`

4117
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -163,6 +163,10 @@
{ {
"name": "Andrew Andrianov", "name": "Andrew Andrianov",
"url": "https://github.com/nekromant" "url": "https://github.com/nekromant"
},
{
"name": "Jack Treble",
"url": "https://github.com/JackTreble"
} }
], ],
"engines": { "engines": {

View File

@ -21,6 +21,15 @@ module.exports = {
defaultBeautifier: "Lua beautifier" defaultBeautifier: "Lua beautifier"
options: options:
indent_size:
type: 'integer'
default: null
minimum: 0
description: "Indentation size/length"
indent_char:
type: 'string'
default: null
description: "Indentation character"
end_of_line: end_of_line:
type: 'string' type: 'string'
default: "System Default" default: "System Default"

View File

@ -4457,6 +4457,35 @@
"ttslua" "ttslua"
], ],
"properties": { "properties": {
"indent_size": {
"type": "integer",
"default": null,
"minimum": 0,
"description": "Indentation size/length (Supported by Lua beautifier)",
"title": "Indent size",
"beautifiers": [
"Lua beautifier"
],
"key": "indent_size",
"language": {
"name": "Lua",
"namespace": "lua"
}
},
"indent_char": {
"type": "string",
"default": null,
"description": "Indentation character (Supported by Lua beautifier)",
"title": "Indent char",
"beautifiers": [
"Lua beautifier"
],
"key": "indent_char",
"language": {
"name": "Lua",
"namespace": "lua"
}
},
"end_of_line": { "end_of_line": {
"type": "string", "type": "string",
"default": "System Default", "default": "System Default",