sindresorhus / eslint-plugin-unicorn
Files Coverage
configs/all.js 100.00%
configs/recommended.js 100.00%
index.js 100.00%
rules/ast/index.js 100.00%
rules/ast/is-arrow-function-body.js 100.00%
rules/ast/is-empty-node.js 100.00%
rules/ast/is-new-expression.js 95.45%
rules/ast/is-static-require.js 100.00%
rules/ast/is-undefined.js 100.00%
rules/ast/literal.js 100.00%
rules/better-regex.js 100.00%
rules/catch-error-name.js 100.00%
rules/consistent-destructuring.js 100.00%
rules/consistent-function-scoping.js 100.00%
rules/custom-error-definition.js 100.00%
rules/empty-brace-spaces.js 100.00%
rules/error-message.js 100.00%
rules/escape-case.js 100.00%
rules/expiring-todo-comments.js 99.82%
rules/explicit-length-check.js 100.00%
rules/filename-case.js 100.00%
rules/fix/add-parenthesizes-to-return-or-throw-expression.js 100.00%
rules/fix/append-argument.js 100.00%
rules/fix/extend-fix-range.js 100.00%
rules/fix/fix-space-around-keywords.js 100.00%
rules/fix/index.js 100.00%
rules/fix/remove-argument.js 100.00%
rules/fix/remove-member-expression-property.js 100.00%
rules/fix/remove-method-call.js 100.00%
rules/fix/remove-parentheses.js 100.00%
rules/fix/remove-spaces-after.js 100.00%
rules/fix/rename-variable.js 100.00%
rules/fix/replace-argument.js 100.00%
rules/fix/replace-node-or-token-and-spaces-before.js 100.00%
rules/fix/replace-reference-identifier.js 100.00%
rules/fix/replace-string-literal.js 100.00%
rules/fix/replace-template-element.js 100.00%
rules/fix/switch-call-expression-to-new-expression.js 100.00%
rules/fix/switch-new-expression-to-call-expression.js 100.00%
rules/import-style.js 98.92%
rules/new-for-builtins.js 100.00%
rules/no-abusive-eslint-disable.js 100.00%
rules/no-array-callback-reference.js 100.00%
rules/no-array-for-each.js 100.00%
rules/no-array-method-this-argument.js 100.00%
rules/no-array-push-push.js 99.31%
rules/no-array-reduce.js 100.00%
rules/no-await-expression-member.js 100.00%
rules/no-console-spaces.js 100.00%
rules/no-document-cookie.js 100.00%
rules/no-empty-file.js 100.00%
rules/no-for-loop.js 100.00%
rules/no-hex-escape.js 100.00%
rules/no-instanceof-array.js 100.00%
rules/no-invalid-remove-event-listener.js 100.00%
rules/no-keyword-prefix.js 100.00%
rules/no-lonely-if.js 100.00%
rules/no-negated-condition.js 100.00%
rules/no-nested-ternary.js 100.00%
rules/no-new-array.js 100.00%
rules/no-new-buffer.js 100.00%
rules/no-null.js 100.00%
rules/no-object-as-default-parameter.js 100.00%
rules/no-process-exit.js 100.00%
rules/no-static-only-class.js 100.00%
rules/no-thenable.js 100.00%
rules/no-this-assignment.js 100.00%
rules/no-typeof-undefined.js 100.00%
rules/no-unnecessary-await.js 100.00%
rules/no-unreadable-array-destructuring.js 100.00%
rules/no-unreadable-iife.js 100.00%
rules/no-unsafe-regex.js 100.00%
rules/no-unused-properties.js 100.00%
rules/no-useless-fallback-in-spread.js 100.00%
rules/no-useless-length-check.js 100.00%
rules/no-useless-promise-resolve-reject.js 100.00%
rules/no-useless-spread.js 100.00%
rules/no-useless-switch-case.js 100.00%
rules/no-useless-undefined.js 100.00%
rules/no-zero-fractions.js 100.00%
rules/number-literal-case.js 100.00%
rules/numeric-separators-style.js 100.00%
rules/prefer-add-event-listener.js 100.00%
rules/prefer-array-find.js 100.00%
rules/prefer-array-flat-map.js 100.00%
rules/prefer-array-flat.js 100.00%
rules/prefer-array-index-of.js 100.00%
rules/prefer-array-some.js 100.00%
rules/prefer-at.js 100.00%
rules/prefer-code-point.js 100.00%
rules/prefer-date-now.js 100.00%
rules/prefer-default-parameters.js 100.00%
rules/prefer-dom-node-append.js 100.00%
rules/prefer-dom-node-dataset.js 100.00%
rules/prefer-dom-node-remove.js 100.00%
rules/prefer-dom-node-text-content.js 100.00%
rules/prefer-event-target.js 100.00%
rules/prefer-export-from.js 100.00%
rules/prefer-includes.js 100.00%
rules/prefer-json-parse-buffer.js 100.00%
rules/prefer-keyboard-event-key.js 98.31%
rules/prefer-logical-operator-over-ternary.js 100.00%
rules/prefer-math-trunc.js 100.00%
rules/prefer-modern-dom-apis.js 100.00%
rules/prefer-modern-math-apis.js 100.00%
rules/prefer-module.js 100.00%
rules/prefer-native-coercion-functions.js 100.00%
rules/prefer-negative-index.js 100.00%
rules/prefer-node-protocol.js 100.00%
rules/prefer-number-properties.js 100.00%
rules/prefer-object-from-entries.js 100.00%
rules/prefer-optional-catch-binding.js 100.00%
rules/prefer-prototype-methods.js 100.00%
rules/prefer-query-selector.js 100.00%
rules/prefer-reflect-apply.js 100.00%
rules/prefer-set-has.js 100.00%
rules/prefer-set-size.js 100.00%
rules/prefer-spread.js 99.60%
rules/prefer-string-replace-all.js 100.00%
rules/prefer-string-slice.js 100.00%
rules/prefer-string-starts-ends-with.js 100.00%
rules/prefer-string-trim-start-end.js 100.00%
rules/prefer-switch.js 100.00%
rules/prefer-ternary.js 100.00%
rules/prefer-top-level-await.js 100.00%
rules/prefer-type-error.js 100.00%
rules/prevent-abbreviations.js 100.00%
rules/relative-url-style.js 100.00%
rules/require-array-join-separator.js 100.00%
rules/require-number-to-fixed-digits-argument.js 100.00%
rules/require-post-message-target-origin.js 100.00%
rules/selectors/call-or-new-expression-selector.js 100.00%
rules/selectors/empty-array-selector.js 100.00%
rules/selectors/empty-object-selector.js 100.00%
rules/selectors/index.js 100.00%
rules/selectors/matches-any.js 100.00%
rules/selectors/member-expression-selector.js 100.00%
rules/selectors/method-call-selector.js 100.00%
rules/selectors/negation.js 100.00%
rules/selectors/not-dom-node.js 100.00%
rules/selectors/not-function.js 100.00%
rules/selectors/not-left-hand-side.js 100.00%
rules/selectors/prototype-method-selector.js 94.12%
rules/selectors/reference-identifier-selector.js 100.00%
rules/selectors/require-selector.js 100.00%
rules/shared/abbreviations.js 100.00%
rules/shared/dom-events.js 100.00%
rules/shared/event-keys.js 100.00%
rules/shared/negative-index.js 100.00%
rules/shared/simple-array-search-rule.js 100.00%
rules/shared/typed-array.js 100.00%
rules/string-content.js 100.00%
rules/switch-case-braces.js 100.00%
rules/template-indent.js 100.00%
rules/text-encoding-identifier-case.js 100.00%
rules/throw-new-error.js 100.00%
rules/utils/assert-token.js 100.00%
rules/utils/avoid-capture.js 100.00%
rules/utils/boolean.js 100.00%
rules/utils/builtins.js 100.00%
rules/utils/cartesian-product-samples.js 100.00%
rules/utils/create-deprecated-rules.js 100.00%
rules/utils/escape-string.js 100.00%
rules/utils/escape-template-element-raw.js 100.00%
rules/utils/get-builtin-rule.js 100.00%
rules/utils/get-call-expression-arguments-text.js 100.00%
rules/utils/get-class-head-location.js 100.00%
rules/utils/get-documentation-url.js 100.00%
rules/utils/get-indent-string.js 100.00%
rules/utils/get-references.js 100.00%
rules/utils/get-scopes.js 100.00%
rules/utils/get-switch-case-head-location.js 100.00%
rules/utils/get-variable-identifiers.js 100.00%
rules/utils/global-reference-tracker.js 98.61%
rules/utils/has-same-range.js 100.00%
rules/utils/is-function-self-used-inside.js 100.00%
rules/utils/is-left-hand-side.js 100.00%
rules/utils/is-logical-expression.js 100.00%
rules/utils/is-method-named.js 100.00%
rules/utils/is-new-expression-with-parentheses.js 100.00%
rules/utils/is-node-matches.js 100.00%
rules/utils/is-number.js 100.00%
rules/utils/is-on-same-line.js 100.00%
rules/utils/is-same-reference.js 98.84%
rules/utils/is-shadowed.js 100.00%
rules/utils/is-shorthand-export-local.js 100.00%
rules/utils/is-shorthand-import-local.js 100.00%
rules/utils/is-shorthand-property-assignment-pattern-left.js 100.00%
rules/utils/is-shorthand-property-value.js 100.00%
rules/utils/is-value-not-usable.js 100.00%
rules/utils/needs-semicolon.js 94.74%
rules/utils/numeric.js 100.00%
rules/utils/parentheses.js 100.00%
rules/utils/resolve-variable-name.js 100.00%
rules/utils/rule.js 98.73%
rules/utils/should-add-parentheses-to-conditional-expression-child.js 100.00%
rules/utils/should-add-parentheses-to-expression-statement-expression.js 100.00%
rules/utils/should-add-parentheses-to-logical-expression-child.js 100.00%
rules/utils/should-add-parentheses-to-member-expression-object.js 100.00%
rules/utils/should-add-parentheses-to-new-expression-callee.js 100.00%
rules/utils/should-add-parentheses-to-spread-element-argument.js 100.00%
rules/utils/singular.js 100.00%
rules/utils/to-location.js 100.00%
Project Totals (203 files) 99.87%
Loading