{"id":20318,"library":"prettier-eslint-config","title":"prettier-eslint-config","description":"A CLI tool that auto-generates ESLint and Prettier configuration files for projects, currently supporting TypeScript configurations only. Version 1.0.7 is the latest stable release, with no fixed release cadence. Differentiators: eliminates manual config setup for ESLint+Prettier via a single global command. Limitations: only TypeScript ESLint/Prettier configs are generated; JavaScript support is listed as TODO. Works globally (npm i -g).","status":"active","version":"1.0.7","language":"javascript","source_language":"en","source_url":"https://github.com/liuqh0609/lint-cli","tags":["javascript","eslint","prettier","cli"],"install":[{"cmd":"npm install prettier-eslint-config","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-eslint-config","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-eslint-config","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"CLI argument parsing","package":"commander","optional":false},{"reason":"Colored terminal output","package":"chalk","optional":false},{"reason":"File system operations (copy, write JSON)","package":"fs-extra","optional":false}],"imports":[{"note":"This is a CLI tool, not a library. No code imports available.","wrong":"import/prelint or require('prelint')","symbol":"prelint","correct":"npx prelint init  (or global install + prelint init)"},{"note":"Must be installed globally. Local install will not expose the 'prelint' command.","wrong":"npm i prettier-eslint-config --save-dev","symbol":"prettier-eslint-config","correct":"npm i -g prettier-eslint-config"}],"quickstart":{"code":"# Install globally\nnpm install -g prettier-eslint-config\n\n# Navigate to your project and initialize\ncd my-project\nprelint init\n\n# This creates .eslintrc.json and .prettierrc files based on TypeScript templates.","lang":"javascript","description":"Installs the tool globally and generates ESLint + Prettier config files in the current project directory."},"warnings":[{"fix":"Install with -g flag: npm install -g prettier-eslint-config","message":"Global installation is required. If installed locally, 'prelint' command will not be available.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Manually create .eslintrc.json and .prettierrc for JavaScript projects.","message":"Only TypeScript configurations are generated. JavaScript support is not yet implemented.","severity":"gotcha","affected_versions":"1.0.7"},{"fix":"Back up existing config files before running prelint init.","message":"The tool overwrites existing .eslintrc.json and .prettierrc files without backup.","severity":"breaking","affected_versions":"1.0.0-1.0.7"}],"env_vars":null,"search_vec":"'1.0.7':25 'auto':10 'auto-gener':9 'cadenc':35 'cli':6,70 'command':48 'config':4,39,53 'configur':15,22 'current':19 'differenti':36 'elimin':37 'eslint':3,12,42,68 'eslint/prettier':52 'file':16 'fix':33 'g':66 'generat':11,55 'global':47,63 'javascript':56,67 'latest':28 'limit':49 'list':59 'manual':38 'npm':64 'prettier':2,14,43,69 'prettier-eslint-config':1 'project':18 'releas':30,34 'setup':40 'singl':46 'stabl':29 'support':20,57 'todo':61 'tool':7 'typescript':21,51 'version':24 'via':44 'work':62","created_at":"2026-04-25T11:22:28.819748+00:00","updated_at":"2026-04-25T11:22:28.819748+00:00","problems":[{"fix":"npm uninstall prettier-eslint-config && npm install -g prettier-eslint-config","cause":"Package installed locally instead of globally.","error":"prelint: command not found"},{"fix":"Ensure you run prelint init inside a valid project directory. If the directory is empty, create a minimal package.json first.","cause":"The tool may not have permission or the directory does not exist.","error":"Error: ENOENT: no such file or directory, open 'path/to/project/.eslintrc.json'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"prettier-eslint-config","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/liuqh0609/lint-cli","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/prettier-eslint-config","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}