# jscs-require-space-inside-curly-braces

> JSCS plugin to enforce space after open curly braces

Latest version **0.0.3** (published 2015-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install jscs-require-space-inside-curly-braces
pnpm add jscs-require-space-inside-curly-braces
yarn add jscs-require-space-inside-curly-braces
bun add jscs-require-space-inside-curly-braces
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-04-20 |
| First published | 2015-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dominik Kroutvar |
| Maintainers | dominik0711 |
| Keywords | jscs, whitespace, curly, brackets, braces |

## Links

- npm: https://www.npmjs.com/package/jscs-require-space-inside-curly-braces
- Repository: https://bitbucket.org/artificialunit/jscs-require-space-inside-curly-braces
- npm.io page: https://npm.io/package/jscs-require-space-inside-curly-braces

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2015-04-20
- 0.0.2 — 2015-04-18
- 0.0.1 — 2015-04-18

## README

#jscs-require-space-inside-curly-braces

> [JSCS](https://bitbucket.org/artificialunit/jscs-require-space-inside-curly-braces) plugin to enforce space after open curly braces.

## Getting started

To install the module, invoke:

```bash
npm install -g jscs-require-space-inside-curly-braces --save-dev
```
It is best to install this plugin `globally` to ensure that other Linters e.g. SublimeLinter is able to use this rule and to highlight wrong syntax.


## Rule

To be able to use this rule, add the following to your `JSCS` configuration file:

```js
"plugins": ["jscs-require-space-inside-curly-braces"],
"requireSpaceInsideCurlyBraces": true

```

This rule checks missing whitespace after open curly braces and reports style error.

## Example

### Valid

```js
var obj = { };

var x = function a () { return 'z' };

var y = function () { return 'zzz' };

var z = function a () {
          return 1; };
```

### Invalid

```js
var obj = {}; // Missing whitespace after open curly brace

var x = function a () {return 'z' }; //Missing whitespace after open curly brace

var x = function a () { return 'z'}; //Missing whitespace before close curly brace
```



License
-------

The MIT License (MIT)

Copyright (c) 2015 ArtificialUnit GbR

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---
_Source: https://npm.io/package/jscs-require-space-inside-curly-braces · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
