![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@fictiv/prettier-eslint-webpack-plugin
Advanced tools
Webpack plugin that formats your JavaScript using prettier followed by eslint --fix
Webpack 2.* plugin for prettier-eslint
yarn add prettier-eslint-webpack-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: Fictiv 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:
import { PrettierEslintPlugin } from 'prettier-eslint-webpack-plugin'
import fs from 'fs'
...
const eslintConfig = fs.readFileSync('path/to/.eslintrc')
module.exports = {
...
plugins: {
...
new PrettierEslintPlugin({
encoding: ['utf-16'],
extensions: '.jsf00',
eslintConfig: eslintConfig,
logLevel: 'trace',
prettierOptions: {
singleQuote: false,
}
})
...
}
...
}
Welcome
MIT
FAQs
Webpack plugin that formats your JavaScript using prettier followed by eslint --fix
We found that @fictiv/prettier-eslint-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.