Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit 1fb3a34

Browse files
author
Flurin Egger
committed
Fix default .jshintrc config to match with our standard
1 parent 3e855c0 commit 1fb3a34

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

linters/SublimeLinter.sublime-settings

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
// Warn when variables are defined but never used.
6868
"unused": true,
6969

70-
// Enforce line length to 80 characters
71-
"maxlen": 80,
70+
// Enforce line length to 100 characters
71+
"maxlen": 100,
7272

7373
// Enforce placing 'use strict' at the top function scope
7474
"strict": true,
@@ -91,14 +91,21 @@
9191
"plusplus" : false,
9292

9393
// Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
94-
"subsub": false,
94+
"sub": false,
9595

9696
/*
97-
* OPTIONAL OPTIONS
97+
* Extra Digitpaint options
9898
* =================
9999
*/
100100

101-
// Do not allow bitwise operations
102-
"bitwise": true
101+
// Allow bitwise operations
102+
"bitwise": false,
103+
104+
// Don't allow extending of native objects
105+
"freeze" : true,
106+
107+
// Don't allow non-breaking whitespace
108+
"nonbsp" : true
109+
103110
}
104111
}

linters/jshintrc

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,22 @@
7676
"plusplus" : false,
7777

7878
// Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
79-
"subsub": false,
79+
"sub": false,
8080

8181
/*
82-
* OPTIONAL OPTIONS
82+
* Extra Digitpaint options
8383
* =================
8484
*/
8585

86-
// Do not allow bitwise operations
87-
"bitwise": true
86+
// Allow bitwise operations
87+
"bitwise": false,
88+
89+
// Don't allow extending of native objects
90+
"freeze" : true,
91+
92+
// Don't allow non-breaking whitespace
93+
"nonbsp" : true
94+
8895
}
8996

9097

0 commit comments

Comments
 (0)