Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] HTTP => HTTPS #2287

Merged
merged 1 commit into from Nov 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions 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]

Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -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
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/first.md
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-duplicates.md
Expand Up @@ -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`)
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/no-mutable-exports.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/unambiguous.md
Expand Up @@ -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
4 changes: 2 additions & 2 deletions 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

Expand Down
4 changes: 2 additions & 2 deletions 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

Expand Down
2 changes: 1 addition & 1 deletion resolvers/webpack/index.js
Expand Up @@ -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 = [
Expand Down
4 changes: 2 additions & 2 deletions resolvers/webpack/test/alias.js
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion src/rules/namespace.js
Expand Up @@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion 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,
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: http://git.io/vByan
// magic modules: https://git.io/vByan
rest({ code: 'define(["require", "exports", "module"], function (r, e, m) { })',
options: [{ amd: true }] }),

Expand Down
4 changes: 2 additions & 2 deletions 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

Expand Down
4 changes: 2 additions & 2 deletions utils/moduleVisitor.js
Expand Up @@ -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;
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion utils/resolve.js
Expand Up @@ -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;
Expand Down