An open API service indexing awesome lists of open source software.

https://github.com/useallfive/use-all-five-jscs-rules

Custom JavaScript Code Sniffer rules.
https://github.com/useallfive/use-all-five-jscs-rules

Last synced: over 1 year ago
JSON representation

Custom JavaScript Code Sniffer rules.

Awesome Lists containing this project

README

          

# use-all-five-jscs-rules

Custom UA5 JavaScript Code Sniffer rules.

### disallowVarHoisting

Disable variable hoisting. Variables must be declared at top of functional scope.

Type: `Boolean`
Values: `true`

#### Example

```js
"disallowVariableHosting": true
```

##### Valid

```js
var x;
var y;
x = 1;
```

##### Invalid

```js
var x;
x = 1;
var y;
```