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.
- Host: GitHub
- URL: https://github.com/useallfive/use-all-five-jscs-rules
- Owner: UseAllFive
- License: mit
- Created: 2014-06-24T19:27:21.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-24T21:34:43.000Z (about 12 years ago)
- Last Synced: 2024-12-20T07:07:38.497Z (over 1 year ago)
- Language: JavaScript
- Size: 191 KB
- Stars: 0
- Watchers: 21
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
```