New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eastwood

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eastwood - npm Package Compare versions

Comparing version 2.0.0-alpha.2 to 2.0.0

src/methods.js

2

bin/eastwood.js
#!/usr/bin/env node
// Based on https://gist.github.com/oculus42/99092766633ca2451e9d6e2217a94a80
const methods = require('../index');
const methods = require('../src/methods');

@@ -6,0 +6,0 @@ const defaultArgs = ['airbnb'];

@@ -1,47 +0,3 @@

#! /usr/bin/env node
// Based on https://gist.github.com/oculus42/99092766633ca2451e9d6e2217a94a80
const cmd = require('node-cmd');
const defaultArgs = ['airbnb'];
const installPackages = (packageList = []) => {
return new Promise((resolve, reject) => {
cmd.get(`npm install ${packageList.join(' ')}`, (err, data, stderr) => {
if (err) {
reject(err);
return;
}
resolve({
data,
stderr,
});
});
});
};
const methods = {
airbnb: function () {
const packages = [
'eslint',
'eslint-plugin-import',
'eslint-plugin-react',
'eslint-plugin-jsx-a11y',
'eslint-config-airbnb',
];
return installPackages(packages);
},
'airbnb-base': function () {
const packages = [
'eslint',
'eslint-plugin-import',
'eslint-config-airbnb-base',
];
return installPackages(packages);
},
};
module.exports = methods;
module.exports = require('./src/methods');

@@ -12,3 +12,4 @@ {

"dependencies": {
"node-cmd": "^3.0.0"
"node-cmd": "^3.0.0",
"pkg-dir": "^2.0.0"
},

@@ -30,3 +31,3 @@ "description": "Linter",

},
"version": "2.0.0-alpha.2"
"version": "2.0.0"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc