{"id":25948,"library":"mocha-shopify-lint","title":"mocha-shopify-lint","description":"mocha-shopify-lint (v1.0.0) integrates Shopify's theme-lint with Mocha test framework, allowing developers to validate Liquid template files as part of the test suite. It accepts glob patterns to select which .liquid files to lint. Released in 2016, no active development or recent updates observed. Differentiates by providing a bridge between theme-lint and Mocha, but limited features and potential compatibility issues with newer versions of theme-lint or Mocha.","status":"deprecated","version":"1.0.0","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/mike3run/mocha-shopify-lint","tags":["javascript"],"install":[{"cmd":"npm install mocha-shopify-lint","lang":"bash","label":"npm"},{"cmd":"yarn add mocha-shopify-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add mocha-shopify-lint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core linting engine for Shopify Liquid files","package":"theme-lint","optional":false},{"reason":"Test framework used to run the linting results","package":"mocha","optional":false}],"imports":[{"note":"CommonJS require is the only supported import method; no ESM or TypeScript types.","symbol":"default (function)","correct":"const mochaShopifyLint = require('mocha-shopify-lint');"}],"quickstart":{"code":"const mochaShopifyLint = require('mocha-shopify-lint');\nmochaShopifyLint(['./test/fixtures/**/*.liquid']);","lang":"javascript","description":"Configures mocha-shopify-lint to lint Liquid files matching glob patterns."},"warnings":[{"fix":"Consider using Shopify CLI's built-in linting or directly using theme-lint/tag-lint.","message":"Package is unmaintained since 2017; may not work with modern theme-lint or Mocha versions.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Refer to glob-all documentation for pattern syntax.","message":"Glob patterns are processed by glob-all; syntax may differ from standard globbing.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Create a .theme-lint.yml or theme-lint.json file in project root.","message":"No options to configure lint rules or severity; uses default theme-lint configuration.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install theme-lint --save-dev","cause":"theme-lint peer dependency not installed or missing.","error":"Cannot find module 'theme-lint'"},{"fix":"npm install mocha --save-dev","cause":"Mocha is not installed or not in devDependencies.","error":"Error: Cannot find module 'mocha'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}