Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c279ee

Browse filesBrowse files
committed
update jshintrc:
- rm maxparms - rm maxstatements - bump maxdepth to 6 - add jasmine env
1 parent 2de1313 commit 6c279ee
Copy full SHA for 6c279ee

File tree

Expand file treeCollapse file tree

1 file changed

+4
-18
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-18
lines changed

‎.jshintrc

Copy file name to clipboardExpand all lines: .jshintrc
+4-18Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// environments
33
"browser": true, // Define globals exposed by modern browsers.
44
"jquery": false, // Define globals exposed by jQuery.
5-
"node": true, // Define globals exposed by Node.js.
5+
"node": true, // Define globals exposed by Node.js.
6+
"jasmine": true, // Define globals exposed by jasmine
67

78
// enforcing (true means bug us about it)
89
"camelcase": false, // Force all variable names to use either camelCase style or UPPER_CASE with underscores.
@@ -15,10 +16,8 @@
1516
"indent": 4, // Enforce tab width of 4 spaces.
1617
"latedef": "nofunc", // Prohibit use of a variable before it is defined.
1718
"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+
"maxdepth": 6, // This option lets you control how nested do you want your blocks to be
1920
"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
2221
"newcap": true, // Require capitalized names for constructor functions.
2322
"noarg": true, // This option prohibits the use of arguments.caller and arguments.callee.
2423
"noempty": true, // This option warns when you have an empty block in your code.
@@ -31,7 +30,6 @@
3130
"undef": true, // Prohibit use of explicitly undeclared variables.
3231
"unused": true, // Warn when variables are defined but never used.
3332

34-
3533
// relaxing (true means DON'T bug us about it)
3634
"asi": false, // This option suppresses warnings about missing semicolons.
3735
"boss": false, // This option suppresses warnings about the use of assignments in cases where comparisons are expected.
@@ -61,15 +59,6 @@
6159

6260
// global pre defined variables
6361
"predef": [
64-
"angular",
65-
"afterEach",
66-
"beforeEach",
67-
"describe",
68-
"encodeURIComponent",
69-
"expect",
70-
"inject",
71-
"it",
72-
"spyOn",
7362
"JSON",
7463
"Uint8Array",
7564
"Uint16Array",
@@ -78,9 +67,6 @@
7867
"Int16Array",
7968
"Int32Array",
8069
"Float32Array",
81-
"Float64Array",
82-
"require",
83-
"module",
84-
"document"
70+
"Float64Array"
8571
]
8672
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.