-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
24 lines (23 loc) · 1.4 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
// RisingStack node styleguide: https://github.com/RisingStack/node-style-guide
"curly": true, // Require {} for every new block or scope
"eqeqeq": true, // Require triple equals (===) for comparison
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
"latedef": false, // Require variables/functions to be defined before being used
"newcap": true, // Require capitalization of all constructor functions e.g. `new F()`
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`
"undef": true, // Require all non-global variables to be declared (prevents global leaks)
"unused": true, // Warns when you define and never use your variables
"node": true, // Node.js
"bitwise": true, // Prohibits the use of bitwise operators such as ^ (XOR), | (OR)
"indent": 2, // Enforces specific tab width for your code
"noempty": true, // Warns when you have an empty block in your code
"quotmark": "single", // Enforces the consistency of quotation marks
"strict": false, // Requires all functions to run in ECMAScript 5's strict mode
"trailing": true, // Makes it an error to leave a trailing whitespace in your code
"forin": true, // Requires all for in loops to filter object's items
"camelcase": false, // Force all variable names to use either camelCase style or UPPER_CASE with underscores
"globals": {
"rootRequire": false
}
}