jslint 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +46 -0
- data/VERSION +1 -1
- data/bin/jslint +2 -1
- data/jslint.gemspec +3 -3
- data/jslint/jslint.js +1966 -2332
- data/lib/generators/jslint/update_config/templates/jslint.yml +39 -33
- metadata +10 -5
@@ -1,38 +1,43 @@
|
|
1
1
|
jslint:
|
2
2
|
options:
|
3
|
-
|
4
|
-
bitwise:
|
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
|
-
|
3
|
+
anon: false # true, if the space may be omitted in anonymous function declarations
|
4
|
+
bitwise: false # true, if bitwise operators should be allowed
|
5
|
+
cap: false # true, if upper case HTML should be allowed
|
6
|
+
continue: false # true, if the continuation statement should be tolerated
|
7
|
+
css: false # true, if CSS workarounds should be tolerated
|
8
|
+
debug: false # true, if debugger statements should be allowed
|
9
|
+
eqeq: true # true, if == should be allowed
|
10
|
+
es5: false # true, if ES5 syntax should be allowed
|
11
|
+
evil: false # true, if eval should be allowed
|
12
|
+
forin: false # true, if for in statements need not filter
|
13
|
+
fragment: false # true, if HTML fragments should be allowed
|
14
|
+
forvar: false # true, if for(var i ....) construction should be allowed
|
15
|
+
newcap: false # true, if constructor names capitalization is ignored
|
16
|
+
node: false # true, if Node.js globals should be predefined
|
17
|
+
nomen: true # true, if names may have dangling _
|
18
|
+
on: false # true, if HTML event handlers should be allowed
|
19
|
+
plusplus: true # true, if increment/decrement should be allowed
|
20
|
+
properties: false # true, if all property names must be declared with /*properties*/
|
21
|
+
regexp: false # true, if the . should be allowed in regexp literals
|
22
|
+
undef: true # true, if variables can be declared out of order
|
23
|
+
unparam: false # true, if unused parameters should be tolerated
|
24
|
+
sloppy: true # true, if the 'use strict'; pragma is optional
|
25
|
+
stupid: false # true, if really stupid practices are tolerated
|
26
|
+
sub: false # true, if all forms of subscript notation are tolerated
|
27
|
+
vars: true # true, if multiple var statements per function should be allowed
|
28
|
+
white: true # true, if sloppy whitespace is tolerated
|
29
|
+
|
30
|
+
maxlen: 150 # the maximum length of a source line
|
31
|
+
indent: 2 # the indentation factor
|
32
|
+
maxerr: 50 # the maximum number of errors to allow
|
33
|
+
passfail: true # true, if the scan should stop on first error
|
34
|
+
|
35
|
+
# following are relevant only if undef = false
|
36
|
+
browser: false # true, if the standard browser globals should be predefined
|
37
|
+
rhino: false # true, if the Rhino environment globals should be predefined
|
38
|
+
windows: false # true, if MS Windows-specific globals should be predefined
|
39
|
+
widget: false # true if the Yahoo Widgets globals should be predefined
|
40
|
+
devel: false # true, if logging should be allowed (console, alert, etc.)
|
36
41
|
|
37
42
|
predefined:
|
38
43
|
# list of predefined elements, comma separated
|
@@ -42,3 +47,4 @@ jslint:
|
|
42
47
|
scan:
|
43
48
|
include:
|
44
49
|
- 'public/javascripts/**/*.js'
|
50
|
+
- 'app/assets/javascripts/**/*.js'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jslint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,12 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
description: This gem provides an easy way to use jslint with your programs. It comes
|
26
31
|
with rhino and it will use nodes.js if it is present.
|
27
32
|
email: geraud@gmail.com
|
@@ -76,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
81
|
version: '0'
|
77
82
|
requirements: []
|
78
83
|
rubyforge_project:
|
79
|
-
rubygems_version: 1.8.
|
84
|
+
rubygems_version: 1.8.24
|
80
85
|
signing_key:
|
81
86
|
specification_version: 3
|
82
87
|
summary: Wrapping of jslint
|