Registry / devops / wetrial-lint

wetrial-lint

JSON →
library0.0.3jsnpmunverified

wetrial-lint is a zero-config linting tool that wraps eslint, stylelint, prettier, lint-staged, and husky into a single CLI command. Version 0.0.3 is the latest (and only) stable release, with no active development since fork. It simplifies lint setup by providing a unified CLI for both full-project and staged-file linting, but unlike 'umi-lint' it does not include any built-in configuration—users must provide their own .eslintrc, .stylelintrc, etc. The package is a fork of umi-lint with bug fixes that were not addressed upstream, but remains largely unmaintained.

npm install wetrial-lint
INSTALL
IMPORT
SIG · WETRIAL-LINT
W
wetrial-lint
devopsjavascriptv0.0.3
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.

wetrial-lint (CLI)
npx wetrial-lint --eslint src/
npm run lint (if script not defined)
CLI tool, no programmatic import. Use via npm scripts.

Install wetrial-lint, add npm scripts for full lint and staged lint, and provide your own config files.

npm install wetrial-lint --save-dev # package.json scripts: "scripts": { "lint": "wetrial-lint --eslint src/", "precommit": "wetrial-lint --staged --eslint --stylelint --prettier --fix" } # Then create .eslintrc, .stylelintrc, .prettierrc as needed.
Debug
Known issues
deprecatedtslint is deprecated; use eslint with typescript parser instead.
fix
Remove --tslint flag and use --eslint with --ext .ts,.tsx
affects: >=0.0.0
gotchaNo default config files included; you must create .eslintrc, .stylelintrc, .prettierrc yourself.
fix
Create configuration files in project root.
affects: >=0.0.0
gotchaFlag ordering matters; some flags may be parsed incorrectly if placed after file paths.
fix
Place flags before file paths, e.g., 'wetrial-lint --eslint src/' not 'wetrial-lint src/ --eslint'.
affects: >=0.0.0
breakingHusky v4+ changed hook configuration format; wetrial-lint may require manual husky setup.
fix
Follow husky v4+ migration guide; use 'npx husky install' and '.husky/pre-commit'.
affects: >=0.0.0
Errors
Common errors & fixes
No such file or directory: '.eslintrc'
Missing ESLint configuration file.
fix
Create .eslintrc file in project root.
Cannot find module 'tslint'
tslint not installed or deprecated.
fix
Use eslint for TypeScript: remove --tslint, add --eslint --ext .ts,.tsx.
Unrecognized flag: --fix
Flag ordering issue: flags after file paths ignored.
fix
Put --fix before file paths: wetrial-lint --fix --eslint src/
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies
eslintrequiredJavaScript linting
stylelintrequiredCSS linting
prettierrequiredcode formatting
lint-stagedrequiredrun linters on git staged files
huskyrequiredgit hooks
tslintoptionalTypeScript linting (deprecated)
Agent activity
2 hits · last 30 days
node
2
Resources
wetrial-lint — npm install wetrial-lint · libregistry