Skip to content

Commit

Permalink
chore: update dependencies (mysticatea#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Nov 28, 2022
1 parent 46fe178 commit 4e50299
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@
"@eslint-community/eslint-plugin-mysticatea": "^15.2.0",
"dot-prop": "^6.0.1",
"eslint": "^8.28.0",
"mocha": "^8.4.0",
"mocha": "^9.2.2",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"opener": "^1.5.2",
"prettier": "2.7.1",
"prettier": "2.8.0",
"rimraf": "^3.0.2",
"rollup": "^1.32.1",
"rollup": "^2.79.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"semver": "^7.3.8",
"vuepress": "^1.9.7",
Expand Down
8 changes: 4 additions & 4 deletions src/has-side-effect.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as evk from "eslint-visitor-keys"
import { getKeys, KEYS } from "eslint-visitor-keys"

const typeConversionBinaryOps = Object.freeze(
new Set([
Expand Down Expand Up @@ -48,7 +48,7 @@ const visitor = Object.freeze(
$visitChildren(node, options, visitorKeys) {
const { type } = node

for (const key of visitorKeys[type] || evk.getKeys(node)) {
for (const key of visitorKeys[type] || getKeys(node)) {
const value = node[key]

if (Array.isArray(value)) {
Expand Down Expand Up @@ -174,7 +174,7 @@ const visitor = Object.freeze(
* @param {object} [options] The option object.
* @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.
* @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.
* @param {object} [options.visitorKeys=evk.KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.
* @param {object} [options.visitorKeys=KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.
* @returns {boolean} `true` if the node has a certain side effect.
*/
export function hasSideEffect(
Expand All @@ -185,6 +185,6 @@ export function hasSideEffect(
return visitor.$visit(
node,
{ considerGetters, considerImplicitTypeConversion },
sourceCode.visitorKeys || evk.KEYS,
sourceCode.visitorKeys || KEYS,
)
}

0 comments on commit 4e50299

Please sign in to comment.