
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
eslint-plugin-no-array-any
Advanced tools
A rule that prevents declaring arrays and objects without a type.
This is a rule that disallows declaring arrays and objects that do not have a type. For example:
// Bad
const myArray = [];
// Good
const myArray: string[] = [];
// Bad
const myMap = new Map();
// Good
const myMap = new Map<string, string>();
This is useful because the noImplicitAny
TypeScript compiler flag does not catch this pattern. Declaring objects without the type can make code harder to read, especially if the array/object is instantiated far away from where it is mutated.
npm install --save-dev eslint-plugin-no-array-any
"plugin:no-array-any/recommended"
to the extends
section of your .eslintrc.js
file.It only provides one rule: "no-array-any/no-array-any"
FAQs
A rule that prevents declaring arrays and objects without a type.
The npm package eslint-plugin-no-array-any receives a total of 4 weekly downloads. As such, eslint-plugin-no-array-any popularity was classified as not popular.
We found that eslint-plugin-no-array-any demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.