eslint-config-es
Advanced tools
Comparing version 2.0.0 to 2.0.1
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", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
25773
611
0