eslint-scope
Advanced tools
Comparing version 8.0.2 to 8.1.0
@@ -49,3 +49,3 @@ /* | ||
import assert from "assert"; | ||
import { assert } from "./assert.js"; | ||
@@ -93,3 +93,3 @@ import ScopeManager from "./scope-manager.js"; | ||
for (const key in override) { | ||
if (Object.prototype.hasOwnProperty.call(override, key)) { | ||
if (Object.hasOwn(override, key)) { | ||
const val = override[key]; | ||
@@ -96,0 +96,0 @@ |
@@ -36,3 +36,3 @@ /* | ||
function getLast(xs) { | ||
return xs[xs.length - 1] || null; | ||
return xs.at(-1) || null; | ||
} | ||
@@ -39,0 +39,0 @@ |
@@ -31,3 +31,3 @@ /* | ||
import { Definition, ParameterDefinition } from "./definition.js"; | ||
import assert from "assert"; | ||
import { assert } from "./assert.js"; | ||
@@ -34,0 +34,0 @@ const { Syntax } = estraverse; |
@@ -39,3 +39,3 @@ /* | ||
} from "./scope.js"; | ||
import assert from "assert"; | ||
import { assert } from "./assert.js"; | ||
@@ -42,0 +42,0 @@ /** |
@@ -30,3 +30,3 @@ /* | ||
import { Definition } from "./definition.js"; | ||
import assert from "assert"; | ||
import { assert } from "./assert.js"; | ||
@@ -33,0 +33,0 @@ const { Syntax } = estraverse; |
@@ -1,3 +0,3 @@ | ||
const version = "8.0.2"; | ||
const version = "8.1.0"; | ||
export default version; |
{ | ||
"name": "eslint-scope", | ||
"description": "ECMAScript scope analyzer for ESLint", | ||
"homepage": "http://github.com/eslint/eslint-scope", | ||
"homepage": "https://github.com/eslint/js/blob/main/packages/eslint-scope/README.md", | ||
"main": "./dist/eslint-scope.cjs", | ||
@@ -14,10 +14,10 @@ "type": "module", | ||
}, | ||
"version": "8.0.2", | ||
"version": "8.1.0", | ||
"engines": { | ||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0" | ||
}, | ||
"repository": "eslint/eslint-scope", | ||
"repository": "eslint/js", | ||
"funding": "https://opencollective.com/eslint", | ||
"bugs": { | ||
"url": "https://github.com/eslint/eslint-scope/issues" | ||
"url": "https://github.com/eslint/js/issues" | ||
}, | ||
@@ -28,4 +28,2 @@ "license": "BSD-2-Clause", | ||
"build:update-version": "node tools/update-version.js", | ||
"lint": "eslint . --report-unused-disable-directives", | ||
"prelint": "npm run build", | ||
"prepublishOnly": "npm run build:update-version && npm run build", | ||
@@ -51,12 +49,8 @@ "pretest": "npm run build", | ||
"devDependencies": { | ||
"@typescript-eslint/parser": "^7.1.1", | ||
"@typescript-eslint/parser": "^8.7.0", | ||
"c8": "^7.7.3", | ||
"chai": "^4.3.4", | ||
"eslint": "^8.57.0", | ||
"eslint-config-eslint": "^9.0.0", | ||
"eslint-plugin-chai-friendly": "^0.7.4", | ||
"eslint-release": "^3.2.0", | ||
"eslint-visitor-keys": "^4.0.0", | ||
"espree": "^10.0.1", | ||
"globals": "^14.0.0", | ||
"eslint-visitor-keys": "^4.1.0", | ||
"espree": "^10.2.0", | ||
"mocha": "^9.0.1", | ||
@@ -63,0 +57,0 @@ "npm-license": "^0.3.3", |
[![npm version](https://img.shields.io/npm/v/eslint-scope.svg)](https://www.npmjs.com/package/eslint-scope) | ||
[![Downloads](https://img.shields.io/npm/dm/eslint-scope.svg)](https://www.npmjs.com/package/eslint-scope) | ||
[![Build Status](https://github.com/eslint/eslint-scope/workflows/CI/badge.svg)](https://github.com/eslint/eslint-scope/actions) | ||
[![Build Status](https://github.com/eslint/js/workflows/CI/badge.svg)](https://github.com/eslint/js/actions) | ||
@@ -38,3 +38,3 @@ # ESLint Scope | ||
* `sourceType` (default: `"script"`) - The type of JavaScript file to evaluate. Change to `"module"` for ECMAScript module code. | ||
* `childVisitorKeys` (default: `null`) - An object with visitor key information (like [`eslint-visitor-keys`](https://github.com/eslint/eslint-visitor-keys)). Without this, `eslint-scope` finds child nodes to visit algorithmically. Providing this option is a performance enhancement. | ||
* `childVisitorKeys` (default: `null`) - An object with visitor key information (like [`eslint-visitor-keys`](https://github.com/eslint/js/tree/main/packages/eslint-visitor-keys)). Without this, `eslint-scope` finds child nodes to visit algorithmically. Providing this option is a performance enhancement. | ||
* `fallback` (default: `"iteration"`) - The strategy to use when `childVisitorKeys` is not specified. May be a function. | ||
@@ -79,3 +79,3 @@ | ||
Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/eslint-scope/issues). | ||
Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/js/issues). | ||
@@ -94,1 +94,19 @@ ## Security Policy | ||
ESLint Scope is licensed under a permissive BSD 2-clause license. | ||
## Sponsors | ||
The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) to get your logo on our README and website. | ||
<!-- NOTE: This section is autogenerated. Do not manually edit.--> | ||
<!--sponsorsstart--> | ||
<h3>Platinum Sponsors</h3> | ||
<p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="128"></a></p><h3>Gold Sponsors</h3> | ||
<p><a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a></p><h3>Silver Sponsors</h3> | ||
<p><a href="https://www.jetbrains.com/"><img src="https://images.opencollective.com/jetbrains/fe76f99/logo.png" alt="JetBrains" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301?v=4" alt="American Express" height="64"></a> <a href="https://www.workleap.com"><img src="https://avatars.githubusercontent.com/u/53535748?u=d1e55d7661d724bf2281c1bfd33cb8f99fe2465f&v=4" alt="Workleap" height="64"></a></p><h3>Bronze Sponsors</h3> | ||
<p><a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340?v=4" alt="GitBook" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104?v=4" alt="Nx" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774?v=4" alt="HeroCoders" height="32"></a> <a href="https://usenextbase.com"><img src="https://avatars.githubusercontent.com/u/145838380?v=4" alt="Nextbase Starter Kit" height="32"></a></p> | ||
<!--sponsorsend--> | ||
<!--techsponsorsstart--> | ||
<h2>Technology Sponsors</h2> | ||
<p><a href="https://netlify.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/netlify-icon.svg" alt="Netlify" height="32"></a> <a href="https://algolia.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/algolia-icon.svg" alt="Algolia" height="32"></a> <a href="https://1password.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/1password-icon.svg" alt="1Password" height="32"></a></p> | ||
<!--techsponsorsend--> |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
151445
11
14
3850
110