{"id":26459,"library":"tape-eslint","title":"tape-eslint","description":"Integrate ESLint linting into tape test suites. Version 1.2.1 (stable, infrequent releases) allows running ESLint as part of tape tests in the same Node process, reducing overhead versus a separate lint step. Supports customization of file patterns, ignores, and ESLint CLIEngine options. Designed for Node.js, it gracefully disables itself in browserified test environments. Requires ESLint as a peer dependency.","status":"active","version":"1.2.1","language":"javascript","source_language":"en","source_url":"https://github.com/rstacruz/tape-eslint","tags":["javascript","lint","standard","eslint","tape"],"install":[{"cmd":"npm install tape-eslint","lang":"bash","label":"npm"},{"cmd":"yarn add tape-eslint","lang":"bash","label":"yarn"},{"cmd":"pnpm add tape-eslint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required to perform linting","package":"eslint","optional":true}],"imports":[{"note":"CommonJS only; no ESM export or TypeScript types provided.","symbol":"default","correct":"const lint = require('tape-eslint')"},{"note":"ESM import not supported; must use require.","wrong":"import lint from 'tape-eslint'","symbol":"default (with options)","correct":"const lint = require('tape-eslint')({ files: ['index.js'] })"},{"note":"Default behavior lints all .js and .jsx files; customize via options object.","symbol":"tape test usage","correct":"const test = require('tape'); test('lint', require('tape-eslint')())"}],"quickstart":{"code":"const test = require('tape');\nconst lint = require('tape-eslint');\n\ntest('eslint', lint({\n  files: ['index.js', 'test/*.js'],\n  ignore: ['dist/**'],\n  eslint: { configFile: '.eslintrc' }\n}));","lang":"javascript","description":"Set up tape-eslint in a tape test with custom file patterns and ESLint config."},"warnings":[{"fix":"Use tape-eslint 1.2.1 with ESLint 1.x or consider alternatives like eslint-tape.","message":"Package is unmaintained; last release 2016-08-03. ESLint versions after 1.x may break compatibility.","severity":"deprecated","affected_versions":">=1.2.1"},{"fix":"No action needed; it's by design but should be documented clearly.","message":"Browserify usage: require('tape-eslint')() returns a noop function in browser environments, potentially confusing users expecting linting to run.","severity":"gotcha","affected_versions":"*"},{"fix":"Run npm install --save-dev tape-eslint eslint.","message":"ESLint peer dependency is not automatically installed; must be installed separately.","severity":"gotcha","affected_versions":"*"},{"fix":"Use a newer package or pin ESLint to 1.x.","message":"Uses deprecated eslint.CLIEngine API; may break with ESLint >=2.0.","severity":"deprecated","affected_versions":">=1.2.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install --save-dev eslint","cause":"tape-eslint requires eslint as a peer dependency; it is not installed.","error":"Error: Cannot find module 'eslint'"},{"fix":"npm install --save-dev tape-eslint","cause":"tape-eslint is not installed.","error":"Error: Cannot find module 'tape-eslint'"},{"fix":"Use const lint = require('tape-eslint') instead.","cause":"Using ESM import (import lint from 'tape-eslint') which is not supported.","error":"TypeError: lint is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}