Skip to content

Commit

Permalink
[Perf] no-cycle, no-internal-modules, no-restricted-paths: use …
Browse files Browse the repository at this point in the history
…`anyOf` instead of `oneOf`

See eslint/eslint#16691
  • Loading branch information
ljharb committed Dec 22, 2022
1 parent b96b499 commit 56b3ea4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -53,6 +53,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
- [Docs] automate docs with eslint-doc-generator ([#2582], thanks [@bmish])
- [readme] Increase clarity around typescript configuration ([#2588], thanks [@Nfinished])
- [Docs] update `eslint-doc-generator` to v1.0.0 ([#2605], thanks [@bmish])
- [Perf] `no-cycle`, `no-internal-modules`, `no-restricted-paths`: use `anyOf` instead of `oneOf` (thanks [@ljharb], [@remcohaszing])

## [2.26.0] - 2022-04-05

Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-cycle.js
Expand Up @@ -21,7 +21,7 @@ module.exports = {
},
schema: [makeOptionsSchema({
maxDepth: {
oneOf: [
anyOf: [
{
description: 'maximum dependency depth to traverse',
type: 'integer',
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-internal-modules.js
Expand Up @@ -16,7 +16,7 @@ module.exports = {

schema: [
{
oneOf: [
anyOf: [
{
type: 'object',
properties: {
Expand Down
4 changes: 2 additions & 2 deletions src/rules/no-restricted-paths.js
Expand Up @@ -32,7 +32,7 @@ module.exports = {
type: 'object',
properties: {
target: {
oneOf: [
anyOf: [
{ type: 'string' },
{
type: 'array',
Expand All @@ -43,7 +43,7 @@ module.exports = {
],
},
from: {
oneOf: [
anyOf: [
{ type: 'string' },
{
type: 'array',
Expand Down

0 comments on commit 56b3ea4

Please sign in to comment.