[Fix] no-extraneous-dependencies: allow incorrect paths in packageDir by chabb · Pull Request #3012 · import-js/eslint-plugin-import (original) (raw)
- If you pass only one path to a package.json file, then this path should be correct
- If you pass multiple paths, there are some situations when those paths point to a wrong path, this happens typically in a nx monorepo with husky -- NX will run eslint in the projects folder, so we need to grab the root package.json -- Husky will run in the root folder, so one of the path given will be an incorrect path, but we do not want throw there, otherwise the rull will fail
changed the title
[fix] [fix] no-extraneous-dependencies allow wrong pathno-extraneous-dependencies allow incorrect paths in packageDir
ljharb changed the title
[fix] [Fix] no-extraneous-dependencies allow incorrect paths in packageDirno-extraneous-dependencies: allow incorrect paths in packageDir
renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request
| datasource | package | from | to |
|---|---|---|---|
| npm | eslint-plugin-import | 2.29.1 | 2.30.0 |
v2.30.0
Added
- [
dynamic-import-chunkname]: addallowEmptyoption to allow empty leading comments ([#2942], thanks [@JiangWeixian]) - [
dynamic-import-chunkname]: Allow empty chunk name when webpackMode: 'eager' is set; add suggestions to remove name in eager mode ([#3004], thanks [@amsardesai]) - [
no-unused-modules]: AddignoreUnusedTypeExportsoption ([#3011], thanks [@silverwind]) - add support for Flat Config ([#3018], thanks [@michaelfaith])
Fixed
- [
no-extraneous-dependencies]: allow wrong path ([#3012], thanks [@chabb]) - [
no-cycle]: use scc algorithm to optimize ([#2998], thanks [@soryy708]) - [
no-duplicates]: Removing duplicates breaks in TypeScript ([#3033], thanks [@yesl-kim]) - [
newline-after-import]: fix considerComments option when require ([#2952], thanks [@developer-bandi]) - [
order]: do not compare first path segment for relative paths ([#2682]) ([#2885], thanks [@mihkeleidast])
Changed
- [Docs]
no-extraneous-dependencies: Make glob pattern description more explicit ([#2944], thanks [@mulztob]) - [
no-unused-modules]: add console message to help debug [#2866] - [Refactor]
ExportMap: make procedures static instead of monkeypatching exportmap ([#2982], thanks [@soryy708]) - [Refactor]
ExportMap: separate ExportMap instance from its builder logic ([#2985], thanks [@soryy708]) - [Docs]
order: Add a quick note on how unbound imports and --fix ([#2640], thanks [@MinervaBot]) - [Tests] appveyor -> GHA (run tests on Windows in both pwsh and WSL + Ubuntu) ([#2987], thanks [@joeyguerra])
- [actions] migrate OSX tests to GHA ([ljharb#37], thanks [@aks-])
- [Refactor]
exportMapBuilder: avoid hoisting ([#2989], thanks [@soryy708]) - [Refactor]
ExportMap: extract "builder" logic to separate files ([#2991], thanks [@soryy708]) - [Docs] [
order]: update the description of thepathGroupsExcludedImportTypesoption ([#3036], thanks [@liby]) - [readme] Clarify how to install the plugin ([#2993], thanks [@jwbth])
NOUIY mentioned this pull request
This was referenced
Sep 26, 2024
qdraw mentioned this pull request
This was referenced
Oct 3, 2024
This was referenced
Oct 4, 2024
qdraw mentioned this pull request
This was referenced
Oct 28, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})