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

eslint-config-es

Package Overview
Dependencies
Maintainers
5
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-es - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

lib/isInstalled.js

22

node.js
'use strict';
const isPluginInstalled = require('./lib/isPluginInstalled');
const isInstalled = require('./lib/isInstalled');

@@ -23,12 +23,18 @@ const parserOptions = {

const plugins = [ 'extended', 'mocha', 'react' ].
filter(name => isPluginInstalled({ name }));
const plugins = [];
const settings = {};
if (plugins.includes('react')) {
settings.react = {
version: 'detect'
};
if (isInstalled({ name: 'eslint-plugin-extended' })) {
plugins.push('extended');
}
if (isInstalled({ name: 'eslint-plugin-mocha' })) {
plugins.push('mocha');
}
if (
isInstalled({ name: 'eslint-plugin-react' }) &&
isInstalled({ name: 'react' })
) {
plugins.push('react');
settings.react = { version: 'detect' };
}

@@ -35,0 +41,0 @@ const rules = {

{
"name": "eslint-config-es",
"version": "2.0.0",
"version": "2.0.1",
"description": "eslint-config-es contains a strict ESLint configuration for ES2015+.",

@@ -33,3 +33,3 @@ "contributors": [

"scripts": {
"analyse": "npx eslint --config node.js *.js",
"analyse": "npx eslint --config node.js *.js lib/**/*.js",
"publish-patch": "npm run analyse && npm version patch && git push --tags && git push && npm publish",

@@ -36,0 +36,0 @@ "publish-minor": "npm run analyse && npm version minor && git push --tags && git push && npm publish",

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