That Dev Library

raw JSON →
0.3.1 verified Fri May 01 auth: no javascript

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.

error Cannot find module 'that-dev-library'
cause Package not installed or running from wrong directory.
fix
Run npm install that-dev-library from project root.
error SyntaxError: Unexpected token 'export'
cause 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().
error The requested module 'that-dev-library' does not provide an export named 'presets'
cause Old version (<0.2.0) does not have 'presets' export.
fix
Update package to version >=0.2.0.
error TypeError: presets.eslint is not a function
cause Incorrect usage; presets.eslint is an object, not a function.
fix
Spread the object: ...presets.eslint instead of calling it.
breaking Version 0.3.0 renames `commonPresets` export to `presets`
fix Change imports from `commonPresets` to `presets`.
deprecated `eslintConfig` default export is deprecated in favor of named export `presets`
fix Use `import { presets } from 'that-dev-library'` instead.
gotcha Package uses `type: module` in package.json; CJS requires `.cjs` extension.
fix Rename `.eslintrc.js` to `.eslintrc.cjs` or use ESM syntax.
gotcha ESLint plugins are not bundled; you must install them separately.
fix Add required plugins to your `devDependencies` as shown in README.
deprecated TypeScript support is experimental before v0.4.0
fix Use `TypeConfig` import only if necessary; expect breaking changes.
npm install that-dev-library
yarn add that-dev-library
pnpm add that-dev-library

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
};