Registry / testing / eslint-config-freshegg

eslint-config-freshegg

JSON →
library1.0.7jsnpmunverified

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.

npm install eslint-config-freshegg
INSTALL
IMPORT
SIG · ESLINT-CONFIG-FRES
E
eslint-config-freshegg
testingjavascriptv1.0.7
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
module.exports = require('eslint-config-freshegg')
import config from 'eslint-config-freshegg'
This is a CommonJS package; use require for .eslintrc.js or .eslintrc.cjs files.
typescript
module.exports = require('eslint-config-freshegg/typescript')
import { typescript } from 'eslint-config-freshegg'
Separate config for TypeScript projects. Requires TypeScript to be installed.
prettier
module.exports = {...require('eslint-config-freshegg'), ...require('eslint-config-freshegg/prettier')}
module.exports = require('eslint-config-freshegg/prettier')
The prettier config is additive; combine with the base config.

Shows how to install and configure the ESLint and Prettier config for a TypeScript project.

// Install dependencies // npm install --save-dev eslint prettier typescript eslint-config-freshegg // .eslintrc.js module.exports = { extends: ['eslint-config-freshegg'], parserOptions: { project: './tsconfig.json' } }; // .prettierrc (if needed) module.exports = require('eslint-config-freshegg/prettier'); // package.json scripts "lint": "eslint . --ext .js,.ts"
Debug
Known issues
breakingRequires ESLint 8.x; incompatible with ESLint 7 or 9.
fix
Use ESLint 8.x or check for v2 release with ESLint 9 support.
affects: 1.0.0-1.0.7
gotchaThe config enables eslint-plugin-prettier which may cause conflicts if you have separate Prettier config.
fix
Disable prettier rules in eslint if using standalone Prettier.
affects: >=1.0.0
gotchaTypeScript config requires tsconfig.json to be present and referenced in parserOptions.project.
fix
Ensure tsconfig.json exists and parserOptions.project points to it.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'prettier' declared in 'eslint-config-freshegg'
Missing eslint-plugin-prettier dependency.
fix
npm install --save-dev eslint-plugin-prettier
Error: Cannot find module 'typescript'
TypeScript not installed but using TypeScript config.
fix
npm install --save-dev typescript or switch to base config without typescript.
Upgrade
Version history
1.0.7latest on npm
Audit
Dependencies
eslintrequiredCore linting engine
prettierrequiredCode formatting
typescriptoptionalTypeScript parsing and rules
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources