Skip to content

Commit 9485c83

Browse files
committedAug 20, 2021
[meta] rename default branch
1 parent 6c957e7 commit 9485c83

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed
 

‎README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# eslint-plugin-import
22

3-
[![build status](https://travis-ci.org/import-js/eslint-plugin-import.svg?branch=master)](https://travis-ci.org/import-js/eslint-plugin-import)
4-
[![Coverage Status](https://coveralls.io/repos/github/import-js/eslint-plugin-import/badge.svg?branch=master)](https://coveralls.io/github/import-js/eslint-plugin-import?branch=master)
5-
[![win32 build status](https://ci.appveyor.com/api/projects/status/3mw2fifalmjlqf56/branch/master?svg=true)](https://ci.appveyor.com/project/import-js/eslint-plugin-import/branch/master)
3+
[![github actions][actions-image]][actions-url]
4+
[![travis-ci](https://travis-ci.org/import-js/eslint-plugin-import.svg?branch=main)](https://travis-ci.org/import-js/eslint-plugin-import)
5+
[![coverage][codecov-image]][codecov-url]
6+
[![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)
67
[![npm](https://img.shields.io/npm/v/eslint-plugin-import.svg)](https://www.npmjs.com/package/eslint-plugin-import)
78
[![npm downloads](https://img.shields.io/npm/dt/eslint-plugin-import.svg?maxAge=2592000)](http://www.npmtrends.com/eslint-plugin-import)
89

@@ -171,7 +172,7 @@ extends:
171172
- plugin:import/typescript # this line does the trick
172173
```
173174
174-
[`@typescript-eslint/parser`]: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser
175+
[`@typescript-eslint/parser`]: https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser
175176

176177
# Resolvers
177178

@@ -510,3 +511,8 @@ In Package Settings / SublimeLinter / User Settings:
510511

511512
I believe this defaults to `3`, so you may not need to alter it depending on your
512513
project folder max depth.
514+
515+
[codecov-image]: https://codecov.io/gh/import-js/eslint-plugin-import/branch/main/graphs/badge.svg
516+
[codecov-url]: https://app.codecov.io/gh/import-js/eslint-plugin-import/
517+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/import-js/eslint-plugin-import
518+
[actions-url]: https://github.com/import-js/eslint-plugin-import

‎RELEASE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Release steps
22

3-
1. create a `release-[x.y.z]` branch from tip of `master` (or whatever release commit)
3+
1. create a `release-[x.y.z]` branch from tip of `main` (or whatever release commit)
44

55
```bash
6-
git checkout master && git pull && git checkout -b release-2.1.0
6+
git checkout main && git pull && git checkout -b release-2.1.0
77
```
88

99
2. bump `package.json` + update CHANGELOG version links for all releasing packages (i.e., root + any resolvers)
@@ -49,6 +49,6 @@
4949
7. merge `release-[x.y.z]` into `release` (
5050
- ideally fast-forward, probably with Git CLI instead of Github
5151

52-
8. merge `release` into `master`
52+
8. merge `release` into `main`
5353

5454
Done!

‎docs/rules/imports-first.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# imports-first
22

3-
This rule was **deprecated** in eslint-plugin-import v2.0.0. Please use the corresponding rule [`first`](https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/first.md).
3+
This rule was **deprecated** in eslint-plugin-import v2.0.0. Please use the corresponding rule [`first`](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/first.md).

‎docs/rules/unambiguous.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ a `module`.
5151
- [node-eps#13](https://github.com/nodejs/node-eps/issues/13)
5252

5353
[`parserOptions.sourceType`]: http://eslint.org/docs/user-guide/configuring#specifying-parser-options
54-
[Unambiguous JavaScript Grammar]: https://github.com/nodejs/node-eps/blob/master/002-es-modules.md#32-determining-if-source-is-an-es-module
54+
[Unambiguous JavaScript Grammar]: https://github.com/nodejs/node-eps/blob/HEAD/002-es-modules.md#32-determining-if-source-is-an-es-module

‎resolvers/webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"bugs": {
3131
"url": "https://github.com/import-js/eslint-plugin-import/issues"
3232
},
33-
"homepage": "https://github.com/import-js/eslint-plugin-import/tree/master/resolvers/webpack",
33+
"homepage": "https://github.com/import-js/eslint-plugin-import/tree/HEAD/resolvers/webpack",
3434
"dependencies": {
3535
"array-find": "^1.0.0",
3636
"debug": "^3.2.7",

‎src/rules/no-commonjs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function validateScope(scope) {
3333
return scope.variableScope.type === 'module';
3434
}
3535

36-
// https://github.com/estree/estree/blob/master/es5.md
36+
// https://github.com/estree/estree/blob/HEAD/es5.md
3737
function isConditional(node) {
3838
if (
3939
node.type === 'IfStatement'

‎utils/moduleVisitor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exports.default = function visitModules(visitor, options) {
3737
// for esmodule dynamic `import()` calls
3838
function checkImportCall(node) {
3939
let modulePath;
40-
// refs https://github.com/estree/estree/blob/master/es2020.md#importexpression
40+
// refs https://github.com/estree/estree/blob/HEAD/es2020.md#importexpression
4141
if (node.type === 'ImportExpression') {
4242
modulePath = node.source;
4343
} else if (node.type === 'CallExpression') {

0 commit comments

Comments
 (0)
Please sign in to comment.