{"library":"prettier-eslint-plugin","title":"prettier-eslint-webpack-plugin (fork)","description":"Fork of prettier-eslint-webpack-plugin (v1.1.4, last updated 2017) that integrates prettier-eslint formatting into Webpack 2 build pipeline as a plugin. This package is a legacy fork with no active maintenance; it runs prettier and eslint on files after compilation. Differs from alternatives by being a Webpack plugin rather than a loader or CLI tool. Dependencies include prettier, eslint, and prettier-eslint. Not recommended for new projects; use eslint-plugin-prettier or prettier-eslint-cli instead.","language":"javascript","status":"deprecated","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-eslint-plugin"],"cli":null},"imports":["import { PrettierEslintPlugin } from 'prettier-eslint-plugin'","const { PrettierEslintPlugin } = require('prettier-eslint-plugin')","import { PrettierEslintPlugin } from 'prettier-eslint-plugin'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { PrettierEslintPlugin } from 'prettier-eslint-plugin';\nimport fs from 'fs';\n\nconst eslintConfig = fs.readFileSync('.eslintrc', 'utf-8');\nconst config = {\n  plugins: [new PrettierEslintPlugin({\n    encoding: 'utf-8',\n    extensions: ['.js', '.jsx'],\n    eslintConfig: JSON.parse(eslintConfig),\n    logLevel: 'warn',\n    prettierOptions: { singleQuote: true }\n  })]\n};\n\nexport default config;","lang":"javascript","description":"Configures the PrettierEslintPlugin in a Webpack config with eslintConfig from file and custom prettier options.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}