prettier-plugin-apex
Advanced tools
Comparing version 1.0.0-rc.4 to 1.0.0-rc.5
## Unreleased | ||
# 1.0.0-rc.5 | ||
- CLI/Option change: | ||
- Add `apex-insert-final-newline` option ([issue](https://github.com/dangmai/prettier-plugin-apex/issues/83)). | ||
- Remove newline before SOQL expression in ForInit ([issue](https://github.com/dangmai/prettier-plugin-apex/issues/28)). | ||
- Add space before colon in ForEnhancedControl ([issue](https://github.com/dangmai/prettier-plugin-apex/issues/86)). | ||
## 1.0.0-rc.4 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "prettier-plugin-apex", | ||
"version": "1.0.0-rc.4", | ||
"version": "1.0.0-rc.5", | ||
"description": "Salesforce Apex plugin for Prettier", | ||
@@ -37,3 +37,3 @@ "main": "src/index.js", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-config-prettier": "^4.1.0", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-plugin-import": "^2.16.0", | ||
@@ -40,0 +40,0 @@ "eslint-plugin-prettier": "^3.0.1", |
@@ -118,9 +118,13 @@ # Prettier Apex [![Build Status](https://travis-ci.org/dangmai/prettier-plugin-apex.svg)](https://travis-ci.org/dangmai/prettier-plugin-apex) [![npm](https://img.shields.io/npm/v/prettier-plugin-apex.svg)](https://www.npmjs.com/package/prettier-plugin-apex) ![NPM](https://img.shields.io/npm/l/prettier-plugin-apex.svg) [![codecov](https://codecov.io/gh/dangmai/prettier-plugin-apex/branch/master/graph/badge.svg)](https://codecov.io/gh/dangmai/prettier-plugin-apex) [![Join the chat at https://gitter.im/prettier-plugin-apex/community](https://badges.gitter.im/prettier-plugin-apex/community.svg)](https://gitter.im/prettier-plugin-apex/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
| Name | Default | Description | | ||
| --------------- | ------- | -------------------------------------------------------------------------------------------------- | | ||
| `printWidth` | `80` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)) | | ||
| `tabWidth` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)) | | ||
| `useTabs` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tabs)) | | ||
| `requirePragma` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#require-pragma)) | | ||
| `insertPragma` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#insert-pragma)) | | ||
| Name | Default | Description | | ||
| ------------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| `printWidth` | `80` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)) | | ||
| `tabWidth` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)) | | ||
| `useTabs` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tabs)) | | ||
| `requirePragma` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#require-pragma)) | | ||
| `insertPragma` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#insert-pragma)) | | ||
| `apexInsertFinalNewline` | `true` | Whether a newline is added as the last thing in the output | | ||
| `apexAnonymous` | `false` | Whether the Apex files should be parsed in Anonymous mode. See [Anonymous Apex](#anonymous-apex) | | ||
| `apexStandaloneParser` | `none` | If set to `built-in`, Prettier uses the built in standalone parser for better performance. See [Performance Tip](#performance-tips3rd-party-integration).<br>If set to `none`, Prettier invokes the CLI parser for every file. | | ||
| `apexStandalonePort` | `2117` | The port that the standalone Apex parser listens on.<br>Only applicable if `apexStandaloneParser` is `built-in`. | | ||
@@ -127,0 +131,0 @@ ## Editor integration |
@@ -65,6 +65,8 @@ const { | ||
const CATEGORY_APEX = "apex"; | ||
const options = { | ||
apexStandaloneParser: { | ||
type: "choice", | ||
category: "Global", | ||
category: CATEGORY_APEX, | ||
default: "none", | ||
@@ -86,3 +88,3 @@ choices: [ | ||
type: "int", | ||
category: "Global", | ||
category: CATEGORY_APEX, | ||
default: 2117, | ||
@@ -94,6 +96,13 @@ description: | ||
type: "boolean", | ||
category: "Global", | ||
category: CATEGORY_APEX, | ||
default: false, | ||
description: "Treat the code as anonymous Apex", | ||
}, | ||
apexInsertFinalNewline: { | ||
type: "boolean", | ||
category: CATEGORY_APEX, | ||
default: true, | ||
description: | ||
"Whether to insert one newline as the last thing in the output. Default to true.", | ||
}, | ||
}; | ||
@@ -100,0 +109,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16120176
4125
180