Skip to content

Commit

Permalink
[meta] replace git.io link in comments with the original URL
Browse files Browse the repository at this point in the history
Fixes #2443
  • Loading branch information
liby authored and ljharb committed Apr 28, 2022
1 parent 8399ef4 commit be30a34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -16,6 +16,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
- [Tests] `named`: Run all TypeScript test ([#2427], thanks [@ProdigySim])
- [readme] note use of typescript in readme `import/extensions` section ([#2440], thanks [@OutdatedVersion])
- [Docs] `order`: use correct default value ([#2392], thanks [@hyperupcall])
- [meta] replace git.io link in comments with the original URL ([#2444], thanks [@liby])

## [2.26.0] - 2022-04-05

Expand Down Expand Up @@ -1281,6 +1282,7 @@ for info on changes for earlier releases.
[#211]: https://github.com/import-js/eslint-plugin-import/pull/211
[#164]: https://github.com/import-js/eslint-plugin-import/pull/164
[#157]: https://github.com/import-js/eslint-plugin-import/pull/157
[#2444]: https://github.com/import-js/eslint-plugin-import/issues/2444
[#2392]: https://github.com/import-js/eslint-plugin-import/issues/2392
[#2340]: https://github.com/import-js/eslint-plugin-import/issues/2340
[#2255]: https://github.com/import-js/eslint-plugin-import/issues/2255
Expand Down
2 changes: 1 addition & 1 deletion tests/src/rules/no-unresolved.js
Expand Up @@ -67,7 +67,7 @@ function runResolverTests(resolver) {
options: [{ amd: true }] }),
rest({ code: 'require(["./does-not-exist"], function (bar) {})',
options: [{ amd: false }] }),
// magic modules: https://git.io/vByan
// magic modules: https://github.com/requirejs/requirejs/wiki/Differences-between-the-simplified-CommonJS-wrapper-and-standard-AMD-define#magic-modules
rest({ code: 'define(["require", "exports", "module"], function (r, e, m) { })',
options: [{ amd: true }] }),

Expand Down
2 changes: 1 addition & 1 deletion utils/moduleVisitor.js
Expand Up @@ -81,7 +81,7 @@ exports.default = function visitModules(visitor, options) {
if (typeof element.value !== 'string') continue;

if (element.value === 'require' ||
element.value === 'exports') continue; // magic modules: https://git.io/vByan
element.value === 'exports') continue; // magic modules: https://github.com/requirejs/requirejs/wiki/Differences-between-the-simplified-CommonJS-wrapper-and-standard-AMD-define#magic-modules

checkSourceValue(element, element);
}
Expand Down

0 comments on commit be30a34

Please sign in to comment.