Skip to content

Commit 428f3db

Browse files
nick13jaremekigznicolasjaremek
authored andcommitted
Added JSHint files to project.
1 parent 65f7fa6 commit 428f3db

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ config/external_services.json.sample
33
# Logs
44
logs
55
*.log
6-
.jscsrc
7-
.jshintrc
86
# Runtime data
97
pids
108
*.pid

.jscsrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"preset": "airbnb",
3+
"requireMultipleVarDecl": null,
4+
"disallowMultipleVarDecl": null,
5+
"requirePaddingNewLinesAfterBlocks": null
6+
}

.jshintrc

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
// Define globals exposed by modern browsers.
3+
"browser": false,
4+
5+
// Define globals exposed by Node.js.
6+
"node": true,
7+
8+
// Force all variable names to use either camelCase style or UPPER_CASE
9+
// with underscores.
10+
"camelcase": true,
11+
12+
// Prohibit use of == and != in favor of === and !==.
13+
"eqeqeq": true,
14+
15+
// Enforce tab width of 2 spaces.
16+
"indent": 2,
17+
18+
// Prohibit use of a variable before it is defined.
19+
"latedef": false,
20+
21+
// Require capitalized names for constructor functions.
22+
"newcap": true,
23+
24+
// Enforce use of single quotation marks for strings.
25+
"quotmark": "single",
26+
27+
// Enforce placing 'use strict' at the top function scope
28+
"strict": false,
29+
30+
// Prohibit use of explicitly undeclared variables.
31+
"undef": true,
32+
33+
// Warn when variables are defined but never used.
34+
"unused": "vars",
35+
36+
// Suppress warnings about == null comparisons.
37+
"eqnull": true
38+
}

0 commit comments

Comments
 (0)