Registry / testing / yma-cli-lint

yma-cli-lint

JSON →
library1.0.53jsnpmunverified

An integrated linting tool for TypeScript projects, version 1.0.53. It provides a unified configuration for ESLint, Prettier, and Stylelint, reducing setup overhead. Regularly updated to support latest TypeScript versions. Key differentiator is its opinionated, zero-config approach for teams wanting consistent code quality without custom rules.

npm install yma-cli-lint
INSTALL
IMPORT
SIG · YMA-CLI-LINT
Y
yma-cli-lint
testingjavascriptv1.0.53
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.

lint
import lint from 'yma-cli-lint'
const lint = require('yma-cli-lint')
Default import; package is ESM-only, CJS require not supported.
LintConfig
import { LintConfig } from 'yma-cli-lint'
import LintConfig from 'yma-cli-lint'
Named export for TypeScript type.
runLint
import { runLint } from 'yma-cli-lint'
Function to execute linting programmatically.

Shows default import and usage of the main lint function with async/await error handling.

import lint from 'yma-cli-lint'; // Run lint on current directory lint().then(results => { console.log('Lint results:', results); }).catch(err => { console.error('Lint failed:', err); });
yma-cli-lint --version
Debug
Known issues
gotchaESM-only: package does not support CommonJS require, use import syntax.
fix
Use import statements instead of require(). Ensure your project is ESM or use .mjs extension.
affects: >=1.0.0
gotchaTypeScript peer dependency required: install typescript@^4.2.3 alongside yma-cli-lint.
fix
Run npm install typescript@^4.2.3 --save-dev
affects: >=1.0.0
breakingMinimum Node.js version 14 required; older versions may cause runtime errors.
fix
Upgrade Node.js to 14 or higher.
affects: >=1.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Attempting to use require() on an ESM-only package.
fix
Use import statement or switch to ESM mode in your project.
Cannot find module 'typescript'
Missing peer dependency typescript.
fix
Install typescript as a devDependency: npm install typescript --save-dev
Upgrade
Version history
1.0.53latest on npm
Audit
Dependencies
typescriptrequiredPeer dependency needed for TS linting rules
Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
yma-cli-lint — npm install yma-cli-lint · libregistry