{"id":26469,"library":"that-dev-library","title":"That Dev Library","description":"A standard collection of dev tools and ESLint configurations used across ThatDevCompany projects. Current stable version is 0.3.1. It encapsulates commonly used development dependencies and shared ESLint presets to enforce consistent code style and best practices across multiple repositories. This package is opinionated and tailored for ThatDevCompany's ecosystem, making it easy to set up linting and formatting without repeating configuration. It is not a general-purpose library but rather an internal tooling package.","status":"active","version":"0.3.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install that-dev-library","lang":"bash","label":"npm"},{"cmd":"yarn add that-dev-library","lang":"bash","label":"yarn"},{"cmd":"pnpm add that-dev-library","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM default export; require() not supported.","wrong":"const eslintConfig = require('that-dev-library')","symbol":"eslintConfig","correct":"import eslintConfig from 'that-dev-library'"},{"note":"Named export 'presets' is available from version 0.2.0+.","wrong":"import presets from 'that-dev-library'","symbol":"presets","correct":"import { presets } from 'that-dev-library'"},{"note":"TypeScript type export; use `import type` for type-only imports.","wrong":"import { TypeConfig } from 'that-dev-library'","symbol":"TypeConfig","correct":"import type { TypeConfig } from 'that-dev-library'"}],"quickstart":{"code":"// 1. Install via npm\n// npm install that-dev-library\n\n// 2. Create .eslintrc.cjs\nconst { presets } = require('that-dev-library'); // CJS still supported via .cjs\nmodule.exports = {\n  ...presets.eslint,\n  rules: {\n    // custom rules\n  }\n};\n\n// 3. Or use ESM in .eslintrc.mjs\nimport { presets } from 'that-dev-library';\nexport default {\n  ...presets.eslint\n};","lang":"javascript","description":"Demonstrates using the ESLint presets from the library in both CJS and ESM configuration files."},"warnings":[{"fix":"Change imports from `commonPresets` to `presets`.","message":"Version 0.3.0 renames `commonPresets` export to `presets`","severity":"breaking","affected_versions":"<0.3.0"},{"fix":"Use `import { presets } from 'that-dev-library'` instead.","message":"`eslintConfig` default export is deprecated in favor of named export `presets`","severity":"deprecated","affected_versions":">=0.2.0"},{"fix":"Rename `.eslintrc.js` to `.eslintrc.cjs` or use ESM syntax.","message":"Package uses `type: module` in package.json; CJS requires `.cjs` extension.","severity":"gotcha","affected_versions":">=0.3.0"},{"fix":"Add required plugins to your `devDependencies` as shown in README.","message":"ESLint plugins are not bundled; you must install them separately.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use `TypeConfig` import only if necessary; expect breaking changes.","message":"TypeScript support is experimental before v0.4.0","severity":"deprecated","affected_versions":"<0.4.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install that-dev-library` from project root.","cause":"Package not installed or running from wrong directory.","error":"Cannot find module 'that-dev-library'"},{"fix":"Use `.mjs` extension or `type: module` in package.json, or use `.cjs` with require().","cause":"Attempting to import ESM in a CJS-only environment without proper configuration.","error":"SyntaxError: Unexpected token 'export'"},{"fix":"Update package to version >=0.2.0.","cause":"Old version (<0.2.0) does not have 'presets' export.","error":"The requested module 'that-dev-library' does not provide an export named 'presets'"},{"fix":"Spread the object: `...presets.eslint` instead of calling it.","cause":"Incorrect usage; presets.eslint is an object, not a function.","error":"TypeError: presets.eslint is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}