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 16, 2024 via pnpm

eslint-plugin-unicorn 36.0.0

Various awesome ESLint rules
Package summary
Share
6
issues
2
high severity
license
2
1
moderate severity
meta
1
3
low severity
license
3
11
licenses
146
MIT
14
ISC
9
Apache-2.0
18
other licenses
BSD-2-Clause
9
BSD-3-Clause
2
(MIT OR CC0-1.0)
2
Python-2.0
1
+ 4 more
Package created
20 Sep 2016
Version published
11 Sep 2021
Maintainers
2
Total deps
187
Direct deps
13
License
MIT

Issues

6

2 high severity issues

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

1 moderate severity issue

moderate
via: eslint-template-visitor@2.3.2
Collapse
Expand

3 low severity issues

low
Recommendation: Read and validate the license terms
via: eslint-template-visitor@2.3.2
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
146 Packages, Including:
@babel/code-frame@7.24.2
@babel/compat-data@7.24.4
@babel/core@7.24.5
@babel/eslint-parser@7.24.5
@babel/generator@7.24.5
@babel/helper-compilation-targets@7.23.6
@babel/helper-environment-visitor@7.22.20
@babel/helper-function-name@7.23.0
@babel/helper-hoist-variables@7.22.5
@babel/helper-module-imports@7.24.3
@babel/helper-module-transforms@7.24.5
@babel/helper-simple-access@7.24.5
@babel/helper-split-export-declaration@7.24.5
@babel/helper-string-parser@7.24.1
@babel/helper-validator-identifier@7.24.5
@babel/helper-validator-option@7.23.5
@babel/helpers@7.24.5
@babel/highlight@7.24.5
@babel/parser@7.24.5
@babel/template@7.24.0
@babel/traverse@7.24.5
@babel/types@7.24.5
@eslint-community/eslint-utils@4.4.0
@eslint-community/regexpp@4.10.0
@eslint/eslintrc@3.0.2
@eslint/js@9.2.0
@jridgewell/gen-mapping@0.3.5
@jridgewell/resolve-uri@3.1.2
@jridgewell/set-array@1.2.1
@jridgewell/sourcemap-codec@1.4.15
@jridgewell/trace-mapping@0.3.25
@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1
@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
browserslist@4.23.0
builtin-modules@3.3.0
callsites@3.1.0
chalk@2.4.2
chalk@4.1.2
ci-info@3.9.0

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
14 Packages, Including:
electron-to-chromium@1.4.772
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@5.1.1
minimatch@3.1.2
picocolors@1.0.1
semver@5.7.2
semver@6.3.1
semver@7.6.2
which@2.0.2
yallist@3.1.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
9 Packages, Including:
@ampproject/remapping@2.3.0
@humanwhocodes/config-array@0.13.0
@humanwhocodes/module-importer@1.0.1
@humanwhocodes/retry@0.2.4
eslint-visitor-keys@2.1.0
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 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
9 Packages, Including:
eslint-scope@5.1.1
eslint-scope@8.0.1
espree@10.0.1
esrecurse@4.3.0
estraverse@4.3.0
estraverse@5.3.0
esutils@2.0.3
normalize-package-data@2.5.0
uri-js@4.4.1

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 4.0 International

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:
caniuse-lite@1.0.30001620

GPL-3.0-or-later OR MIT

Permissive
1 Packages, Including:
eslint-template-visitor@2.3.2

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

13
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
ci-info3.9.07.21 kBMIT
prod
clean-regexp1.0.02.43 kBMIT
prod
eslint-template-visitor2.3.210.04 kBGPL-3.0-or-later OR MIT
prod
1
1
1
eslint-utils3.0.059.91 kBMIT
prod
eslint9.2.02.89 MBMIT
prod peer
is-builtin-module3.2.11.92 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
safe-regex2.1.16.33 kBMIT
prod
semver7.6.293.19 kBISC
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.