yui-lint provides the default JSHint configuration used by YUI and its packages. Version 0.2.0 is the latest stable release. The package defines a set of JSHint options (e.g., browser, node, curly, eqeqeq) that enforce YUI's coding standards. It can be used as a Node module, referenced from package.json scripts with jshint --config, or symlinked as a local .jshintrc file. The project appears to be in maintenance mode, as the YUI library is no longer actively developed, and the last release was several years ago.
npm install yui-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs jshint and yui-lint, then demonstrates three usage patterns: Node require, package.json script, and symlink as .jshintrc.
Consider migrating to a maintained linter configuration or use ESLint with a modern config.
Reference the path correctly: --config ./node_modules/yui-lint/jshint.json
Ensure all variables are declared. Use /*global ... */ comments to declare globals if needed.
Use the Node require pattern to avoid file path issues: var lint = require('yui-lint'); then lint.jshintConfig.Install jshint: npm install jshint --save-dev
Use the correct filename: jshint.json
Run npm install yui-lint --save-dev