forked from databricks/spark-pr-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
67 lines (50 loc) · 1.6 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
/*
* ENVIRONMENTS
* =================
*/
// Define globals exposed by modern browsers.
"browser": true,
// console.log, alert, etc.
"devel": true,
// Define globals exposed by jQuery.
"jquery": true,
// Define globals. false means it is read only.
"globals": {
"module": false, // node package for Gruntfile.js
"define": false, // require.js
"require": false // require.js
},
/*
* ENFORCING OPTIONS
* =================
*/
// Prohibit use of == and != in favor of === and !==.
"eqeqeq": true,
// Suppress warnings about == null comparisons.
"eqnull": true,
// Enforce tab width of 2 spaces.
"indent": 2,
// Prohibit use of a variable before it is defined.
"latedef": true,
// Require capitalized names for constructor functions.
"newcap": true,
// Prohibit trailing whitespace.
"trailing": true,
// Prohibit use of explicitly undeclared variables.
"undef": true,
// Warn when variables are defined but never used.
// This does not include function declarations.
"unused": "vars",
// Enforce line length to 100 characters
// Disabled because after JSX transform line lengths could be broken
// Instead we depend on jsxcs to do our line length detection
//"maxlen": 100,
// This option prohibits the use of constructor functions for side-effects.
// i.e. it disallows using new without assigning its results to any variable.
"nonew": true,
// Require curly braces even for one liner in loops and conditional statements.
"curly": true,
// Enforce placing 'use strict' at the top function scope
"strict": true
}