From add650a1aeb118a4334bf2e9c56699ba1a836565 Mon Sep 17 00:00:00 2001 From: Kai Date: Thu, 4 Nov 2021 00:48:07 +0100 Subject: [PATCH] [Docs] HTTP => HTTPS --- .gitignore | 4 ++-- CHANGELOG.md | 7 +++++-- CONTRIBUTING.md | 2 +- README.md | 6 +++--- docs/rules/first.md | 2 +- docs/rules/no-duplicates.md | 2 +- docs/rules/no-mutable-exports.md | 4 ++-- docs/rules/unambiguous.md | 2 +- resolvers/node/CHANGELOG.md | 4 ++-- resolvers/webpack/CHANGELOG.md | 4 ++-- resolvers/webpack/index.js | 2 +- resolvers/webpack/test/alias.js | 4 ++-- src/rules/namespace.js | 2 +- tests/files/flowtypes.js | 2 +- tests/src/rules/no-unresolved.js | 2 +- utils/CHANGELOG.md | 4 ++-- utils/moduleVisitor.js | 4 ++-- utils/resolve.js | 2 +- 18 files changed, 31 insertions(+), 28 deletions(-) diff --git a/.gitignore b/.gitignore index e1114fe9a..8e2f6da1e 100644 --- a/.gitignore +++ b/.gitignore @@ -13,10 +13,10 @@ lib-cov # Coverage directory used by tools like istanbul coverage -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) .grunt -# Compiled binary addons (http://nodejs.org/api/addons.html) +# Compiled binary addons (https://nodejs.org/api/addons.html) build/Release # Copied from ./LICENSE for the npm module releases diff --git a/CHANGELOG.md b/CHANGELOG.md index 3821c7e6f..ed35b29ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Change Log All notable changes to this project will be documented in this file. -This project adheres to [Semantic Versioning](http://semver.org/). -This change log adheres to standards from [Keep a CHANGELOG](http://keepachangelog.com). +This project adheres to [Semantic Versioning](https://semver.org/). +This change log adheres to standards from [Keep a CHANGELOG](https://keepachangelog.com). ## [Unreleased] @@ -14,6 +14,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel - [Docs] [`order`]: add type to the default groups ([#2272], [@charpeni]) - [readme] Add note to TypeScript docs to install appropriate resolver ([#2279], [@johnthagen]) - [Refactor] `importType`: combine redundant `isScoped` and `isScopedModule` ([@ljharb]) +- [Docs] HTTP => HTTPS ([#2287], [@Schweinepriester]) ## [2.25.2] - 2021-10-12 @@ -938,6 +939,7 @@ for info on changes for earlier releases. [`memo-parser`]: ./memo-parser/README.md +[#2287]: https://github.com/import-js/eslint-plugin-import/pull/2287 [#2282]: https://github.com/import-js/eslint-plugin-import/pull/2282 [#2279]: https://github.com/import-js/eslint-plugin-import/pull/2279 [#2272]: https://github.com/import-js/eslint-plugin-import/pull/2272 @@ -1576,6 +1578,7 @@ for info on changes for earlier releases. [@saschanaz]: https://github.com/saschanaz [@schmidsi]: https://github.com/schmidsi [@schmod]: https://github.com/schmod +[@Schweinepriester]: https://github.com/Schweinepriester [@scottnonnenberg]: https://github.com/scottnonnenberg [@sergei-startsev]: https://github.com/sergei-startsev [@sharmilajesupaul]: https://github.com/sharmilajesupaul diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 35a6b14b5..c992d67f0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -110,7 +110,7 @@ If we can all get together behind the common goal of embracing empathy, everythi #### Attribution -Thanks for help from http://mozillascience.github.io/working-open-workshop/contributing/ +Thanks for help from https://mozillascience.github.io/working-open-workshop/contributing/ for inspiration before I wrote this. --ben [README.md]: ./README.md diff --git a/README.md b/README.md index 935792a3b..1d7b55ff5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![coverage][codecov-image]][codecov-url] [![win32 build status](https://ci.appveyor.com/api/projects/status/3mw2fifalmjlqf56/branch/main?svg=true)](https://ci.appveyor.com/project/import-js/eslint-plugin-import/branch/main) [![npm](https://img.shields.io/npm/v/eslint-plugin-import.svg)](https://www.npmjs.com/package/eslint-plugin-import) -[![npm downloads](https://img.shields.io/npm/dt/eslint-plugin-import.svg?maxAge=2592000)](http://www.npmtrends.com/eslint-plugin-import) +[![npm downloads](https://img.shields.io/npm/dt/eslint-plugin-import.svg?maxAge=2592000)](https://www.npmtrends.com/eslint-plugin-import) This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, and prevent issues with misspelling of file paths and import names. All the goodness that the ES2015+ static module syntax intends to provide, marked up in your editor. @@ -256,7 +256,7 @@ the process's current working directory if no `package.json` is found. If you are interesting in writing a resolver, see the [spec](./resolvers/README.md) for more details. [`resolve`]: https://www.npmjs.com/package/resolve -[`externals`]: http://webpack.github.io/docs/library-and-externals.html +[`externals`]: https://webpack.github.io/docs/library-and-externals.html [Node]: https://www.npmjs.com/package/eslint-import-resolver-node [webpack]: https://www.npmjs.com/package/eslint-import-resolver-webpack @@ -483,7 +483,7 @@ The purpose of the `chdir` setting, in this case, is to set the working director from which ESLint is executed to be the same as the directory on which SublimeLinter-eslint bases the relative path it provides. -See the SublimeLinter docs on [`chdir`](http://www.sublimelinter.com/en/latest/linter_settings.html#chdir) +See the SublimeLinter docs on [`chdir`](https://www.sublimelinter.com/en/latest/linter_settings.html#chdir) for more information, in case this does not work with your project. If you are not using `.eslintignore`, or don't have a Sublime project file, you can also diff --git a/docs/rules/first.md b/docs/rules/first.md index cc19003be..c71ab7d8a 100644 --- a/docs/rules/first.md +++ b/docs/rules/first.md @@ -45,7 +45,7 @@ A directive in this case is assumed to be a single statement that contains only a literal string-valued expression. `'use strict'` would be a good example, except that [modules are always in strict -mode](http://www.ecma-international.org/ecma-262/6.0/#sec-strict-mode-code) so it would be surprising to see a `'use strict'` sharing a file with `import`s and +mode](https://262.ecma-international.org/6.0/#sec-strict-mode-code) so it would be surprising to see a `'use strict'` sharing a file with `import`s and `export`s. Given that, see [#255] for the reasoning. diff --git a/docs/rules/no-duplicates.md b/docs/rules/no-duplicates.md index c37510325..5252db1b7 100644 --- a/docs/rules/no-duplicates.md +++ b/docs/rules/no-duplicates.md @@ -3,7 +3,7 @@ Reports if a resolved path is imported more than once. +(fixable) The `--fix` option on the [command line] automatically fixes some problems reported by this rule. -ESLint core has a similar rule ([`no-duplicate-imports`](http://eslint.org/docs/rules/no-duplicate-imports)), but this version +ESLint core has a similar rule ([`no-duplicate-imports`](https://eslint.org/docs/rules/no-duplicate-imports)), but this version is different in two key ways: 1. the paths in the source code don't have to exactly match, they just have to point to the same module on the filesystem. (i.e. `./foo` and `./foo.js`) diff --git a/docs/rules/no-mutable-exports.md b/docs/rules/no-mutable-exports.md index e161e87b1..f4cc7843a 100644 --- a/docs/rules/no-mutable-exports.md +++ b/docs/rules/no-mutable-exports.md @@ -44,8 +44,8 @@ want to enable the following core ESLint rules: - [no-func-assign] - [no-class-assign] -[no-func-assign]: http://eslint.org/docs/rules/no-func-assign -[no-class-assign]: http://eslint.org/docs/rules/no-class-assign +[no-func-assign]: https://eslint.org/docs/rules/no-func-assign +[no-class-assign]: https://eslint.org/docs/rules/no-class-assign ## When Not To Use It diff --git a/docs/rules/unambiguous.md b/docs/rules/unambiguous.md index 92839b0c3..5be7d3df2 100644 --- a/docs/rules/unambiguous.md +++ b/docs/rules/unambiguous.md @@ -50,5 +50,5 @@ a `module`. - [`parserOptions.sourceType`] - [node-eps#13](https://github.com/nodejs/node-eps/issues/13) -[`parserOptions.sourceType`]: http://eslint.org/docs/user-guide/configuring#specifying-parser-options +[`parserOptions.sourceType`]: https://eslint.org/docs/user-guide/configuring#specifying-parser-options [Unambiguous JavaScript Grammar]: https://github.com/nodejs/node-eps/blob/HEAD/002-es-modules.md#32-determining-if-source-is-an-es-module diff --git a/resolvers/node/CHANGELOG.md b/resolvers/node/CHANGELOG.md index c237855a2..8812f1276 100644 --- a/resolvers/node/CHANGELOG.md +++ b/resolvers/node/CHANGELOG.md @@ -1,7 +1,7 @@ # Change Log All notable changes to this resolver will be documented in this file. -This project adheres to [Semantic Versioning](http://semver.org/). -This change log adheres to standards from [Keep a CHANGELOG](http://keepachangelog.com). +This project adheres to [Semantic Versioning](https://semver.org/). +This change log adheres to standards from [Keep a CHANGELOG](https://keepachangelog.com). ## Unreleased diff --git a/resolvers/webpack/CHANGELOG.md b/resolvers/webpack/CHANGELOG.md index 212f77b0d..1626bb272 100644 --- a/resolvers/webpack/CHANGELOG.md +++ b/resolvers/webpack/CHANGELOG.md @@ -1,7 +1,7 @@ # Change Log All notable changes to this resolver will be documented in this file. -This project adheres to [Semantic Versioning](http://semver.org/). -This change log adheres to standards from [Keep a CHANGELOG](http://keepachangelog.com). +This project adheres to [Semantic Versioning](https://semver.org/). +This change log adheres to standards from [Keep a CHANGELOG](https://keepachangelog.com). ## Unreleased diff --git a/resolvers/webpack/index.js b/resolvers/webpack/index.js index 690c3b52a..b569d5322 100644 --- a/resolvers/webpack/index.js +++ b/resolvers/webpack/index.js @@ -236,7 +236,7 @@ function createWebpack2ResolveSync(webpackRequire, resolveConfig) { } /** - * webpack 1 defaults: http://webpack.github.io/docs/configuration.html#resolve-packagemains + * webpack 1 defaults: https://webpack.github.io/docs/configuration.html#resolve-packagemains * @type {Array} */ const webpack1DefaultMains = [ diff --git a/resolvers/webpack/test/alias.js b/resolvers/webpack/test/alias.js index 06aad4469..946365b30 100644 --- a/resolvers/webpack/test/alias.js +++ b/resolvers/webpack/test/alias.js @@ -22,7 +22,7 @@ describe('resolve.alias', function () { // todo: reimplement with resolver function / config // describe.skip('webpack alias spec', function () { -// // from table: http://webpack.github.io/docs/configuration.html#resolve-alias +// // from table: https://webpack.github.io/docs/configuration.html#resolve-alias // function tableLine(alias, xyz, xyzFile) { // describe(JSON.stringify(alias), function () { // it('xyz: ' + xyz, function () { @@ -82,7 +82,7 @@ describe('resolve.alias', function () { // }); // describe.skip('nested module names', function () { -// // from table: http://webpack.github.io/docs/configuration.html#resolve-alias +// // from table: https://webpack.github.io/docs/configuration.html#resolve-alias // function nestedName(alias, xyz, xyzFile) { // describe(JSON.stringify(alias), function () { // it('top/xyz: ' + xyz, function () { diff --git a/src/rules/namespace.js b/src/rules/namespace.js index 74ee9dae3..6325b88ba 100644 --- a/src/rules/namespace.js +++ b/src/rules/namespace.js @@ -68,7 +68,7 @@ module.exports = { case 'ImportDefaultSpecifier': case 'ImportSpecifier': { const meta = imports.get( - // default to 'default' for default http://i.imgur.com/nj6qAWy.jpg + // default to 'default' for default https://i.imgur.com/nj6qAWy.jpg specifier.imported ? specifier.imported.name : 'default', ); if (!meta || !meta.namespace) { break; } diff --git a/tests/files/flowtypes.js b/tests/files/flowtypes.js index 2df247147..4282cf80b 100644 --- a/tests/files/flowtypes.js +++ b/tests/files/flowtypes.js @@ -1,6 +1,6 @@ // @flow // requires babel-eslint parser or flow plugin -// http://flowtype.org/blog/2015/02/18/Import-Types.html +// https://flowtype.org/blog/2015/02/18/Import-Types.html export type MyType = { id: number, firstName: string, diff --git a/tests/src/rules/no-unresolved.js b/tests/src/rules/no-unresolved.js index a5ff6da5d..71efc128e 100644 --- a/tests/src/rules/no-unresolved.js +++ b/tests/src/rules/no-unresolved.js @@ -67,7 +67,7 @@ function runResolverTests(resolver) { options: [{ amd: true }] }), rest({ code: 'require(["./does-not-exist"], function (bar) {})', options: [{ amd: false }] }), - // magic modules: http://git.io/vByan + // magic modules: https://git.io/vByan rest({ code: 'define(["require", "exports", "module"], function (r, e, m) { })', options: [{ amd: true }] }), diff --git a/utils/CHANGELOG.md b/utils/CHANGELOG.md index bfa7e8036..65d67a35c 100644 --- a/utils/CHANGELOG.md +++ b/utils/CHANGELOG.md @@ -1,7 +1,7 @@ # Change Log All notable changes to this module will be documented in this file. -This project adheres to [Semantic Versioning](http://semver.org/). -This change log adheres to standards from [Keep a CHANGELOG](http://keepachangelog.com). +This project adheres to [Semantic Versioning](https://semver.org/). +This change log adheres to standards from [Keep a CHANGELOG](https://keepachangelog.com). ## Unreleased diff --git a/utils/moduleVisitor.js b/utils/moduleVisitor.js index 8fb2b2604..ade475e2a 100644 --- a/utils/moduleVisitor.js +++ b/utils/moduleVisitor.js @@ -54,7 +54,7 @@ exports.default = function visitModules(visitor, options) { } // for CommonJS `require` calls - // adapted from @mctep: http://git.io/v4rAu + // adapted from @mctep: https://git.io/v4rAu function checkCommon(call) { if (call.callee.type !== 'Identifier') return; if (call.callee.name !== 'require') return; @@ -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: http://git.io/vByan + element.value === 'exports') continue; // magic modules: https://git.io/vByan checkSourceValue(element, element); } diff --git a/utils/resolve.js b/utils/resolve.js index 27d5dcc1e..31fb65907 100644 --- a/utils/resolve.js +++ b/utils/resolve.js @@ -51,7 +51,7 @@ function tryRequire(target, sourceFile) { return require(resolved); } -// http://stackoverflow.com/a/27382838 +// https://stackoverflow.com/a/27382838 exports.fileExistsWithCaseSync = function fileExistsWithCaseSync(filepath, cacheSettings, strict) { // don't care if the FS is case-sensitive if (CASE_SENSITIVE_FS) return true;