Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eslint/eslintrc

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslint/eslintrc - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

lib/shared/deep-merge-arrays.js

6

lib/shared/config-validator.js

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

import ajvOrig from "./ajv.js";
import { deepMergeArrays } from "./deep-merge-arrays.js";
import configSchema from "../../conf/config-schema.js";

@@ -152,3 +153,6 @@ import BuiltInEnvironments from "../../conf/environments.js";

if (validateRule) {
validateRule(localOptions);
const mergedOptions = deepMergeArrays(rule.meta?.defaultOptions, localOptions);
validateRule(mergedOptions);
if (validateRule.errors) {

@@ -155,0 +159,0 @@ throw new Error(validateRule.errors.map(

2

package.json
{
"name": "@eslint/eslintrc",
"version": "3.1.0",
"version": "3.2.0",
"description": "The legacy ESLintRC config file format for ESLint",

@@ -5,0 +5,0 @@ "type": "module",

@@ -43,3 +43,3 @@ # ESLintRC Library

// mimic ESLintRC-style extends
...compat.extends("standard", "example"),
...compat.extends("standard", "example", "plugin:react/recommended"),

@@ -53,7 +53,7 @@ // mimic environments

// mimic plugins
...compat.plugins("airbnb", "react"),
...compat.plugins("jsx-a11y", "react"),
// translate an entire config
...compat.config({
plugins: ["airbnb", "react"],
plugins: ["jsx-a11y", "react"],
extends: "standard",

@@ -89,3 +89,3 @@ env: {

// mimic ESLintRC-style extends
...compat.extends("standard", "example"),
...compat.extends("standard", "example", "plugin:react/recommended"),

@@ -99,7 +99,7 @@ // mimic environments

// mimic plugins
...compat.plugins("airbnb", "react"),
...compat.plugins("jsx-a11y", "react"),
// translate an entire config
...compat.config({
plugins: ["airbnb", "react"],
plugins: ["jsx-a11y", "react"],
extends: "standard",

@@ -106,0 +106,0 @@ env: {

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

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