All Projects → danielterwiel → prettier-eslint-webpack-plugin

danielterwiel / prettier-eslint-webpack-plugin

Licence: other
Webpack plugin for prettier-eslint which ESLint's settings is set to JavaScript Standard Style

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to prettier-eslint-webpack-plugin

prettier-webpack-plugin
Process your Webpack dependencies with Prettier
Stars: ✭ 47 (+95.83%)
Mutual labels:  webpack-plugin, prettier
Webpack Alioss Plugin
阿里 oss-webpack 自动上传插件
Stars: ✭ 35 (+45.83%)
Mutual labels:  webpack-plugin, webpack2
ignore-emit-webpack-plugin
Prevents ignored files from being emitted during a Webpack build
Stars: ✭ 17 (-29.17%)
Mutual labels:  webpack-plugin, webpack2
Budgeting
Budgeting - React + Redux + Webpack (tree shaking) Sample App
Stars: ✭ 971 (+3945.83%)
Mutual labels:  prettier, webpack2
Multipage Webpack Plugin
A plugin that makes handling templates and asset distribution for multi-page applications using webpack trivial
Stars: ✭ 168 (+600%)
Mutual labels:  webpack-plugin, webpack2
dva-typescript-antd-starter-kit
A admin dashboard application demo based on antd by typescript and dva
Stars: ✭ 61 (+154.17%)
Mutual labels:  webpack-plugin, prettier
Browser Sync Webpack Plugin
Easily use BrowserSync in your Webpack project.
Stars: ✭ 356 (+1383.33%)
Mutual labels:  webpack-plugin, webpack2
tde-webpack-mjml-plugin
Webpack plugin for converting MJML files to HTML
Stars: ✭ 12 (-50%)
Mutual labels:  webpack-plugin, webpack2
Svg Sprite Loader
Webpack loader for creating SVG sprites.
Stars: ✭ 1,822 (+7491.67%)
Mutual labels:  webpack-plugin, webpack2
Everything Is A Plugin
Everything is a Plugin: Mastering webpack from the inside out. NgConf 2017
Stars: ✭ 123 (+412.5%)
Mutual labels:  webpack-plugin, webpack2
Webpack Cdn Plugin
A webpack plugin that use externals of CDN urls for production and local node_modules for development
Stars: ✭ 306 (+1175%)
Mutual labels:  webpack-plugin, webpack2
webpack-boilerplate
Webpack 4 boilerplate (babel, eslint, prettier, jest, sass, postcss, hmr, browsersync)
Stars: ✭ 33 (+37.5%)
Mutual labels:  prettier, webpack2
Webpack Core Usage
webpack2完整系列课程,欢迎阅读。同时欢迎移步我的react全家桶文章全集: https://github.com/liangklfangl/react-article-bucket
Stars: ✭ 94 (+291.67%)
Mutual labels:  webpack-plugin, webpack2
Html Res Webpack Plugin
plugin for generating html in webpack
Stars: ✭ 170 (+608.33%)
Mutual labels:  webpack-plugin, webpack2
bower-resolve-webpack-plugin
Offers an enhanced bower support for enhanced-resolve plugin.
Stars: ✭ 12 (-50%)
Mutual labels:  webpack-plugin, webpack2
angular-starter
🚀 Angular 14 Starter with Storybook, Transloco, Jest, TestCafe, Docker, ESLint, Material & Prettier 🚀
Stars: ✭ 124 (+416.67%)
Mutual labels:  prettier
eslint-config-typescript-unified
🛠️ A unified ESLint configuration with sensible defaults for TypeScript projects.
Stars: ✭ 15 (-37.5%)
Mutual labels:  prettier
vue3-vite-ts
Vue 3 Scaffolding (Vite + TS + Linters + Jest + TailwindCSS)
Stars: ✭ 27 (+12.5%)
Mutual labels:  prettier
loading-screen
🚥Loading screen for webpack plugin inspired by Nuxt.js's loading screen
Stars: ✭ 56 (+133.33%)
Mutual labels:  webpack-plugin
monaco-editor-esm-webpack-plugin
No description or website provided.
Stars: ✭ 25 (+4.17%)
Mutual labels:  webpack-plugin

Prettier Eslint Webpack Plugin

Webpack 5 plugin for prettier-eslint

DEPRECATED

Nothing to see here anymore :) ... --> try to update ;)

Installation

yarn add prettier-eslint-webpack-plugin --dev

Options

encoding (?String)

Encoding to use when reading / writing files

Default: 'utf-8'

extensions (?Array)

Only process these file extensions

Default: ['.js', '.jsx']

... Furthermore the entire prettier-eslint API is exposed:

filePath (?String)

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

eslintConfig (?Object)

The config to use for formatting with ESLint. Can be overridden with filePath.

Default: JavaScript Standard Style

prettierOptions (?Object)

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

logLevel (?Enum: ['trace', 'debug', 'info', 'warn', 'error', 'silent'])

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

eslintPath (?String)

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

Example

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,
      }
    })
    ...
  }
  ...
}

Inspiration

Licence

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].