-
Notifications
You must be signed in to change notification settings - Fork 5
/
jsl.conf
137 lines (99 loc) · 3.04 KB
/
jsl.conf
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# JavaScript Lint configuration file for Kamino.
+process lib/kamino.js
+process test/test_kamino.js
+output-format Problem at line __LINE__: __ERROR__
+context
# Predefine global variables.
+define define
+define exports
+define require
+define console
+define print
+define module
+define Kamino
# Function does not explicitly return a value.
-no_return_value
-anon_no_return_value
# Duplicate argument name.
+duplicate_formal
# Assignment expression used in a conditional.
-equal_as_assign
# Declared variable shadows an argument.
+var_hides_arg
# Redeclared variable.
+redeclared_var
# Missing semicolon.
+missing_semicolon
+lambda_assign_requires_semicolon
# Meaningless block; curly braces are not required.
+meaningless_block
# Comma-separated statements; use semicolons instead.
-comma_separated_stmts
# Unreachable code.
+unreachable_code
# Missing `break` statement.
+missing_break
-missing_break_for_last_case
# The `default` case in a `switch` statement is either missing or not at the
# end of the statement.
-missing_default_case
+default_not_at_end
# `switch` statement contains a duplicate `case`.
+duplicate_case_in_switch
# Loose comparison against `null`, 0, `true`, `false`, or "".
-comparison_type_conv
# Increment or decrement operator used as part of an expression.
-inc_dec_within_stmt
# Ambiguous increment/decrement operator (x+++y or x---y).
+multiple_plus_minus
# Unnecessary use of the `void` operator.
-useless_void
# Unnecessary label.
+use_of_label
# Block statements should be surrounded by curly braces.
-block_without_braces
# Ambiguous leading or trailing decimal point (denotes either a number or an
# object member).
-leading_decimal_point
-trailing_decimal_point
# Leading zeros denote octal numbers.
+octal_number
# Nested comment.
+nested_comment
# A regular expression should be preceded by either a left parenthesis,
# assignment, colon, or comma.
+misplaced_regex
# Line breaking error; unclear whether the lines are part of the same
# statement.
+ambiguous_newline
# Empty statement or unnecessary semicolon.
-empty_statement
# Check for undeclared identifiers by enabling the "option explicit" setting.
+always_use_option_explicit
# Missing, incorrect, or duplicate "option explicit" control comment.
-missing_option_explicit
+partial_option_explicit
+dup_option_explicit
# Unnecessary assignment expression.
+useless_assign
# Nested block statements and `else` statements should be disambiguated by
# curly braces.
-ambiguous_nested_stmt
+ambiguous_else_stmt
# Legacy or malformed JSL control comment.
-legacy_control_comments
+legacy_cc_not_understood
+jsl_cc_not_understood
# JScript-specific qualified function name (see "JScript Deviations from ES3,"
# section 4.4).
-jscript_function_extensions
# Useless comparison (comparing identical expressions).
-useless_comparison
# Use a temporary variable instead of a `with` statement.
+with_statement
# Extra comma in array literal.
+trailing_comma_in_array
# Assignment to a function call.
+assign_to_function_call
# Missing radix parameter for `parseInt`.
+parseint_missing_radix