Skip to content

Commit 4e50299

Browse files
chore: update dependencies (#25)
1 parent 46fe178 commit 4e50299

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@
5555
"@eslint-community/eslint-plugin-mysticatea": "^15.2.0",
5656
"dot-prop": "^6.0.1",
5757
"eslint": "^8.28.0",
58-
"mocha": "^8.4.0",
58+
"mocha": "^9.2.2",
5959
"npm-run-all": "^4.1.5",
6060
"nyc": "^15.1.0",
6161
"opener": "^1.5.2",
62-
"prettier": "2.7.1",
62+
"prettier": "2.8.0",
6363
"rimraf": "^3.0.2",
64-
"rollup": "^1.32.1",
64+
"rollup": "^2.79.1",
6565
"rollup-plugin-sourcemaps": "^0.6.3",
6666
"semver": "^7.3.8",
6767
"vuepress": "^1.9.7",

src/has-side-effect.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as evk from "eslint-visitor-keys"
1+
import { getKeys, KEYS } from "eslint-visitor-keys"
22

33
const typeConversionBinaryOps = Object.freeze(
44
new Set([
@@ -48,7 +48,7 @@ const visitor = Object.freeze(
4848
$visitChildren(node, options, visitorKeys) {
4949
const { type } = node
5050

51-
for (const key of visitorKeys[type] || evk.getKeys(node)) {
51+
for (const key of visitorKeys[type] || getKeys(node)) {
5252
const value = node[key]
5353

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

0 commit comments

Comments
 (0)