Registry / testing / that-dev-library

that-dev-library

JSON →
library0.3.1jsnpmunverified

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.

npm install that-dev-library
INSTALL
IMPORT
SIG · THAT-DEV-LIBRARY
T
that-dev-library
testingjavascriptv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

eslintConfig
✓ import eslintConfig from 'that-dev-library'
✗ const eslintConfig = require('that-dev-library')
ESM default export; require() not supported.
presets
✓ import { presets } from 'that-dev-library'
✗ import presets from 'that-dev-library'
Named export 'presets' is available from version 0.2.0+.
TypeConfig
✓ import type { TypeConfig } from 'that-dev-library'
✗ import { TypeConfig } from 'that-dev-library'
TypeScript type export; use `import type` for type-only imports.

Demonstrates using the ESLint presets from the library in both CJS and ESM configuration files.

// 1. Install via npm // npm install that-dev-library // 2. Create .eslintrc.cjs const { presets } = require('that-dev-library'); // CJS still supported via .cjs module.exports = { ...presets.eslint, rules: { // custom rules } }; // 3. Or use ESM in .eslintrc.mjs import { presets } from 'that-dev-library'; export default { ...presets.eslint };
Debug
Known issues
breakingVersion 0.3.0 renames `commonPresets` export to `presets`
fix
Change imports from `commonPresets` to `presets`.
affects: <0.3.0
deprecated`eslintConfig` default export is deprecated in favor of named export `presets`
fix
Use `import { presets } from 'that-dev-library'` instead.
affects: >=0.2.0
gotchaPackage uses `type: module` in package.json; CJS requires `.cjs` extension.
fix
Rename `.eslintrc.js` to `.eslintrc.cjs` or use ESM syntax.
affects: >=0.3.0
gotchaESLint plugins are not bundled; you must install them separately.
fix
Add required plugins to your `devDependencies` as shown in README.
affects: >=0.0.0
deprecatedTypeScript support is experimental before v0.4.0
fix
Use `TypeConfig` import only if necessary; expect breaking changes.
affects: <0.4.0
Errors
Common errors & fixes
Cannot find module 'that-dev-library'
Package not installed or running from wrong directory.
fix
Run `npm install that-dev-library` from project root.
SyntaxError: Unexpected token 'export'
Attempting to import ESM in a CJS-only environment without proper configuration.
fix
Use `.mjs` extension or `type: module` in package.json, or use `.cjs` with require().
The requested module 'that-dev-library' does not provide an export named 'presets'
Old version (<0.2.0) does not have 'presets' export.
fix
Update package to version >=0.2.0.
TypeError: presets.eslint is not a function
Incorrect usage; presets.eslint is an object, not a function.
fix
Spread the object: `...presets.eslint` instead of calling it.
Upgrade
Version history
0.3.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
that-dev-library — npm install that-dev-library · libregistry