@eslint-community/eslint-utils
Advanced tools
Comparing version 4.1.0 to 4.1.1
15
index.js
@@ -5,3 +5,3 @@ 'use strict'; | ||
var evk = require('eslint-visitor-keys'); | ||
var eslintVisitorKeys = require('eslint-visitor-keys'); | ||
@@ -958,2 +958,7 @@ /** | ||
tokens.push(`'${parent.left.name}'`); | ||
} else if ( | ||
parent.type === "ExportDefaultDeclaration" && | ||
parent.declaration === node | ||
) { | ||
tokens.push("'default'"); | ||
} | ||
@@ -1012,3 +1017,3 @@ | ||
for (const key of visitorKeys[type] || evk.getKeys(node)) { | ||
for (const key of visitorKeys[type] || eslintVisitorKeys.getKeys(node)) { | ||
const value = node[key]; | ||
@@ -1139,3 +1144,3 @@ | ||
* @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. | ||
@@ -1151,3 +1156,3 @@ */ | ||
{ considerGetters, considerImplicitTypeConversion }, | ||
sourceCode.visitorKeys || evk.KEYS, | ||
sourceCode.visitorKeys || eslintVisitorKeys.KEYS, | ||
) | ||
@@ -1926,3 +1931,3 @@ } | ||
exports.ReferenceTracker = ReferenceTracker; | ||
exports.default = index; | ||
exports["default"] = index; | ||
exports.findVariable = findVariable; | ||
@@ -1929,0 +1934,0 @@ exports.getFunctionHeadLocation = getFunctionHeadLocation; |
{ | ||
"name": "@eslint-community/eslint-utils", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Utilities for ESLint plugins.", | ||
@@ -58,10 +58,9 @@ "keywords": [ | ||
"eslint": "^8.28.0", | ||
"espree": "github:eslint/espree#1c744b3a602b783926344811a9459b92afe57444", | ||
"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", | ||
@@ -68,0 +67,0 @@ "semver": "^7.3.8", |
@@ -14,8 +14,8 @@ # @eslint-community/eslint-utils | ||
- [`getStaticValue`](https://eslint-utils.mysticatea.dev/api/ast-utils.html#getstaticvalue) evaluates static value on AST. | ||
- [`ReferenceTracker`](https://eslint-utils.mysticatea.dev/api/scope-utils.html#referencetracker-class) checks the members of modules/globals as handling assignments and destructuring. | ||
- [`getStaticValue`](https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue) evaluates static value on AST. | ||
- [`ReferenceTracker`](https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class) checks the members of modules/globals as handling assignments and destructuring. | ||
## 📖 Usage | ||
See [documentation](https://eslint-utils.mysticatea.dev). | ||
See [documentation](https://eslint-community.github.io/eslint-utils). | ||
@@ -22,0 +22,0 @@ ## 📰 Changelog |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
358516
17
3523