Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettier-plugin-apex

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-apex - npm Package Compare versions

Comparing version 1.0.0-rc.4 to 1.0.0-rc.5

7

CHANGELOG.md
## 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 @@

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc