Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 1, 2024 via pnpm

eslint-plugin-unicorn 48.0.1

More than 100 powerful ESLint rules
Package summary
Share
3
issues
1
high severity
license
1
2
low severity
license
2
9
licenses
113
MIT
12
ISC
8
BSD-2-Clause
14
other licenses
Apache-2.0
7
BSD-3-Clause
2
(MIT OR CC0-1.0)
2
Python-2.0
1
+ 2 more
Package created
20 Sep 2016
Version published
25 Jul 2023
Maintainers
2
Total deps
147
Direct deps
16
License
MIT

Issues

3

1 high severity issue

high
Recommendation: Read and validate the license terms
via: read-pkg-up@7.0.1
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: read-pkg-up@7.0.1
Recommendation: Read and validate the license terms
via: read-pkg-up@7.0.1
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
113 Packages, Including:
@babel/code-frame@7.24.2
@babel/helper-validator-identifier@7.24.5
@babel/highlight@7.24.5
@eslint-community/eslint-utils@4.4.0
@eslint-community/regexpp@4.10.0
@eslint/eslintrc@3.0.2
@eslint/js@9.1.1
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
@types/normalize-package-data@2.4.4
acorn-jsx@5.3.2
acorn@8.11.3
ajv@6.12.6
ansi-regex@5.0.1
ansi-styles@3.2.1
ansi-styles@4.3.0
balanced-match@1.0.2
brace-expansion@1.1.11
builtin-modules@3.3.0
callsites@3.1.0
chalk@2.4.2
chalk@4.1.2
ci-info@3.9.0
clean-regexp@1.0.0
color-convert@1.9.3
color-convert@2.0.1
color-name@1.1.3
color-name@1.1.4
concat-map@0.0.1
cross-spawn@7.0.3
debug@4.3.4
deep-is@0.1.4
error-ex@1.3.2
escape-string-regexp@1.0.5
escape-string-regexp@4.0.0
eslint-plugin-unicorn@48.0.1
eslint@9.1.1
fast-deep-equal@3.1.3
fast-json-stable-stringify@2.1.0
fast-levenshtein@2.0.6
file-entry-cache@8.0.0
find-up@4.1.0
find-up@5.0.0
flat-cache@4.0.1
function-bind@1.1.2
globals@14.0.0
has-flag@3.0.0
has-flag@4.0.0
hasown@2.0.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
12 Packages, Including:
fastq@1.17.1
flatted@3.3.1
glob-parent@6.0.2
hosted-git-info@2.8.9
isexe@2.0.0
lru-cache@6.0.0
minimatch@3.1.2
picocolors@1.0.0
semver@5.7.2
semver@7.6.0
which@2.0.2
yallist@4.0.0

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
eslint-scope@8.0.1
espree@10.0.1
esrecurse@4.3.0
estraverse@5.3.0
esutils@2.0.3
normalize-package-data@2.5.0
regjsparser@0.10.0
uri-js@4.4.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
7 Packages, Including:
@humanwhocodes/config-array@0.13.0
@humanwhocodes/module-importer@1.0.1
@humanwhocodes/retry@0.2.3
eslint-visitor-keys@3.4.3
eslint-visitor-keys@4.0.0
spdx-correct@3.2.0
validate-npm-package-license@3.0.4

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
@humanwhocodes/object-schema@2.0.3
esquery@1.5.0

(MIT OR CC0-1.0)

Public Domain
2 Packages, Including:
type-fest@0.6.0
type-fest@0.8.1

Python License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
state-changes
1 Packages, Including:
argparse@2.0.1

Creative Commons Attribution 3.0 Unported

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-exceptions@2.5.0

Creative Commons Zero v1.0 Universal

Public Domain
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-license-ids@3.0.17
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

16
All Dependencies CSV
β“˜ This is a list of eslint-plugin-unicorn 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@babel/helper-validator-identifier7.24.548 kBMIT
prod
@eslint-community/eslint-utils4.4.062.2 kBMIT
prod
ci-info3.9.07.21 kBMIT
prod
clean-regexp1.0.02.43 kBMIT
prod
eslint9.1.12.89 MBMIT
prod peer
esquery1.5.0155.76 kBBSD-3-Clause
prod
indent-string4.0.02.02 kBMIT
prod
is-builtin-module3.2.11.92 kBMIT
prod
jsesc3.0.29.72 kBMIT
prod
lodash4.17.21311.49 kBMIT
prod
pluralize8.0.05.89 kBMIT
prod
read-pkg-up7.0.12.67 kBMIT
prod
1
2
regexp-tree0.1.2766.81 kBMIT
prod
regjsparser0.10.018.42 kBBSD-2-Clause
prod
semver7.6.026.57 kBISC
prod
strip-indent3.0.01.68 kBMIT
prod

Visualizations

Frequently Asked Questions

What does eslint-plugin-unicorn do?

The eslint-plugin-unicorn is a powerful tool for JavaScript developers which houses more than 100 powerful, versatile and easy-to-use ESLint rules. Optimized for code quality and internal consistency, these rules extend the core ESLint set with a range of extras that enforce JavaScript best practices and aid in code optimization. Simply put, the eslint-plugin-unicorn is an essential tool for JavaScript developers who aim to write cleaner code, maintain high performance and ensure a steadfast fidelity to best practices.

How do you use eslint-plugin-unicorn?

Using eslint-plugin-unicorn is straightforward and simple. First, you need to install the package using npm:

npm install --save-dev eslint eslint-plugin-unicorn

Then, you can either use a preset configuration or configure each rule manually within your project's package.json file. If you're managing the rules without a preset, make sure to include the same env and parserOptions configuration as shown in the example below:

{
  "name": "my-awesome-project",
  "eslintConfig": {
    "env": {
      "es2024": true
    },
    "parserOptions": {
      "ecmaVersion": "latest",
      "sourceType": "module"
    },
    "plugins": [
      "unicorn"
    ],
    "rules": {
      "unicorn/better-regex": "error",
      "unicorn/…": "error"
    }
  }
}

In this configuration example, the project uses the rules "unicorn/better-regex" and "unicorn/…" with an error level of enforcement (meaning violations will cause the linter to throw an error).

Where are the eslint-plugin-unicorn docs?

The documentation for eslint-plugin-unicorn can be found directly in the project's GitHub repository at https://github.com/sindresorhus/eslint-plugin-unicorn. This documentation provides an exhaustive list of the rules provided by eslint-plugin-unicorn, along with details about what each rule does, how to configure it, and some examples of what constitutes a violation. Each rule has its own document with specific examples, justifications and suggestions related to its use.