Socket
Socket
Sign inDemoInstall

@eslint-community/eslint-utils

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslint-community/eslint-utils - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

7

index.js

@@ -1,2 +0,1 @@

/*! @author Toru Nagashima <https://github.com/mysticatea> */
'use strict';

@@ -6,6 +5,4 @@

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var evk = require('eslint-visitor-keys');
var evk = _interopDefault(require('eslint-visitor-keys'));
/**

@@ -479,3 +476,3 @@ * Get the innermost scope which contains a given location.

case "**":
return { value: Math.pow(left.value, right.value) }
return { value: left.value ** right.value }
case "|":

@@ -482,0 +479,0 @@ return { value: left.value | right.value }

{
"name": "@eslint-community/eslint-utils",
"version": "4.0.0",
"version": "4.1.0",
"description": "Utilities for ESLint plugins.",
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"keywords": [
"eslint"
],
"homepage": "https://github.com/eslint-community/eslint-utils#readme",
"bugs": {
"url": "https://github.com/eslint-community/eslint-utils/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/eslint-community/eslint-utils"
},
"license": "MIT",
"author": "Toru Nagashima",
"sideEffects": false,
"main": "index",
"module": "index.mjs",
"files": [
"index.*"
],
"exports": {

@@ -21,26 +26,7 @@ ".": {

},
"dependencies": {
"eslint-visitor-keys": "^2.1.0"
},
"devDependencies": {
"@mysticatea/eslint-plugin": "^13.0.0",
"dot-prop": "^4.2.1",
"eslint": "^7.32.0",
"esm": "^3.2.25",
"espree": "github:eslint/espree#1c744b3a602b783926344811a9459b92afe57444",
"mocha": "^6.2.3",
"npm-run-all": "^4.1.5",
"nyc": "^14.1.1",
"opener": "^1.5.2",
"prettier": "2.7.1",
"rimraf": "^3.0.2",
"rollup": "^1.32.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"semver": "^7.3.8",
"vuepress": "^1.9.7",
"warun": "^1.0.0"
},
"peerDependencies": {
"eslint": ">=6"
},
"main": "index",
"module": "index.mjs",
"files": [
"index.*"
],
"scripts": {

@@ -50,3 +36,2 @@ "prebuild": "npm run -s clean",

"clean": "rimraf .nyc_output coverage index.*",
"codecov": "nyc report -r lcovonly && codecov",
"coverage": "opener ./coverage/lcov-report/index.html",

@@ -56,5 +41,5 @@ "docs:build": "vuepress build docs",

"format": "npm run -s format:prettier -- --write",
"format:prettier": "prettier docs/.vuepress/config.js src/**/*.js test/**/*.js rollup.config.js .vscode/*.json *.json .github/**/*.yml *.yml docs/**/*.md *.md",
"format:prettier": "prettier .",
"format:check": "npm run -s format:prettier -- --check",
"lint": "eslint docs/.vuepress/config.js src test rollup.config.js",
"lint": "eslint .",
"test": "nyc mocha --reporter dot \"test/*.js\"",

@@ -66,15 +51,31 @@ "preversion": "npm test && npm run -s build",

},
"repository": {
"type": "git",
"url": "https://github.com/eslint-community/eslint-utils"
"dependencies": {
"eslint-visitor-keys": "^3.3.0"
},
"keywords": [
"eslint"
],
"author": "Toru Nagashima",
"license": "MIT",
"bugs": {
"url": "https://github.com/eslint-community/eslint-utils/issues"
"devDependencies": {
"@babel/core": "^7.20.2",
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
"@babel/register": "^7.18.9",
"@eslint-community/eslint-plugin-mysticatea": "^15.2.0",
"dot-prop": "^6.0.1",
"eslint": "^8.28.0",
"espree": "github:eslint/espree#1c744b3a602b783926344811a9459b92afe57444",
"mocha": "^8.4.0",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"opener": "^1.5.2",
"prettier": "2.7.1",
"rimraf": "^3.0.2",
"rollup": "^1.32.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"semver": "^7.3.8",
"vuepress": "^1.9.7",
"warun": "^1.0.0"
},
"homepage": "https://github.com/eslint-community/eslint-utils#readme"
"peerDependencies": {
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
}
}

@@ -7,3 +7,2 @@ # @eslint-community/eslint-utils

[![Coverage Status](https://codecov.io/gh/eslint-community/eslint-utils/branch/main/graph/badge.svg)](https://codecov.io/gh/eslint-community/eslint-utils)
[![Dependency Status](https://david-dm.org/eslint-community/eslint-utils.svg)](https://david-dm.org/eslint-community/eslint-utils)

@@ -16,4 +15,4 @@ ## 🏁 Goal

- [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-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.

@@ -20,0 +19,0 @@ ## 📖 Usage

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc