{"id":25571,"library":"fashion-show","title":"fashion-show","description":"fashion-show v3.3.3 is a Node.js library for building versioned, consistent styleguides that centralize lint configurations (.jshintrc, .jscsrc, .eslintrc) across projects. It wraps CLI tools (JSHint, JSCS, ESLint) providing a unified API and binary. No recent updates (last publish 2016). Differentiator: enforces a single source of truth for lint rules, but relies on deprecated/unmaintained linters (JSHint, JSCS).","status":"deprecated","version":"3.3.3","language":"javascript","source_language":"en","source_url":"https://github.com/indexzero/fashion-show","tags":["javascript","jshint","jscs","lint","style","code-style","style-guide"],"install":[{"cmd":"npm install fashion-show","lang":"bash","label":"npm"},{"cmd":"yarn add fashion-show","lang":"bash","label":"yarn"},{"cmd":"pnpm add fashion-show","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required for JSCS linting support","package":"jscs","optional":true},{"reason":"Required for ESLint linting support","package":"eslint","optional":true},{"reason":"Required for JSHint linting support","package":"jshint","optional":true}],"imports":[{"note":"CJS only; no ESM export.","wrong":"import fashionShow from 'fashion-show';","symbol":"default","correct":"const fashionShow = require('fashion-show');"},{"note":"Default export, not named.","wrong":"import { fashionShow } from 'fashion-show';","symbol":"fashionShow","correct":"const fashionShow = require('fashion-show');"},{"note":"No global binary; must be installed locally.","wrong":"Using `fashion-show` CLI directly without installation.","symbol":"fashionShow (binary)","correct":"Run `./node_modules/.bin/fashion-show-build` or define a bin script in package.json."}],"quickstart":{"code":"const path = require('path');\nconst fashionShow = require('fashion-show');\n\nfashionShow({\n  commands: ['eslint'],\n  rc: path.join(__dirname, 'dist'),\n  targets: ['lib/', 'test/']\n}, function (err, code) {\n  if (err) { process.exit(1); }\n  process.exit(code);\n});","lang":"javascript","description":"Runs ESLint using a shared config from a 'dist' directory, targeting 'lib' and 'test' folders."},"warnings":[{"fix":"Remove JSHint/JSCS from commands and use only ESLint.","message":"JSHint and JSCS are deprecated/unmaintained. Use ESLint instead.","severity":"deprecated","affected_versions":">=0"},{"fix":"Use 'reporter' for JSHint, 'format' for ESLint, or omit both.","message":"The 'format' option is only for ESLint; JSHint uses 'reporter'. Misconfiguration may break.","severity":"breaking","affected_versions":">=0"},{"fix":"Ensure 'rc' points to the directory containing dotfiles (e.g., './dist').","message":"The 'rc' option expects a directory, not a file. Relative paths are relative to the calling process.","severity":"gotcha","affected_versions":">=0"},{"fix":"Set 'reporter' or 'format' option to get formatted output, or pipe the child process stdout.","message":"The library does not report lint errors itself; it only returns exit code. You must run external reporters.","severity":"gotcha","affected_versions":">=0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Create the dotfiles directory with .eslintrc, .jscsrc, or .jshintrc files.","cause":"The 'rc' option points to a directory without the expected dotfiles.","error":"fashion-show: no such file or directory, open './dotfiles/.eslintrc'"},{"fix":"Install the required linter: npm install jscs --save-dev","cause":"JSCS is not installed even though it's listed in commands.","error":"Error: Cannot find module 'jscs'"},{"fix":"Remove 'fix' when not using JSCS, or set only for JSCS.","cause":"The 'fix' option is only supported for JSCS, not for JSHint or ESLint.","error":"fashion-show: unknown option: --fix"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}