{"id":19520,"library":"eslint-config-freshegg","title":"eslint-config-freshegg","description":"A shared ESLint and Prettier configuration package from FreshEgg UK. Version 1.0.7 supports ESLint 8, Prettier 2, and TypeScript 5. It provides a consistent set of linting and formatting rules for JavaScript and TypeScript projects. Unlike many configs, it includes TypeScript-specific rules and integrates Prettier via eslint-plugin-prettier. The package is designed to be minimal and opinionated, reducing configuration overhead. Updates are infrequent; at v1.0.7, it is considered stable.","status":"active","version":"1.0.7","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/FreshEggUK/eslint-config-freshegg","tags":["javascript","typescript","ecmascript","eslint","eslint-config","lint","config","prettier"],"install":[{"cmd":"npm install eslint-config-freshegg","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-freshegg","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-freshegg","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core linting engine","package":"eslint","optional":false},{"reason":"Code formatting","package":"prettier","optional":false},{"reason":"TypeScript parsing and rules","package":"typescript","optional":true}],"imports":[{"note":"This is a CommonJS package; use require for .eslintrc.js or .eslintrc.cjs files.","wrong":"import config from 'eslint-config-freshegg'","symbol":"default","correct":"module.exports = require('eslint-config-freshegg')"},{"note":"Separate config for TypeScript projects. Requires TypeScript to be installed.","wrong":"import { typescript } from 'eslint-config-freshegg'","symbol":"typescript","correct":"module.exports = require('eslint-config-freshegg/typescript')"},{"note":"The prettier config is additive; combine with the base config.","wrong":"module.exports = require('eslint-config-freshegg/prettier')","symbol":"prettier","correct":"module.exports = {...require('eslint-config-freshegg'), ...require('eslint-config-freshegg/prettier')}"}],"quickstart":{"code":"// Install dependencies\n// npm install --save-dev eslint prettier typescript eslint-config-freshegg\n\n// .eslintrc.js\nmodule.exports = {\n  extends: ['eslint-config-freshegg'],\n  parserOptions: {\n    project: './tsconfig.json'\n  }\n};\n\n// .prettierrc (if needed)\nmodule.exports = require('eslint-config-freshegg/prettier');\n\n// package.json scripts\n\"lint\": \"eslint . --ext .js,.ts\"","lang":"javascript","description":"Shows how to install and configure the ESLint and Prettier config for a TypeScript project."},"warnings":[{"fix":"Use ESLint 8.x or check for v2 release with ESLint 9 support.","message":"Requires ESLint 8.x; incompatible with ESLint 7 or 9.","severity":"breaking","affected_versions":"1.0.0-1.0.7"},{"fix":"Disable prettier rules in eslint if using standalone Prettier.","message":"The config enables eslint-plugin-prettier which may cause conflicts if you have separate Prettier config.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Ensure tsconfig.json exists and parserOptions.project points to it.","message":"TypeScript config requires tsconfig.json to be present and referenced in parserOptions.project.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install --save-dev eslint-plugin-prettier","cause":"Missing eslint-plugin-prettier dependency.","error":"Error: Failed to load plugin 'prettier' declared in 'eslint-config-freshegg'"},{"fix":"npm install --save-dev typescript or switch to base config without typescript.","cause":"TypeScript not installed but using TypeScript config.","error":"Error: Cannot find module 'typescript'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}