New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint

Package Overview
Dependencies
Maintainers
2
Versions
380
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint - npm Package Compare versions

Comparing version 9.15.0 to 9.16.0

9

lib/rules/accessor-pairs.js

@@ -180,6 +180,7 @@ /**

create(context) {
const [config] = context.options;
const checkGetWithoutSet = config.getWithoutSet === true;
const checkSetWithoutGet = config.setWithoutGet !== false;
const enforceForClassMembers = config.enforceForClassMembers !== false;
const [{
getWithoutSet: checkGetWithoutSet,
setWithoutGet: checkSetWithoutGet,
enforceForClassMembers
}] = context.options;
const sourceCode = context.sourceCode;

@@ -186,0 +187,0 @@

@@ -45,3 +45,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
allowImplicit: false
}],

@@ -48,0 +50,0 @@ docs: {

@@ -28,3 +28,4 @@ /**

exceptions: [],
min: 2
min: 2,
properties: "always"
}],

@@ -31,0 +32,0 @@

@@ -23,3 +23,8 @@ /**

defaultOptions: ["^.+$", {}],
defaultOptions: ["^.+$", {
classFields: false,
ignoreDestructuring: false,
onlyDeclarations: false,
properties: false
}],

@@ -26,0 +31,0 @@ docs: {

@@ -121,3 +121,3 @@ /**

const [config] = context.options;
const skipProperties = config.properties === false;
const skipProperties = !config.properties;

@@ -124,0 +124,0 @@ const newIsCapExceptions = config.newIsCapExceptions.reduce(invert, {});

@@ -28,3 +28,6 @@ /**

defaultOptions: [{ allow: [] }],
defaultOptions: [{
allow: [],
int32Hint: false
}],

@@ -31,0 +34,0 @@ docs: {

@@ -17,3 +17,3 @@ /**

docs: {
description: "Disallow comparing against -0",
description: "Disallow comparing against `-0`",
recommended: true,

@@ -20,0 +20,0 @@ url: "https://eslint.org/docs/latest/rules/no-compare-neg-zero"

@@ -235,3 +235,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
includeExports: false
}],

@@ -238,0 +240,0 @@ docs: {

@@ -18,3 +18,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
allowObjectPatternsAsParameters: false
}],

@@ -21,0 +23,0 @@ docs: {

@@ -45,3 +45,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
allowIndirect: false
}],

@@ -48,0 +50,0 @@ docs: {

@@ -17,3 +17,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
lexicalBindings: false
}],

@@ -20,0 +22,0 @@ docs: {

@@ -50,3 +50,3 @@ /**

defaultOptions: ["functions"],
defaultOptions: ["functions", { blockScopedFunctions: "allow" }],

@@ -81,6 +81,6 @@ docs: {

const both = context.options[0] === "both";
const { blockScopedFunctions } = context.options[1];
const sourceCode = context.sourceCode;
const ecmaVersion = context.languageOptions.ecmaVersion;
const blockScopedFunctions = context.options[1]?.blockScopedFunctions ?? "allow";

@@ -87,0 +87,0 @@ /**

@@ -18,3 +18,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
ignoreNonDeclaration: false
}],

@@ -21,0 +23,0 @@ docs: {

@@ -53,3 +53,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
allowForLoopAfterthoughts: false
}],

@@ -56,0 +58,0 @@ docs: {

@@ -144,3 +144,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
allowVoid: false
}],

@@ -147,0 +149,0 @@ docs: {

@@ -34,3 +34,5 @@ /**

allow: [],
hoist: "functions"
builtinGlobals: false,
hoist: "functions",
ignoreOnInitialization: false
}],

@@ -49,3 +51,3 @@

builtinGlobals: { type: "boolean" },
hoist: { enum: ["all", "functions", "never"], default: "functions" },
hoist: { enum: ["all", "functions", "never"] },
allow: {

@@ -52,0 +54,0 @@ type: "array",

@@ -31,3 +31,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
typeof: false
}],

@@ -34,0 +36,0 @@ docs: {

@@ -25,2 +25,3 @@ /**

allowInObjectDestructuring: true,
enforceInClassFields: false,
enforceInMethodNames: false

@@ -27,0 +28,0 @@ }],

@@ -54,3 +54,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
enforceForOrderingRelations: false
}],

@@ -57,0 +59,0 @@ docs: {

@@ -26,3 +26,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
disallowArithmeticOperators: false
}],

@@ -29,0 +31,0 @@ docs: {

@@ -252,3 +252,4 @@ /**

functions: true,
variables: true
variables: true,
allowNamedExports: false
}],

@@ -255,0 +256,0 @@

@@ -123,3 +123,3 @@ /**

const sourceCode = context.sourceCode;
const enforceForClassMembers = context.options[0]?.enforceForClassMembers ?? true;
const [{ enforceForClassMembers }] = context.options;

@@ -126,0 +126,0 @@ /**

@@ -23,3 +23,7 @@ /**

defaultOptions: [{}],
defaultOptions: [{
ignoreDestructuring: false,
ignoreImport: false,
ignoreExport: false
}],

@@ -26,0 +30,0 @@ docs: {

@@ -16,3 +16,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
allowAsStatement: false
}],

@@ -19,0 +21,0 @@ docs: {

@@ -334,3 +334,6 @@ /**

defaultOptions: [{ destructuring: "any" }],
defaultOptions: [{
destructuring: "any",
ignoreReadBeforeAssign: false
}],

@@ -361,6 +364,5 @@ docs: {

create(context) {
const [options] = context.options;
const [{ destructuring, ignoreReadBeforeAssign }] = context.options;
const shouldMatchAnyDestructuredVariable = destructuring !== "all";
const sourceCode = context.sourceCode;
const shouldMatchAnyDestructuredVariable = options.destructuring !== "all";
const ignoreReadBeforeAssign = options.ignoreReadBeforeAssign === true;
const variables = [];

@@ -367,0 +369,0 @@ let reportCount = 0;

@@ -18,3 +18,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
allowEmptyReject: false
}],

@@ -21,0 +23,0 @@ docs: {

@@ -115,3 +115,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
disallowRedundantWrapping: false
}],

@@ -118,0 +120,0 @@ docs: {

@@ -173,3 +173,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
allowProperties: false
}],

@@ -176,0 +178,0 @@ docs: {

@@ -86,2 +86,3 @@ /**

caseSensitive: true,
ignoreComputedKeys: false,
minKeys: 2,

@@ -116,2 +117,5 @@ natural: false

type: "boolean"
},
ignoreComputedKeys: {
type: "boolean"
}

@@ -129,3 +133,3 @@ },

create(context) {
const [order, { caseSensitive, natural, minKeys, allowLineSeparatedGroups }] = context.options;
const [order, { caseSensitive, natural, minKeys, allowLineSeparatedGroups, ignoreComputedKeys }] = context.options;
const insensitive = !caseSensitive;

@@ -166,2 +170,7 @@ const isValidOrder = isValidOrders[

if (ignoreComputedKeys && node.computed) {
stack.prevName = null; // reset sort
return;
}
const prevName = stack.prevName;

@@ -168,0 +177,0 @@ const numKeys = stack.numKeys;

@@ -17,3 +17,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
ignoreCase: false
}],

@@ -31,4 +33,3 @@ docs: {

ignoreCase: {
type: "boolean",
default: false
type: "boolean"
}

@@ -35,0 +36,0 @@ },

@@ -87,4 +87,3 @@ /**

const enforceForSwitchCase = !context.options[0] || context.options[0].enforceForSwitchCase;
const enforceForIndexOf = context.options[0] && context.options[0].enforceForIndexOf;
const [{ enforceForIndexOf, enforceForSwitchCase }] = context.options;
const sourceCode = context.sourceCode;

@@ -91,0 +90,0 @@

@@ -22,3 +22,5 @@ /**

defaultOptions: [{}],
defaultOptions: [{
requireStringLiterals: false
}],

@@ -38,4 +40,3 @@ docs: {

requireStringLiterals: {
type: "boolean",
default: false
type: "boolean"
}

@@ -42,0 +43,0 @@ },

@@ -1857,2 +1857,6 @@ /**

allowLineSeparatedGroups: boolean;
/**
* @default false
*/
ignoreComputedKeys: boolean;
}>,

@@ -1859,0 +1863,0 @@ ]

{
"name": "eslint",
"version": "9.15.0",
"version": "9.16.0",
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",

@@ -105,3 +105,3 @@ "description": "An AST-based pattern checker for JavaScript.",

"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "9.15.0",
"@eslint/js": "9.16.0",
"@eslint/plugin-kit": "^0.2.3",

@@ -137,6 +137,6 @@ "@humanfs/node": "^0.16.6",

"devDependencies": {
"@arethetypeswrong/cli": "^0.16.4",
"@arethetypeswrong/cli": "^0.17.0",
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@eslint/json": "^0.6.0",
"@eslint/json": "^0.8.0",
"@trunkio/launcher": "^1.3.0",

@@ -143,0 +143,0 @@ "@types/node": "^20.11.5",

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