Skip to content

Commit

Permalink
bump deps and fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
idok committed Feb 15, 2022
1 parent 89bc256 commit e6cd66f
Show file tree
Hide file tree
Showing 49 changed files with 6,516 additions and 3,557 deletions.
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,13 @@ sftp-config.json
.DS_Store
coverage
.nyc_output
.eslintcache
.eslintcache

# Yarn Berry
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
363 changes: 363 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.1.cjs

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
enableGlobalCache: true

enableTelemetry: false

nmMode: hardlinks-local

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.1.1.cjs
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@
"eslint": ">=2"
},
"devDependencies": {
"auto-changelog": "^2.3.0",
"auto-changelog": "^2.4.0",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint-config-wix-editor": "^8.4.0",
"eslint-plugin-eslint-plugin": "^3.5.3",
"eslint": "^8.9.0",
"eslint-config-wix-editor": "^8.4.2",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-eslint-plugin": "^4.1.0",
"eslint-plugin-import": "^2.25.4",
"eslint-traverser": "^1.5.2",
"mocha": "^9.0.3",
"mocha": "^9.2.0",
"nyc": "^15.1.0"
},
"engines": {
Expand All @@ -52,5 +54,6 @@
"license": "MIT",
"dependencies": {
"lodash": "^4.17.21"
}
},
"packageManager": "yarn@3.1.1"
}
3 changes: 3 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npm run minor
npm publish --registry https://registry.npmjs.org/
npm run version
2 changes: 2 additions & 0 deletions src/rules/callback-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('callback-binding')
}
Expand Down
1 change: 1 addition & 0 deletions src/rules/chain-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('chain-style')
},
Expand Down
5 changes: 3 additions & 2 deletions src/rules/chaining.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('chaining')
},
Expand Down Expand Up @@ -48,7 +49,7 @@ module.exports = {
function isNestedNLevelsInner(node, n, includeUnchainable) {
if (n === 0) {
return true
}
}
if (lodashContext.isLodashCall(node) && (includeUnchainable || isChainable(version, getMethodName(node)))) {
return isNestedNLevelsInner(node.arguments[0], n - 1)
}
Expand Down Expand Up @@ -92,7 +93,7 @@ module.exports = {
} else if (lodashContext.isLodashChainStart(node)) {
reportOnSingleChain(node.parent.parent)
}
}
}
}

const visitors = lodashContext.getImportVisitors()
Expand Down
2 changes: 2 additions & 0 deletions src/rules/collection-method-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('collection-method-value')
}
Expand Down
1 change: 1 addition & 0 deletions src/rules/collection-ordering.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function enforceArraysOption(node, useArray, method, context) {

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('collection-ordering')
},
Expand Down
2 changes: 2 additions & 0 deletions src/rules/collection-return.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('collection-return')
}
Expand Down
1 change: 1 addition & 0 deletions src/rules/consistent-compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const possibleDirections = ['pipe', 'compose', 'flow', 'flowRight']

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('consistent-compose')
},
Expand Down
1 change: 1 addition & 0 deletions src/rules/identity-shorthand.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('identity-shorthand')
},
Expand Down
1 change: 1 addition & 0 deletions src/rules/import-scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const allImportsAreOfType = (node, types) => every(node.specifiers, specifier =>

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('import-scope')
},
Expand Down
1 change: 1 addition & 0 deletions src/rules/matches-prop-shorthand.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('matches-prop-shorthand')
},
Expand Down
1 change: 1 addition & 0 deletions src/rules/matches-shorthand.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('matches-shorthand')
},
Expand Down
2 changes: 2 additions & 0 deletions src/rules/no-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('no-commit')
}
Expand Down
2 changes: 2 additions & 0 deletions src/rules/no-double-unwrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('no-double-unwrap')
},
Expand Down
2 changes: 2 additions & 0 deletions src/rules/no-extra-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('no-extra-args')
}
Expand Down
2 changes: 2 additions & 0 deletions src/rules/no-unbound-this.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('no-unbound-this')
}
Expand Down
1 change: 1 addition & 0 deletions src/rules/path-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('path-style')
},
Expand Down
2 changes: 2 additions & 0 deletions src/rules/prefer-compact.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-compact')
}
Expand Down
2 changes: 1 addition & 1 deletion src/rules/prefer-constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('prefer-constant')
},

schema: [{
type: 'boolean'
}, {
Expand Down
1 change: 1 addition & 0 deletions src/rules/prefer-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('prefer-filter')
},
Expand Down
2 changes: 2 additions & 0 deletions src/rules/prefer-find.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-find')
}
Expand Down
2 changes: 2 additions & 0 deletions src/rules/prefer-flat-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-flat-map')
}
Expand Down
1 change: 1 addition & 0 deletions src/rules/prefer-get.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('prefer-get')
},
Expand Down
4 changes: 3 additions & 1 deletion src/rules/prefer-immutable-method.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const forEach = require('lodash/forEach')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-immutable-method')
}
Expand All @@ -35,7 +37,7 @@ module.exports = {
forEach(mutatingMethods, (preferred, mutatingMethod) => {
if (isAliasOfMethod(version, mutatingMethod, method)) {
context.report({
node,
node,
message: `Prefer _.${preferred} instead of _.${mutatingMethod}`
})
}
Expand Down
1 change: 1 addition & 0 deletions src/rules/prefer-includes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('prefer-includes')
},
Expand Down
2 changes: 2 additions & 0 deletions src/rules/prefer-invoke-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-invoke-map')
}
Expand Down
2 changes: 2 additions & 0 deletions src/rules/prefer-is-nil.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-is-nil')
}
Expand Down
2 changes: 2 additions & 0 deletions src/rules/prefer-lodash-chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-lodash-chain')
}
Expand Down
1 change: 1 addition & 0 deletions src/rules/prefer-lodash-method.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('prefer-lodash-method')
},
Expand Down
2 changes: 2 additions & 0 deletions src/rules/prefer-lodash-typecheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-lodash-typecheck')
}
Expand Down
2 changes: 2 additions & 0 deletions src/rules/prefer-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-map')
}
Expand Down
1 change: 1 addition & 0 deletions src/rules/prefer-matches.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('prefer-matches')
},
Expand Down
2 changes: 2 additions & 0 deletions src/rules/prefer-noop.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-noop')
}
Expand Down
2 changes: 2 additions & 0 deletions src/rules/prefer-over-quantifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
schema: [],
docs: {
url: getDocsUrl('prefer-over-quantifier')
}
Expand Down
1 change: 1 addition & 0 deletions src/rules/prefer-reject.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('prefer-reject')
},
Expand Down
1 change: 1 addition & 0 deletions src/rules/prefer-some.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getDocsUrl = require('../util/getDocsUrl')

module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocsUrl('prefer-some')
},
Expand Down
Loading

0 comments on commit e6cd66f

Please sign in to comment.