Skip to content

Commit d8e95b0

Browse files
committed
Tokbox linters
1 parent efede1f commit d8e95b0

File tree

2 files changed

+32
-15
lines changed

2 files changed

+32
-15
lines changed

linters/SublimeLinter/SublimeLinter.sublime-settings

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
// Define globals exposed by modern browsers.
2323
"browser": true,
2424

25-
// Define globals exposed by jQuery.
26-
"jquery": true,
27-
2825
// Define globals exposed by Node.js.
2926
"node": true,
3027

@@ -43,6 +40,13 @@
4340
// Suppress warnings about == null comparisons.
4441
"eqnull": true,
4542

43+
// Our code uses ECMAScript 6 specific syntax.
44+
"esnext": true,
45+
46+
// Suppresses warnings about the use of expressions where normally
47+
// you would expect to see assignments or function calls
48+
"expr": true,
49+
4650
// Enforce tab width of 2 spaces.
4751
"indent": 2,
4852

@@ -63,11 +67,16 @@
6367

6468
// Warn when variables are defined but never used.
6569
"unused": true,
66-
67-
// Enforce line length to 80 characters
68-
"maxlen": 80,
6970

70-
// Enforce placing 'use strict' at the top function scope
71-
"strict": true
71+
// Enforce line length to 100 characters
72+
"maxlen": 100,
73+
74+
// Suppresses warnings about mixed tabs and spaces when the latter are used for alignmnent only
75+
"smarttabs": true,
76+
77+
// Don't enforce placing 'use strict' at the top function scope
78+
"strict": false
79+
7280
}
81+
7382
}

linters/jshintrc

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
// Define globals exposed by modern browsers.
88
"browser": true,
99

10-
// Define globals exposed by jQuery.
11-
"jquery": true,
12-
1310
// Define globals exposed by Node.js.
1411
"node": true,
1512

@@ -28,6 +25,13 @@
2825
// Suppress warnings about == null comparisons.
2926
"eqnull": true,
3027

28+
// Our code uses ECMAScript 6 specific syntax.
29+
"esnext": true,
30+
31+
// Suppresses warnings about the use of expressions where normally
32+
// you would expect to see assignments or function calls
33+
"expr": true,
34+
3135
// Enforce tab width of 2 spaces.
3236
"indent": 2,
3337

@@ -49,9 +53,13 @@
4953
// Warn when variables are defined but never used.
5054
"unused": true,
5155

52-
// Enforce line length to 80 characters
53-
"maxlen": 80,
56+
// Enforce line length to 100 characters
57+
"maxlen": 100,
58+
59+
// Suppresses warnings about mixed tabs and spaces when the latter are used for alignmnent only
60+
"smarttabs": true,
61+
62+
// Don't enforce placing 'use strict' at the top function scope
63+
"strict": false
5464

55-
// Enforce placing 'use strict' at the top function scope
56-
"strict": true
5765
}

0 commit comments

Comments
 (0)