@eslint/eslintrc
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -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( |
{ | ||
"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
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
679783
29
9091