Skip to content

Instantly share code, notes, and snippets.

View trs's full-sized avatar
🐱

Tyler Stewart trs

🐱
View GitHub Profile
@trs
trs / find-broken-package-installs.js
Last active July 12, 2018 17:37
Quick script to scan a directory of projects for infected eslint-scope installs (rev 3.7.2). Runs in node 8+.
const path = require('path');
const fs = require('fs');
const {exec} = require('child_process');
const PROJECTS_DIR = process.cwd() || __dirname;
const BAD_PACKAGES = [
{
name: 'eslint-scope',
revisions: ['3.7.2']