yma-cli-lint

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

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.

error Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
cause Attempting to use require() on an ESM-only package.
fix
Use import statement or switch to ESM mode in your project.
error Cannot find module 'typescript'
cause Missing peer dependency typescript.
fix
Install typescript as a devDependency: npm install typescript --save-dev
gotcha ESM-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.
gotcha TypeScript peer dependency required: install typescript@^4.2.3 alongside yma-cli-lint.
fix Run npm install typescript@^4.2.3 --save-dev
breaking Minimum Node.js version 14 required; older versions may cause runtime errors.
fix Upgrade Node.js to 14 or higher.
npm install yma-cli-lint
yarn add yma-cli-lint
pnpm add yma-cli-lint

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