Procházet zdrojové kódy

Delete latedef repetition

Sorts the jshint configuration keys in alphabetical order (which
revealed that latedef was used twice with conflicting values). Removes
the early value of latedef because the late was in effect anyway.
dev1
Lyubomir Marinov před 9 roky
rodič
revize
25de7411fd
1 změnil soubory, kde provedl 10 přidání a 11 odebrání
  1. 10
    11
      .jshintrc

+ 10
- 11
.jshintrc Zobrazit soubor

1
 {
1
 {
2
     // Refer to http://jshint.com/docs/options/ for an exhaustive list of options
2
     // Refer to http://jshint.com/docs/options/ for an exhaustive list of options
3
     "asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
3
     "asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
4
-    "expr": true, // true: Tolerate `ExpressionStatement` as Programs
5
-    "loopfunc": true, // true: Tolerate functions being defined in loops
4
+    "browser": true, // Web Browser (window, document, etc)
6
     "curly": false, // true: Require {} for every new block or scope
5
     "curly": false, // true: Require {} for every new block or scope
7
     "evil": true, // true: Tolerate use of `eval` and `new Function()`
6
     "evil": true, // true: Tolerate use of `eval` and `new Function()`
8
-    "white": true,
9
-    "undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
10
-    "browser": true, // Web Browser (window, document, etc)
11
-    "node": true, // Node.js
12
-    "trailing": true,
7
+    "expr": true, // true: Tolerate `ExpressionStatement` as Programs
13
     "indent": 4, // {int} Number of spaces to use for indentation
8
     "indent": 4, // {int} Number of spaces to use for indentation
14
-    "latedef": true, // true: Require variables/functions to be defined before being used
15
-    "newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
16
-    "maxlen": 80, // {int} Max number of characters per line
17
     "latedef": false, //This option prohibits the use of a variable before it was defined
9
     "latedef": false, //This option prohibits the use of a variable before it was defined
18
-    "laxbreak": true //Ignore line breaks around "=", "==", "&&", etc.
10
+    "laxbreak": true, //Ignore line breaks around "=", "==", "&&", etc.
11
+    "loopfunc": true, // true: Tolerate functions being defined in loops
12
+    "maxlen": 80, // {int} Max number of characters per line
13
+    "newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
14
+    "node": true, // Node.js
15
+    "trailing": true,
16
+    "undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
17
+    "white": true
19
 }
18
 }

Načítá se…
Zrušit
Uložit