Registry / devops / fashion-show

fashion-show

JSON →
library3.3.3jsnpmunverified

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).

npm install fashion-show
INSTALL
IMPORT
SIG · FASHION-SHOW
F
fashion-show
devopsjavascriptv3.3.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.

default
✓ const fashionShow = require('fashion-show');
✗ import fashionShow from 'fashion-show';
CJS only; no ESM export.
fashionShow
✓ const fashionShow = require('fashion-show');
✗ import { fashionShow } from 'fashion-show';
Default export, not named.
fashionShow (binary)
✓ Run `./node_modules/.bin/fashion-show-build` or define a bin script in package.json.
✗ Using `fashion-show` CLI directly without installation.
No global binary; must be installed locally.

Runs ESLint using a shared config from a 'dist' directory, targeting 'lib' and 'test' folders.

const path = require('path'); const fashionShow = require('fashion-show'); fashionShow({ commands: ['eslint'], rc: path.join(__dirname, 'dist'), targets: ['lib/', 'test/'] }, function (err, code) { if (err) { process.exit(1); } process.exit(code); });
fashion-show --version
Debug
Known issues
deprecatedJSHint and JSCS are deprecated/unmaintained. Use ESLint instead.
fix
Remove JSHint/JSCS from commands and use only ESLint.
affects: >=0
breakingThe 'format' option is only for ESLint; JSHint uses 'reporter'. Misconfiguration may break.
fix
Use 'reporter' for JSHint, 'format' for ESLint, or omit both.
affects: >=0
gotchaThe 'rc' option expects a directory, not a file. Relative paths are relative to the calling process.
fix
Ensure 'rc' points to the directory containing dotfiles (e.g., './dist').
affects: >=0
gotchaThe library does not report lint errors itself; it only returns exit code. You must run external reporters.
fix
Set 'reporter' or 'format' option to get formatted output, or pipe the child process stdout.
affects: >=0
Errors
Common errors & fixes
fashion-show: no such file or directory, open './dotfiles/.eslintrc'
The 'rc' option points to a directory without the expected dotfiles.
fix
Create the dotfiles directory with .eslintrc, .jscsrc, or .jshintrc files.
Error: Cannot find module 'jscs'
JSCS is not installed even though it's listed in commands.
fix
Install the required linter: npm install jscs --save-dev
fashion-show: unknown option: --fix
The 'fix' option is only supported for JSCS, not for JSHint or ESLint.
fix
Remove 'fix' when not using JSCS, or set only for JSCS.
Upgrade
Version history
3.3.3latest on npm
Audit
Dependencies
jscsoptionalRequired for JSCS linting support
eslintoptionalRequired for ESLint linting support
jshintoptionalRequired for JSHint linting support
Agent activity
4 hits · last 30 days
node
4
Resources
fashion-show — npm install fashion-show · libregistry