Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 19, 2024 via pnpm

eslint-plugin-prettier 5.0.0

Runs prettier as an eslint rule
Package summary
Share
0
issues
7
licenses
74
MIT
6
Apache-2.0
6
BSD-2-Clause
10
other licenses
ISC
6
BSD-3-Clause
2
Python-2.0
1
0BSD
1
Package created
26 Jan 2017
Version published
11 Jul 2023
Maintainers
6
Total deps
96
Direct deps
4
License
MIT

Issues

0
This package has no issues

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
74 Packages, Including:
@eslint-community/eslint-utils@4.4.0
@eslint-community/regexpp@4.10.0
@eslint/eslintrc@3.1.0
@eslint/js@9.3.0
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
@pkgr/core@0.1.1
acorn-jsx@5.3.2
acorn@8.11.3
ajv@6.12.6
ansi-regex@5.0.1
ansi-styles@4.3.0
balanced-match@1.0.2
brace-expansion@1.1.11
callsites@3.1.0
chalk@4.1.2
color-convert@2.0.1
color-name@1.1.4
concat-map@0.0.1
cross-spawn@7.0.3
debug@4.3.4
deep-is@0.1.4
escape-string-regexp@4.0.0
eslint-plugin-prettier@5.0.0
eslint@9.3.0
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@5.0.0
flat-cache@4.0.1
globals@14.0.0
has-flag@4.0.0
ignore@5.3.1
import-fresh@3.3.0
imurmurhash@0.1.4
is-extglob@2.1.1
is-glob@4.0.3
is-path-inside@3.0.3
js-yaml@4.1.0
json-buffer@3.0.1
json-schema-traverse@0.4.1
json-stable-stringify-without-jsonify@1.0.1
keyv@4.5.4
levn@0.4.1
locate-path@6.0.0
lodash.merge@4.6.2
ms@2.1.2
natural-compare@1.4.0

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
6 Packages, Including:
@humanwhocodes/config-array@0.13.0
@humanwhocodes/module-importer@1.0.1
@humanwhocodes/retry@0.3.0
eslint-visitor-keys@3.4.3
eslint-visitor-keys@4.0.0
fast-diff@1.3.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
6 Packages, Including:
eslint-scope@8.0.1
espree@10.0.1
esrecurse@4.3.0
estraverse@5.3.0
esutils@2.0.3
uri-js@4.4.1

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
6 Packages, Including:
fastq@1.17.1
flatted@3.3.1
glob-parent@6.0.2
isexe@2.0.0
minimatch@3.1.2
which@2.0.2

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

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

BSD Zero Clause 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
include-copyright
include-license
include-original
Cannot
hold-liable
Must
1 Packages, Including:
tslib@2.6.2
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

4
All Dependencies CSV
ⓘ This is a list of eslint-plugin-prettier 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
eslint9.3.02.9 MBMIT
prod peer
prettier-linter-helpers1.0.04.2 kBMIT
prod
prettier3.2.52.06 MBMIT
prod peer
synckit0.8.813.52 kBMIT
prod

Visualizations

Frequently Asked Questions

What does eslint-plugin-prettier do?

The eslint-plugin-prettier is an essential tool for JavaScript development that runs Prettier as an ESLint rule and reports any formatting discrepancies as individual ESLint issues. This integration ensures that your code remains consistent with the desired format by using Prettier for automatic code formatting while also leveraging the powerful analysis capabilities of ESLint to detect potential coding problems. However, if you find that your preferred formatting does not match Prettier’s output, the readme suggests considering the use of alternative tools like prettier-eslint.

How do you use eslint-plugin-prettier?

To incorporate eslint-plugin-prettier into your project, you first need to install the package as a development dependency by running npm install --save-dev eslint-plugin-prettier. The plugin doesn't install Prettier or ESLint for you, so you should also ensure that these two packages are included in your project. Following this, you must add prettier to the plugins array and define a rule for prettier/prettier in your .eslintrc.json config file:

{
  "plugins": ["prettier"],
  "rules": {
    "prettier/prettier": "error"
  }
}

For the optimal setting, it's advised to disable all other ESLint rules related to code formatting, leaving only the rules that detect potential code issues active. You can achieve this by using the eslint-config-prettier package and the plugin:prettier/recommended config which comes with the eslint-plugin-prettier. This configuration can be implemented by installing eslint-config-prettier and adding plugin:prettier/recommended to the extends array in your .eslintrc.json.

{
  "extends": ["plugin:prettier/recommended"]
}

Where are the eslint-plugin-prettier docs?

The official documentation of eslint-plugin-prettier can be found on its GitHub page. Here, you'll find the complete information about the installation, configuration, usage, and potential issues concerning the use of the eslint-plugin-prettier. It's recommended to read Integrating with linters before installing to get a comprehensive understanding of its capabilities and how it integrates with other linters. For the record, using eslint-plugin-prettier makes your code more readable, maintainable, and professional by enforcing a consistent style, which in turn enables your team to focus more on the content of the code itself.