Skip to content

Add new eslint rule#2370

Merged
lkostrowski merged 7 commits into
mainfrom
lkostrowski/add-eslint-plugin-depend
Jun 22, 2026
Merged

Add new eslint rule#2370
lkostrowski merged 7 commits into
mainfrom
lkostrowski/add-eslint-plugin-depend

Conversation

@lkostrowski

Copy link
Copy Markdown
Member

Scope of the PR

Related issues

Checklist

@lkostrowski lkostrowski requested a review from a team as a code owner June 10, 2026 10:11
@lkostrowski lkostrowski requested review from Copilot and magul June 10, 2026 10:11
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
saleor-app-anonymizer Ready Ready Preview, Comment Jun 22, 2026 8:00am
saleor-app-avatax Ready Ready Preview, Comment Jun 22, 2026 8:00am
saleor-app-cms Ready Ready Preview, Comment Jun 22, 2026 8:00am
saleor-app-klaviyo Ready Ready Preview, Comment Jun 22, 2026 8:00am
saleor-app-onboarding Ready Ready Preview, Comment Jun 22, 2026 8:00am
saleor-app-payment-np-atobarai Ready Ready Preview, Comment Jun 22, 2026 8:00am
saleor-app-payment-stripe Ready Ready Preview, Comment Jun 22, 2026 8:00am
saleor-app-products-feed Ready Ready Preview, Comment Jun 22, 2026 8:00am
saleor-app-search Ready Ready Preview, Comment Jun 22, 2026 8:00am
saleor-app-segment Ready Ready Preview, Comment Jun 22, 2026 8:00am
saleor-app-smtp Ready Ready Preview, Comment Jun 22, 2026 8:00am

Request Review

@changeset-bot

changeset-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a345b05

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@saleor/eslint-config-apps Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the shared @saleor/eslint-config-apps flat ESLint configuration to include eslint-plugin-depend and enables the depend/ban-dependencies rule to flag imports of redundant packages in the monorepo.

Changes:

  • Added eslint-plugin-depend to the ESLint config package dependencies and lockfile.
  • Enabled the depend/ban-dependencies rule for js/ts/tsx files in the shared flat config.
  • Added a changeset to version the eslint-config package for this rule addition.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
pnpm-lock.yaml Locks eslint-plugin-depend and its transitive dependencies.
packages/eslint-config/package.json Adds eslint-plugin-depend@1.5.0 to the eslint-config package.
packages/eslint-config/index.js Registers the depend plugin and enables depend/ban-dependencies for JS/TS/TSX.
.changeset/add-eslint-plugin-depend.md Declares a version bump and documents the new lint rule behavior.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Differences Found

⚠️ 3 packages or licenses were added.

Expand
License	Package
MIT	empathic
MIT	eslint-plugin-depend
MIT	module-replacements

Summary

Expand
License Name Package Count Packages
0BSD 1
Packages
  • tslib
CC BY-SA 4.0 1
Packages
  • @cspell/dict-en-common-misspellings
CC0-1.0 1
Packages
  • type-fest
MIT (http://mootools.net/license.txt) 1
Packages
  • slick
MIT/X11 1
Packages
  • nub
Public Domain 1
Packages
  • jsonify
Python-2.0 1
Packages
  • argparse
SEE LICENSE IN LICENSE 1
Packages
  • spawndamnit
SEE LICENSE IN LICENSE.md 1
Packages
  • cookie-lite
Unlicense 1
Packages
  • @sinonjs/text-encoding
WTFPL 1
Packages
  • opener
BlueOak-1.0.0 3
Packages
  • jackspeak
  • package-json-from-dist
  • path-scurry
CC-BY-4.0 3
Packages
  • @saleor/macaw-ui
  • caniuse-lite
  • saleor-apps
LGPL-3.0-or-later 14
Packages
  • @img/sharp-libvips-darwin-arm64
  • @img/sharp-libvips-darwin-x64
  • @img/sharp-libvips-linux-arm
  • @img/sharp-libvips-linux-arm64
  • @img/sharp-libvips-linux-ppc64
  • @img/sharp-libvips-linux-riscv64
  • @img/sharp-libvips-linux-s390x
  • @img/sharp-libvips-linux-x64
  • @img/sharp-libvips-linuxmusl-arm64
  • @img/sharp-libvips-linuxmusl-x64
  • @img/sharp-wasm32
  • @img/sharp-win32-arm64
  • @img/sharp-win32-ia32
  • @img/sharp-win32-x64
BSD-2-Clause 22
Packages
  • cheerio-select
  • css-select
  • css-what
  • domelementtype
  • domhandler
  • domutils
  • dotenv
  • entities
  • escodegen
  • eslint-scope
  • espree
  • esprima
  • esrecurse
  • estraverse
  • esutils
  • glob-to-regexp
  • nth-check
  • shimmer
  • terser
  • uglify-js
  • And 2 more...
<<missing>> 29
Packages
  • @saleor/app-problems
  • @saleor/apps-domain
  • @saleor/apps-logger
  • @saleor/apps-otel
  • @saleor/apps-shared
  • @saleor/apps-trpc
  • @saleor/apps-ui
  • @saleor/dynamo-config-repository
  • @saleor/errors
  • @saleor/eslint-config-apps
  • @saleor/handlebars
  • @saleor/react-hook-form-macaw
  • @saleor/sentry-utils
  • @saleor/typescript-config-apps
  • @saleor/webhook-utils
  • busboy
  • json-query
  • saleor-app-anonymizer
  • saleor-app-avatax
  • saleor-app-cms
  • And 9 more...
BSD-3-Clause 48
Packages
  • @protobufjs/aspromise
  • @protobufjs/base64
  • @protobufjs/codegen
  • @protobufjs/eventemitter
  • @protobufjs/fetch
  • @protobufjs/float
  • @protobufjs/inquire
  • @protobufjs/path
  • @protobufjs/pool
  • @protobufjs/utf8
  • @saleor/app-sdk
  • @saleor/eslint-plugin-saleor-app
  • @sentry/cli
  • @sentry/cli-darwin
  • @sentry/cli-linux-arm
  • @sentry/cli-linux-arm64
  • @sentry/cli-linux-i686
  • @sentry/cli-linux-x64
  • @sentry/cli-win32-i686
  • @sentry/cli-win32-x64
  • And 28 more...
ISC 56
Packages
  • @bundled-es-modules/cookie
  • @bundled-es-modules/statuses
  • @bundled-es-modules/tough-cookie
  • @isaacs/cliui
  • abbrev
  • anymatch
  • boolbase
  • cli-width
  • cliui
  • concat-with-sourcemaps
  • electron-to-chromium
  • fastq
  • flatted
  • foreground-child
  • form-data-lite
  • fs.realpath
  • get-caller-file
  • glob
  • glob-parent
  • graceful-fs
  • And 36 more...
Apache-2.0 241
Packages
  • @ampproject/remapping
  • @aws-crypto/crc32
  • @aws-crypto/crc32c
  • @aws-crypto/ie11-detection
  • @aws-crypto/sha1-browser
  • @aws-crypto/sha256-browser
  • @aws-crypto/sha256-js
  • @aws-crypto/supports-web-crypto
  • @aws-crypto/util
  • @aws-sdk/abort-controller
  • @aws-sdk/chunked-blob-reader
  • @aws-sdk/client-dynamodb
  • @aws-sdk/client-s3
  • @aws-sdk/client-sso
  • @aws-sdk/client-sso-oidc
  • @aws-sdk/client-sts
  • @aws-sdk/config-resolver
  • @aws-sdk/core
  • @aws-sdk/credential-provider-env
  • @aws-sdk/credential-provider-http
  • And 221 more...
MIT 1412
Packages
  • @0no-co/graphql.web
  • @adobe/css-tools
  • @algolia/cache-browser-local-storage
  • @algolia/cache-common
  • @algolia/cache-in-memory
  • @algolia/client-account
  • @algolia/client-analytics
  • @algolia/client-common
  • @algolia/client-personalization
  • @algolia/client-search
  • @algolia/logger-common
  • @algolia/logger-console
  • @algolia/recommend
  • @algolia/requester-browser-xhr
  • @algolia/requester-common
  • @algolia/requester-node-http
  • @algolia/transporter
  • @apidevtools/json-schema-ref-parser
  • @ardatan/relay-compiler
  • @ardatan/sync-fetch
  • And 1392 more...

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.15%. Comparing base (a03ca48) to head (a345b05).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2370   +/-   ##
=======================================
  Coverage   38.15%   38.15%           
=======================================
  Files        1048     1048           
  Lines       67116    67116           
  Branches     3598     3598           
=======================================
  Hits        25605    25605           
  Misses      41121    41121           
  Partials      390      390           
Flag Coverage Δ
avatax 57.58% <ø> (ø)
cms 21.85% <ø> (ø)
domain 100.00% <ø> (ø)
dynamo-config-repository 79.29% <ø> (ø)
errors 92.00% <ø> (ø)
logger 28.81% <ø> (ø)
np-atobarai 72.66% <ø> (ø)
products-feed 6.01% <ø> (ø)
search 32.31% <ø> (ø)
segment 33.65% <ø> (ø)
shared 56.07% <ø> (ø)
smtp 36.32% <ø> (ø)
stripe 70.89% <ø> (ø)
webhook-utils 21.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI review requested due to automatic review settings June 15, 2026 06:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread .changeset/add-eslint-plugin-depend.md Outdated
@lkostrowski lkostrowski requested a review from przlada June 17, 2026 07:28

@wcislo-saleor wcislo-saleor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except for misleading changeset text it's fine.

Comment thread .changeset/add-eslint-plugin-depend.md Outdated
lkostrowski and others added 2 commits June 17, 2026 12:33
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@lkostrowski lkostrowski enabled auto-merge (squash) June 22, 2026 07:58
@lkostrowski lkostrowski merged commit adf64c1 into main Jun 22, 2026
41 of 43 checks passed
@lkostrowski lkostrowski deleted the lkostrowski/add-eslint-plugin-depend branch June 22, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants