lint-and-ts-configs

raw JSON →
1.2.9 verified Fri May 01 auth: no javascript maintenance

A shared configuration package for ESLint, TypeScript, and semantic-release, providing base configurations for linting and TypeScript compilation. Version 1.2.9 (latest) is stable, with infrequent releases. Designed for monorepos and projects needing consistent linting and TypeScript settings without manual setup. Differentiators include a unified config approach for ESLint, TSConfig, and semantic-release, though documentation is sparse and updates are rare. Note: project seems to be in maintenance mode, last release in 2021.

error Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'lint-and-ts-configs'
cause Package not installed
fix
npm install lint-and-ts-configs --save-dev
error Failed to load config "lint-and-ts-configs/lib/eslint/base" to extend from.
cause Incorrect extends path, missing 'lib/' or relative path
fix
Use './node_modules/lint-and-ts-configs/lib/eslint/base.js'
error Cannot find module '@typescript-eslint/parser'
cause Missing peer dependency
fix
npm install @typescript-eslint/parser --save-dev
error Cannot find module '@typescript-eslint/eslint-plugin'
cause Missing peer dependency
fix
npm install @typescript-eslint/eslint-plugin --save-dev
breaking v1.0.1 changed import/extensions config, requiring update to ESLint extends path if coming from v1.0.0
fix Update extends path to './node_modules/lint-and-ts-configs/lib/eslint/base.js' if using v1.0.1+
gotcha All configs must be referenced with a relative path (./node_modules/...) in extends, not a package name
fix Use './node_modules/lint-and-ts-configs/lib/...' instead of 'lint-and-ts-configs/lib/...'
gotcha semantic-release config requires 'lib/' in the path: 'lint-and-ts-configs/lib/semantic/base'
fix Use extends: 'lint-and-ts-configs/lib/semantic/base'
deprecated Package has not been updated since 2021; TypeScript and ESLint rules may be outdated
fix Consider migrating to a more maintained config package like @typescript-eslint/eslint-plugin defaults
npm install lint-and-ts-configs
yarn add lint-and-ts-configs
pnpm add lint-and-ts-configs

Set up ESLint, TypeScript, and semantic-release configs

// Install peer dependencies
npm install --save-dev lint-and-ts-configs @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript

// .eslintrc.js
module.exports = {
  extends: [
    './node_modules/lint-and-ts-configs/lib/eslint/base.js',
  ]
};

// tsconfig.json
{
  "extends": "./node_modules/lint-and-ts-configs/lib/tsconfig/node.json",
  "compilerOptions": {
    "rootDir": ".",
    "baseUrl": ".",
    "paths": {
      "@helpers/*": ["src/helpers/*"]
    }
  },
  "include": ["src/**/*"]
}