Registry / testing / lint-and-ts-configs

lint-and-ts-configs

JSON →
library1.2.9jsnpmunverified

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.

npm install lint-and-ts-configs
INSTALL
IMPORT
SIG · LINT-AND-TS-CONFIG
L
lint-and-ts-configs
testingjavascriptv1.2.9
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.

ESLint config
module.exports = { extends: ['./node_modules/lint-and-ts-configs/lib/eslint/base.js'] }
require('lint-and-ts-configs').eslint
Use relative path to node_modules in extends, not a direct require.
semantic-release config
module.exports = { extends: 'lint-and-ts-configs/lib/semantic/base', repositoryUrl: '...' }
extends: 'lint-and-ts-configs/semantic/base'
Must include 'lib/' in the path.
TypeScript config
{"extends": "./node_modules/lint-and-ts-configs/lib/tsconfig/node.json"}
{"extends": "lint-and-ts-configs/tsconfig/node"}
Use absolute path relative to project root, include .json extension.

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/**/*"] }
Debug
Known issues
breakingv1.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+
affects: =1.0.1
gotchaAll 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/...'
affects: *
gotchasemantic-release config requires 'lib/' in the path: 'lint-and-ts-configs/lib/semantic/base'
fix
Use extends: 'lint-and-ts-configs/lib/semantic/base'
affects: *
deprecatedPackage 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
affects: >=1.0.0
Errors
Common errors & fixes
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'lint-and-ts-configs'
Package not installed
fix
npm install lint-and-ts-configs --save-dev
Failed to load config "lint-and-ts-configs/lib/eslint/base" to extend from.
Incorrect extends path, missing 'lib/' or relative path
fix
Use './node_modules/lint-and-ts-configs/lib/eslint/base.js'
Cannot find module '@typescript-eslint/parser'
Missing peer dependency
fix
npm install @typescript-eslint/parser --save-dev
Cannot find module '@typescript-eslint/eslint-plugin'
Missing peer dependency
fix
npm install @typescript-eslint/eslint-plugin --save-dev
Upgrade
Version history
1.2.9latest on npm
Audit
Dependencies
@typescript-eslint/eslint-pluginrequiredpeer dependency for ESLint TypeScript rules
@typescript-eslint/parserrequiredpeer dependency for ESLint TypeScript parser
typescriptrequiredpeer dependency for TypeScript compilation
Agent activity
8 hits · last 30 days
node
8
Resources
lint-and-ts-configs — npm install lint-and-ts-configs · libregistry