{"library":"prettier-plugin-eslint","title":"prettier-plugin-eslint","description":"Automatically integrates ESLint's auto-fix functionality into Prettier formatting, so that running Prettier also applies ESLint --fix. Version 1.0.2 is the current stable release; the plugin runs ESLint on .js files before Prettier formatting. Compared to alternatives like prettier-eslint, this is a Prettier plugin (not a separate CLI) and requires no extra configuration beyond installation. It assumes ESLint configuration is in an .eslintrc file (package.json support planned).","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-eslint"],"cli":null},"imports":["// No import needed; install and it auto-registers with Prettier.","// In .prettierrc: { \"plugins\": [\"prettier-plugin-eslint\"] }","const prettier = require('prettier'); await prettier.format(code, { parser: 'babel', plugins: ['prettier-plugin-eslint'] });"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install --save-dev prettier prettier-plugin-eslint eslint\necho '{\"plugins\": [\"prettier-plugin-eslint\"]}' > .prettierrc\necho '{\"rules\": {\"semi\": [\"error\", \"never\"]}}' > .eslintrc.json\n# Create a test file\necho 'const x = 1;' > test.js\n# Run Prettier\nnpx prettier --write test.js\n# Verify that semicolon is removed (ESLint --fix applied)\ncat test.js # should output: const x = 1","lang":"javascript","description":"Install prettier-plugin-eslint, configure .prettierrc, ESLint rule for no semicolons, and run Prettier to see autofix.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}