'?:' 表达式的 true 和 false 分支相同
ConditionalTernaryEqualBranch
resharper_conditional_ternary_equal_branch_highlighting | 警告 |
数组的尾部元素被省略
ElidedTrailingElement
resharper_elided_trailing_element_highlighting | 警告 |
在条件语句中对变量赋值
AssignmentInConditionExpression
resharper_assignment_in_condition_expression_highlighting | 警告 |
对隐式声明的全局变量赋值
AssignToImplicitGlobalInFunctionScope
resharper_assign_to_implicit_global_in_function_scope_highlighting | 警告 |
对常量赋值
AssignToConstant
resharper_assign_to_constant_highlighting | 错误 |
无法解析符号
NotResolved
resharper_not_resolved_highlighting | 警告 |
闭包引用了外部作用域中在循环中修改的变量
ClosureOnModifiedVariable
resharper_closure_on_modified_variable_highlighting | 警告 |
对象字面量中缺少逗号
ObjectLiteralsAreNotCommaFree
resharper_object_literals_are_not_comma_free_highlighting | 错误 |
此处逗号无效
CommaNotValidHere
resharper_comma_not_valid_here_highlighting | 错误 |
'typeof' 表达式与不正确的值进行比较
IncorrectOperandInTypeOfComparison
resharper_incorrect_operand_in_type_of_comparison_highlighting | 警告 |
条件始终为常量
ConditionIsAlwaysConst
resharper_condition_is_always_const_highlighting | 警告 |
构造函数调用未使用或可能用于副作用
ConstructorCallNotUsed
resharper_constructor_call_not_used_highlighting | 警告 |
声明隐藏了外部作用域的另一个声明
DeclarationHides
resharper_declaration_hides_highlighting | 提示 |
重复的属性声明
DuplicatingPropertyDeclaration
resharper_duplicating_property_declaration_highlighting | 警告 |
重复的 switch 标签
DuplicatingSwitchLabel
resharper_duplicating_switch_label_highlighting | 警告 |
在 ES 5 或更低版本中使用 ECMAScript 2015 功能
Es6Feature
resharper_es6_feature_highlighting | 错误 |
在 ES 2015 或更低版本中使用 ECMAScript 2016 功能
Es7Feature
resharper_es7_feature_highlighting | 错误 |
XML 文档注释引用中的错误
ErrorInXmlDocReference
resharper_error_in_xml_doc_reference_highlighting | 错误 |
在语言级别设置为稳定时使用实验性功能
ExperimentalFeature
resharper_experimental_feature_highlighting | 错误 |
表达式始终为常量
ExpressionIsAlwaysConst
resharper_expression_is_always_const_highlighting | 警告 |
'throw' 语句后需要表达式
ThrowMustBeFollowedByExpression
resharper_throw_must_be_followed_by_expression_highlighting | 错误 |
扩展原生对象的原型
NativeTypePrototypeExtending
resharper_native_type_prototype_extending_highlighting | 警告 |
启发式不可达代码
HeuristicallyUnreachableCode
resharper_heuristically_unreachable_code_highlighting | 警告 |
XML 代码注释中的非法语法
XmlDocCommentSyntaxProblem
resharper_xml_doc_comment_syntax_problem_highlighting | 警告 |
此处不允许使用 'import' 关键字
ImportKeywordNotWithInvocation
resharper_import_keyword_not_with_invocation_highlighting | 错误 |
函数返回值不一致
InconsistentFunctionReturns
resharper_inconsistent_function_returns_highlighting | 警告 |
无效的 JSON 语法
InvalidJsonSyntax
resharper_invalid_json_syntax_highlighting | 错误 |
调用非函数表达式
InvocationOfNonFunction
resharper_invocation_of_non_function_highlighting | 警告 |
调用的表达式不是函数值
InvokedExpressionMaybeNonFunction
resharper_invoked_expression_maybe_non_function_highlighting | 警告 |
JSON 验证失败
JsonValidationFailed
resharper_json_validation_failed_highlighting | 错误 |
词法声明只能在块内声明
LexicalDeclarationNeedsBlock
resharper_lexical_declaration_needs_block_highlighting | 错误 |
局部函数在后续被重新定义
LocalFunctionRedefinedLater
resharper_local_function_redefined_later_highlighting | 警告 |
需要左值错误
LValueIsExpected
resharper_l_value_is_expected_highlighting | 错误 |
在内部函数中误用 'this' 限定符
MisuseOfOwnerFunctionThis
resharper_misuse_of_owner_function_this_highlighting | 警告 |
'for in' 中的多重声明错误
MultipleDeclarationsInForeach
resharper_multiple_declarations_in_foreach_highlighting | 错误 |
未赋值的常量
NonAssignedConstant
resharper_non_assigned_constant_highlighting | 错误 |
非括号的对象解构赋值不能用于表达式语句
ObjectDestructuringWithoutParentheses
resharper_object_destructuring_without_parentheses_highlighting | 错误 |
并非所有代码路径都返回值
NotAllPathsReturnValue
resharper_not_all_paths_return_value_highlighting | 警告 |
需要对象属性声明
EmptyObjectPropertyDeclaration
resharper_empty_object_property_declaration_highlighting | 错误 |
覆盖原生对象的原型
NativeTypePrototypeOverwriting
resharper_native_type_prototype_overwriting_highlighting | 警告 |
参数名称 'arguments' 与预定义的 JS 函数作用域变量冲突
FunctionParameterNamedArguments
resharper_function_parameter_named_arguments_highlighting | 警告 |
参数值未被使用
ParameterValueIsNotUsed
resharper_parameter_value_is_not_used_highlighting | 警告 |
未找到引用注释的路径
JsPathNotFound
resharper_js_path_not_found_highlighting | 错误 |
可能的错误:模糊的 lambda 块和对象字面量
SuspiciousLambdaBlock
resharper_suspicious_lambda_block_highlighting | 警告 |
属性 getter 不能有参数
PropertyGetterCannotHaveParameters
resharper_property_getter_cannot_have_parameters_highlighting | 错误 |
属性 setter 必须有一个参数
PropertySetterMustHaveSingleParameter
resharper_property_setter_must_have_single_parameter_highlighting | 错误 |
限定符可以是 'null' 或 'undefined'
QualifiedExpressionMaybeNull
resharper_qualified_expression_maybe_null_highlighting | 警告 |
限定符是 'null' 或 'undefined'
QualifiedExpressionIsNull
resharper_qualified_expression_is_null_highlighting | 警告 |
重复声明 let/const
BlockScopeRedeclaration
resharper_block_scope_redeclaration_highlighting | 错误 |
全局作用域中的 return 语句带有值
ReturnFromGlobalScopetWithValue
resharper_return_from_global_scopet_with_value_highlighting | 警告 |
相似表达式比较
SimilarExpressionsComparison
resharper_similar_expressions_comparison_highlighting | 警告 |
语句可能被错误地通过换行符中断
PossiblyIncorrectlyBrokenStatement
resharper_possibly_incorrectly_broken_statement_highlighting | 警告 |
在派生类的构造函数中访问 'this' 之前必须调用 'super'
SuperCallProhibitsThis
resharper_super_call_prohibits_this_highlighting | 错误 |
可疑的表达式语句
WrongExpressionStatement
resharper_wrong_expression_statement_highlighting | 警告 |
在 'for in' 循环体中没有 .hasOwnProperty() 检查。 这将导致枚举原型属性。
MissingHasOwnPropertyInForeach
resharper_missing_has_own_property_in_foreach_highlighting | 警告 |
对象属性列表中的尾随冗余逗号可能导致错误
UnsafeCommaInObjectPropertiesList
resharper_unsafe_comma_in_object_properties_list_highlighting | 警告 |
三斜线指令仅在文件顶部有效
IncorrectTripleSlashLocation
resharper_incorrect_triple_slash_location_highlighting | 警告 |
可能未赋值的局部变量的使用
UsageOfPossiblyUnassignedValue
resharper_usage_of_possibly_unassigned_value_highlighting | 警告 |
未赋值的局部变量的使用
UsageOfDefinitelyUnassignedValue
resharper_usage_of_definitely_unassigned_value_highlighting | 警告 |
在循环体外使用 'break' 或 'continue'
JumpMustBeInLoop
resharper_jump_must_be_in_loop_highlighting | 警告 |
在 'break' 或 'continue' 之后使用表达式
LabelOrSemicolonExpected
resharper_label_or_semicolon_expected_highlighting | 错误 |
使用隐式声明的全局变量
UseOfImplicitGlobalInFunctionScope
resharper_use_of_implicit_global_in_function_scope_highlighting | 警告 |
可能未赋值的属性或全局变量的使用
PossiblyUnassignedProperty
resharper_possibly_unassigned_property_highlighting | 提示 |
在全局上下文中使用 'this'
ThisInGlobalContext
resharper_this_in_global_context_highlighting | 警告 |
使用 'arguments.caller' 和 'arguments.callee'
CallerCalleeUsing
resharper_caller_callee_using_highlighting | 警告 |
使用强制相等(使用与 'null' 或 'undefined' 的强制相等运算符)
CoercedEqualsUsingWithNullUndefined
resharper_coerced_equals_using_with_null_undefined_highlighting | 已禁用 |
使用强制相等(使用强制相等运算符)
CoercedEqualsUsing
resharper_coerced_equals_using_highlighting | 警告 |
变量在声明之前被使用
VariableUsedBeforeDeclared
resharper_variable_used_before_declared_highlighting | 警告 |