Skip to content

Commit 2de1313

Browse files
committed
jshintrc copied from streambed
mainly so sublime doesn't complain about node
1 parent a2c72ed commit 2de1313

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

.jshintrc

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
// environments
3+
"browser": true, // Define globals exposed by modern browsers.
4+
"jquery": false, // Define globals exposed by jQuery.
5+
"node": true, // Define globals exposed by Node.js.
6+
7+
// enforcing (true means bug us about it)
8+
"camelcase": false, // Force all variable names to use either camelCase style or UPPER_CASE with underscores.
9+
"curly": false, // This option requires you to always put curly braces around blocks in loops and conditionals.
10+
"eqeqeq": true, // Prohibit use of == and != in favor of === and !==.
11+
"es3": true, // This option tells JSHint that your code needs to adhere to ECMAScript 3 spec (old browsers)
12+
"forin": false, // This option requires all for in loops to filter object's items.
13+
"freeze": true, // This options prohibits overwriting prototypes of native objects such as Array, Date and so on.
14+
"immed": true, // This option prohibits the use of immediate function invocations without wrapping them in parentheses.
15+
"indent": 4, // Enforce tab width of 4 spaces.
16+
"latedef": "nofunc", // Prohibit use of a variable before it is defined.
17+
"maxcomplexity": false, // This option lets you control cyclomatic complexity throughout your code.
18+
"maxdepth": 5, // This option lets you control how nested do you want your blocks to be
19+
"maxlen": 120, // Enforce line length to 120 characters
20+
"maxparams": 5, // This option lets you set the max number of formal parameters allowed per function
21+
"maxstatements": 60, // This option lets you set the max number of statements allowed per function
22+
"newcap": true, // Require capitalized names for constructor functions.
23+
"noarg": true, // This option prohibits the use of arguments.caller and arguments.callee.
24+
"noempty": true, // This option warns when you have an empty block in your code.
25+
"nonbsp": true, // This option warns about "non-breaking whitespace" characters.
26+
"nonew": true, // This option prohibits the use of constructor functions for side-effects.
27+
"plusplus": false, // This option prohibits the use of unary increment and decrement operators.
28+
"quotmark": "single", // Enforce use of single quotation marks for strings.
29+
"strict": true, // Enforce placing 'use strict' at the top function scope
30+
"trailing": true, // Prohibit trailing whitespace.
31+
"undef": true, // Prohibit use of explicitly undeclared variables.
32+
"unused": true, // Warn when variables are defined but never used.
33+
34+
35+
// relaxing (true means DON'T bug us about it)
36+
"asi": false, // This option suppresses warnings about missing semicolons.
37+
"boss": false, // This option suppresses warnings about the use of assignments in cases where comparisons are expected.
38+
"debug": false, // This option suppresses warnings about the debugger statements in your code.
39+
"eqnull": true, // Suppress warnings about == null comparisons.
40+
"esnext": true, // This option tells JSHint that your code uses ECMAScript 6 specific syntax.
41+
"evil": false, // This option suppresses warnings about the use of eval.
42+
"expr": false, // This option suppresses warnings about the use of expressions where normally you would expect to see assignments or function calls.
43+
"funcscope": false, // This option suppresses warnings about declaring variables inside of control structures while accessing them later from the outside.
44+
"globalstrict": false, // This option suppresses warnings about the use of global strict mode.
45+
"iterator": false, // This option suppresses warnings about the __iterator__ property.
46+
"lastsemic": false, // This option suppresses warnings about missing semicolons
47+
"laxbreak": false, // This option suppresses most of the warnings about possibly unsafe line breakings in your code.
48+
"laxcomma": false, // This option suppresses warnings about comma-first coding style
49+
"loopfunc": false, // This option suppresses warnings about functions inside of loops.
50+
"maxerr": 500, // This options allows you to set the maximum amount of warnings JSHint will produce before giving up.
51+
"moz": false, // This options tells JSHint that your code uses Mozilla JavaScript extensions.
52+
"multistr": false, // This option suppresses warnings about multi-line strings.
53+
"notypeof": false, // This option suppresses warnings about invalid typeof operator values.
54+
"proto": false, // This option suppresses warnings about the __proto__ property.
55+
"scripturl": false, // This option suppresses warnings about the use of script-targeted URLs—such as javascript:...
56+
"shadow": false, // This option suppresses warnings about variable shadowing
57+
"sub": false, // This option suppresses warnings about using [] notation when it can be expressed in dot notation
58+
"supernew": false, // This option suppresses warnings about "weird" constructions like new function () { ... } and new Object;
59+
"validthis": false, // This option suppresses warnings about possible strict violations when the code is running in strict mode
60+
"noyield": false, // This option suppresses warnings about generator functions with no yield statement in them.
61+
62+
// global pre defined variables
63+
"predef": [
64+
"angular",
65+
"afterEach",
66+
"beforeEach",
67+
"describe",
68+
"encodeURIComponent",
69+
"expect",
70+
"inject",
71+
"it",
72+
"spyOn",
73+
"JSON",
74+
"Uint8Array",
75+
"Uint16Array",
76+
"Uint32Array",
77+
"Int8Array",
78+
"Int16Array",
79+
"Int32Array",
80+
"Float32Array",
81+
"Float64Array",
82+
"require",
83+
"module",
84+
"document"
85+
]
86+
}

0 commit comments

Comments
 (0)