eslint-config-adjunct
Advanced tools
Comparing version 4.5.1 to 4.5.2
@@ -10,2 +10,3 @@ module.exports = function showLoaded(rules, extraInstallPackage) { | ||
// eslint-disable-next-line no-console | ||
console.log(` | ||
@@ -12,0 +13,0 @@ EsLint-config-adjunct loaded the following packages: |
@@ -0,1 +1,3 @@ | ||
const { equals, indexOf, pipe, when } = require('ramda') | ||
const isModuleAvailable = require('./is-module-available') | ||
@@ -6,2 +8,4 @@ | ||
const atLatest = when(pipe(indexOf('@'), equals(-1)), (pkg) => `${pkg}@latest`) | ||
module.exports = function checkMissing(rules, extraInstallPackage) { | ||
@@ -22,2 +26,3 @@ const notInstalled = rules | ||
// eslint-disable-next-line no-console | ||
console.log(` | ||
@@ -32,7 +37,7 @@ Oops! Something went wrong! :( | ||
npm install ${notInstalled.join(' ')} --save-dev | ||
npm install ${notInstalled.map(atLatest).join(' ')} --save-dev | ||
or | ||
yarn add ${notInstalled.join(' ')} --dev | ||
yarn add ${notInstalled.map(atLatest).join(' ')} --dev | ||
@@ -39,0 +44,0 @@ `) |
@@ -34,2 +34,10 @@ // From kcd-scripts | ||
function environmentIsSet(name) { | ||
return ( | ||
process.env.hasOwnProperty(name) && // eslint-disable-line no-prototype-builtins | ||
process.env[name] && | ||
process.env[name] !== 'undefined' | ||
) | ||
} | ||
function parseEnvironment(name, def) { | ||
@@ -46,10 +54,2 @@ if (environmentIsSet(name)) { | ||
function environmentIsSet(name) { | ||
return ( | ||
process.env.hasOwnProperty(name) && // eslint-disable-line no-prototype-builtins | ||
process.env[name] && | ||
process.env[name] !== 'undefined' | ||
) | ||
} | ||
function uniq(array) { | ||
@@ -56,0 +56,0 @@ return [...new Set(array)] |
{ | ||
"name": "eslint-config-adjunct", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"author": "David J. Bradshaw", | ||
@@ -31,4 +31,7 @@ "license": "MIT", | ||
"cosmiconfig": "^6.0.0", | ||
"lodash.has": "^4.5.2", | ||
"read-pkg-up": "^7.0.1" | ||
"lodash": "^4.17.15", | ||
"mkdirp": "^1.0.4", | ||
"ramda": "^0.27.0", | ||
"read-pkg-up": "^7.0.1", | ||
"rimraf": "^3.0.2" | ||
}, | ||
@@ -42,2 +45,3 @@ "devDependencies": { | ||
"eslint": "^7.1.0", | ||
"eslint-config-airbnb": "^18.1.0", | ||
"eslint-config-babel": "^9.0.0", | ||
@@ -59,2 +63,3 @@ "eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-html": "^6.0.2", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint-plugin-jasmine": "^4.1.1", | ||
@@ -64,2 +69,3 @@ "eslint-plugin-jest": "^23.13.2", | ||
"eslint-plugin-json-format": "^2.0.1", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-lodash": "^7.1.0", | ||
@@ -95,3 +101,2 @@ "eslint-plugin-lodash-fp": "^2.2.0-a1", | ||
"lint-staged": "^10.2.7", | ||
"lodash": "^4.17.15", | ||
"lodash-fp": "^0.10.4", | ||
@@ -102,3 +107,2 @@ "mocha": "^7.2.0", | ||
"qunit": "^2.10.0", | ||
"ramda": "^0.27.0", | ||
"react": "^16.13.1", | ||
@@ -105,0 +109,0 @@ "react-redux": "^7.2.0", |
@@ -36,4 +36,2 @@ # eslint-config-adjunct | ||
## Install Dependencies | ||
@@ -150,2 +148,3 @@ | ||
- lodash-fp/use-fp | ||
- unicorn/no-fn-reference-in-iterator | ||
- unicorn/no-reduce | ||
@@ -152,0 +151,0 @@ - unicorn/no-null |
module.exports = { | ||
env: { | ||
['cypress/globals']: true, | ||
'cypress/globals': true, | ||
}, | ||
@@ -5,0 +5,0 @@ extends: ['plugin:cypress/recommended'], |
@@ -24,2 +24,3 @@ const { hasAnyDep } = require('../lib/utils') | ||
// eslint-disable-next-line no-console | ||
console.log(configs.map((config) => ` eslint-config-${config}\n`).join('')) | ||
@@ -26,0 +27,0 @@ |
@@ -0,1 +1,2 @@ | ||
// eslint-disable-next-line no-console | ||
console.log(' ') | ||
@@ -2,0 +3,0 @@ |
@@ -14,2 +14,3 @@ module.exports = { | ||
'unicorn/regex-shorthand': 0, | ||
'unicorn/no-fn-reference-in-iterator': 0, | ||
'unicorn/no-reduce': 0, | ||
@@ -16,0 +17,0 @@ 'unicorn/no-null': 0, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31209
697
7
69
163
+ Addedlodash@^4.17.15
+ Addedmkdirp@^1.0.4
+ Addedramda@^0.27.0
+ Addedrimraf@^3.0.2
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedmkdirp@1.0.4(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedramda@0.27.2(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedlodash.has@^4.5.2
- Removedlodash.has@4.5.2(transitive)