Skip to content

Commit b783e77

Browse files
committed
Merge pull request RisingStack#4 from RisingStack/feature/jshintrc
Adding jshinrc skeleton
2 parents 4eb7601 + 1add2b7 commit b783e77

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

configs/.jshintrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"curly": true, // Require {} for every new block or scope
3+
"eqeqeq": true, // Require triple equals (===) for comparison
4+
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
5+
"latedef": true, // Require variables/functions to be defined before being used
6+
"newcap": true, // Require capitalization of all constructor functions e.g. `new F()`
7+
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`
8+
"undef": true, // Require all non-global variables to be declared (prevents global leaks)
9+
"unused": true, // Warns when you define and never use your variables
10+
"node": true , // Node.js
11+
"bitwise": true, // Prohibits the use of bitwise operators such as ^ (XOR), | (OR)
12+
"indent": 2, // Enforces specific tab width for your code
13+
"noempty": true, // Warns when you have an empty block in your code
14+
"quotmark": "single", // Enforces the consistency of quotation marks
15+
"strict": false, // Requires all functions to run in ECMAScript 5's strict mode
16+
"trailing": true, // Makes it an error to leave a trailing whitespace in your code
17+
"forin": true, // Requires all for in loops to filter object's items
18+
"camelCase": "true" // Force all variable names to use either camelCase style or UPPER_CASE with underscores
19+
}

0 commit comments

Comments
 (0)