@eslint-community/eslint-utils
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -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
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
358171
18
3514
38
+ Added@eslint/eslintrc@2.1.4(transitive)
+ Added@eslint/js@8.57.0(transitive)
+ Added@humanwhocodes/config-array@0.11.14(transitive)
+ Added@humanwhocodes/object-schema@2.0.3(transitive)
+ Added@ungap/structured-clone@1.2.0(transitive)
+ Addeddoctrine@3.0.0(transitive)
+ Addedeslint@8.57.0(transitive)
+ Addedeslint-scope@7.2.2(transitive)
+ Addedespree@9.6.1(transitive)
+ Addedfile-entry-cache@6.0.1(transitive)
+ Addedflat-cache@3.2.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobals@13.24.0(transitive)
+ Addedgraphemer@1.4.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedtype-fest@0.20.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removed@eslint/config-array@0.18.0(transitive)
- Removed@eslint/eslintrc@3.1.0(transitive)
- Removed@eslint/js@9.10.0(transitive)
- Removed@eslint/object-schema@2.1.4(transitive)
- Removed@eslint/plugin-kit@0.1.0(transitive)
- Removed@humanwhocodes/retry@0.3.0(transitive)
- Removedeslint@9.10.0(transitive)
- Removedeslint-scope@8.0.2(transitive)
- Removedeslint-visitor-keys@2.1.04.0.0(transitive)
- Removedespree@10.1.0(transitive)
- Removedfile-entry-cache@8.0.0(transitive)
- Removedflat-cache@4.0.1(transitive)
- Removedglobals@14.0.0(transitive)
Updatedeslint-visitor-keys@^3.3.0