Gathering detailed insights and metrics for prettier-eslint-plugin
Gathering detailed insights and metrics for prettier-eslint-plugin
Gathering detailed insights and metrics for prettier-eslint-plugin
Gathering detailed insights and metrics for prettier-eslint-plugin
eslint-config-ts-prefixer
Ruleset of meaningful Lint rules on runtime and beautiful formatters. (prettier & eslint-plugin-import & eslint-plugin-sort-keys-custom-order)
eslint-plugin-prettier
Runs prettier as an eslint rule
@typescript-eslint/eslint-plugin
TypeScript plugin for ESLint
prettier-linter-helpers
Utilities to help expose prettier output in linting tools
npm install prettier-eslint-plugin
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
30 Commits
3 Branches
1 Contributors
Updated on 03 Apr 2017
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
44%
36
Compared to previous day
Last week
29.3%
150
Compared to previous week
Last month
-30.6%
682
Compared to previous month
Last year
1,053.4%
5,571
Compared to previous year
This is a fork of prettier-eslint-webpack-plugin by Daniël Terwiel
Webpack 2.* plugin for prettier-eslint
yarn add prettier-eslint-plugin --dev
Encoding to use when reading / writing files
Default: 'utf-8'
Only process these file extensions
Default: ['.js', '.jsx']
... Furthermore the entire prettier-eslint API is exposed:
The path of the file being formatted can be used to override eslintConfig (eslint will be used to find the relevant config for the file).
Default: undefined
The config to use for formatting with ESLint. Can be overridden with filePath.
Default: JavaScript Standard Style
The options to pass for formatting with prettier. If not provided, prettier-eslint
will attempt to create the options based on the eslintConfig
(whether that's provided or derived via filePath
). You can also provide some of the options and have the remaining options derived via your eslint config. This is useful for options like parser
.
Default: undefined
prettier-eslint does quite a bit of logging if you want it to. Pass this to set the amount of logs you want to see.
*Default: process.env.LOG_LEVEL
By default, prettier-eslint will try to find the relevant eslint (and prettier) module based on the filePath. If it cannot find one, then it will use the version that prettier-eslint has installed locally. If you'd like to specify a path to the eslint module you would like to have prettier-eslint use, then you can provide the full path to it with the eslintPath option.
Default: undefined
Your webpack.dev.js
file:
1import { PrettierEslintPlugin } from 'prettier-eslint-webpack-plugin' 2import fs from 'fs' 3 4... 5 6const eslintConfig = fs.readFileSync('path/to/.eslintrc') 7 8module.exports = { 9 ... 10 plugins: { 11 ... 12 new PrettierEslintPlugin({ 13 encoding: ['utf-16'], 14 extensions: '.jsf00', 15 eslintConfig: eslintConfig, 16 logLevel: 'trace', 17 prettierOptions: { 18 singleQuote: false, 19 } 20 }) 21 ... 22 } 23 ... 24}
Welcome
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/29 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
64 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More