반응형
JSLint
- 'hasOwnProperty' is a really bad name.
- 'new' should not be used as a statement.
- '{a}' is a statement label.
- '{a}' is already defined.
- '{a}' is not a statement label.
- '{a}' is not allowed.
- '{a}' is not defined.
- '{a}' is out of scope.
- '{a}' used out of scope.
- '{a}' was used before it was defined.
- A constructor name should start with an uppercase letter.
- A dot following a number can be confused with a decimal point.
- A leading decimal point can be confused with a dot: '.{a}'.
- All 'debugger' statements should be removed.
- Attribute '{a}' not all lower case.
- Attribute '{a}' repeated.
- Avoid HTML event handlers.
- Bad assignment.
- Bad constructor.
- Bad for in variable '{a}'.
- Bad identifier {a}.
- Bad identifier.
- Bad input type.
- Bad invocation.
- Bad line breaking before '{a}'.
- Bad operand.
- Bad url string.
- Be careful when making functions within a loop. Consider putting the function in a closure.
- Confusing minusses.
- Confusing plusses.
- Confusing use of '{a}'.
- Do not assign to the exception parameter.
- Do not use {a} as a constructor.
- Do not wrap function literals in parens unless they are to be immediately invoked.
- Duplicate id='{a}'.
- Duplicate key '{a}'.
- Duplicate member '{a}'.
- Excepted a style attribute, and instead saw '{a}'.
- Expected '{a}' and instead saw '{b}'.
- Expected '{a}' to have an indentation at {b} instead at {c}.
- Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.
- Expected a 'break' statement before 'case'.
- Expected a 'break' statement before 'default'.
- Expected a class, and instead saw #.{a}.
- Expected a conditional expression and instead saw an assignment.
- Expected a lang code, and instead saw :{a}.
- Expected a linear unit and instead saw '{a}'.
- Expected a name and instead saw '{a}'.
- Expected a non-standard style attribute and instead saw '{a}'.
- Expected a number and instead saw '{a}'.
- Expected a percentage and instead saw '{a}'
- Expected a positive number and instead saw '{a}'
- Expected a pseudo, and instead saw :{a}.
- Expected a small number and instead saw '{a}'
- Expected a string and instead saw '{a}'.
- Expected a string and instead saw {a}.
- Expected a string, and instead saw {a}.
- Expected a style pattern, and instead saw '{a}'.
- Expected a tagName, and instead saw {a}.
- Expected an assignment or function call and instead saw an expression.
- Expected an at-rule, and instead saw @{a}.
- Expected an attribute value and instead saw '{a}'.
- Expected an attribute, and instead saw [{a}].
- Expected an id, and instead saw #{a}.
- Expected an identifier and instead saw '{a}' (a reserved word).
- Expected an identifier and instead saw '{a}'.
- Expected an identifier in an assignment and instead saw a function invocation.
- Expected an identifier in an assignment, and instead saw a function invocation.
- Extra comma.
- Function statements cannot be placed in blocks. Use a function expression or move the statement to the top of the outer function.
- Implied eval is evil. Pass a function instead of a string.
- Inner functions should be listed at the top of the outer function.
- JavaScript URL.
- Label '{a}' looks like a javascript url.
- Label '{a}' on {b} statement.
- Line breaking error '{a}'.
- Math is not a function.
- Misplaced ';'.
- Missing "use strict" statement.
- Missing '()' invoking a constructor.
- Missing 'new' prefix when invoking a constructor.
- Missing '{a}'.
- Missing name in function statement.
- Missing radix parameter.
- Missing space after '{a}'.
- Missing url.
- Move the invocation into the parens that contain the function.
- Nested not.
- Read only.
- Redefinition of '{a}'.
- Strict violation.
- Stupid key '{a}'.
- The Function constructor is eval.
- The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
- This 'switch' should be an 'if'.
- Too many var statements.
- Unexpected '{a}'.
- Unexpected --.
- Unexpected /*member '{a}'.
- Unexpected <.
- Unexpected >.
- Unexpected character '{a}' in {b}.
- Unexpected comma.
- Unexpected expression '{a}'.
- Unexpected space after '-'.
- Unexpected space after '{a}'.
- Unexpected token '{a}'.
- Unexpected use of '{a}'.
- Unmatched '{a}'.
- Unnecessary semicolon.
- Unreachable '{a}' after '{b}'.
- Unrecognized style attribute '{a}'.
- Use '{a}' to compare with '{b}'.
- Use the array literal notation [].
- Use the isNaN function to compare with NaN.
- Use the object literal notation {}.
- Weird construction. Delete 'new'.
- Wrap the /regexp/ literal in parens to disambiguate the slash operator.
- Wrap the entire immediate function invocation in parens.
- ['{a}'] is better written in dot notation.
- document.write can be a form of eval.
- eval is evil.
- lang is deprecated.
- type is unnecessary.
반응형