From 58c0ea28a5571d1204abafa12ff03d6c5e7b793f Mon Sep 17 00:00:00 2001 From: Yuku Kotani Date: Sun, 29 May 2022 18:04:04 +0900 Subject: [PATCH] master -> main (#44) --- .github/workflows/build.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- README.md | 8 ++++---- src/rules/props-order.ts | 2 +- src/rules/props-shorthand.ts | 2 +- src/rules/require-specific-component.ts | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41246b0..d9a92a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,9 @@ -name: Build +name: Build on: push: branches: - - master + - main pull_request: jobs: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 001422a..413299f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,7 +3,7 @@ name: Lint on: push: branches: - - master + - main pull_request: jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ba7580b..4555ee7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ name: Test on: push: branches: - - master + - main pull_request: jobs: diff --git a/README.md b/README.md index de4bb7a..6d3323f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # eslint-plugin-chakra-ui [![npm](https://img.shields.io/npm/v/eslint-plugin-chakra-ui)](https://www.npmjs.com/package/eslint-plugin-chakra-ui) -[![license](https://img.shields.io/npm/l/eslint-plugin-chakra-ui)](https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/master/LICENSE) +[![license](https://img.shields.io/npm/l/eslint-plugin-chakra-ui)](https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/main/LICENSE) ESLint rules for [Chakra UI](https://chakra-ui.com/). @@ -50,9 +50,9 @@ Now you can add chakra-ui rules: Every rule is fixable with `eslint --fix`. -- [`props-order`](https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/master/docs/rules/props-order.md): Enforces order of properties to be semantical -- [`props-shorthand`](https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/master/docs/rules/props-shorthand.md): Enforces the usage of shorthand property or vice-versa -- [`require-specific-component`](https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/master/docs/rules/require-specific-component.md): Enforces the usage of specific Chakra components instead of Box components with an attribute. +- [`props-order`](https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/main/docs/rules/props-order.md): Enforces order of properties to be semantical +- [`props-shorthand`](https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/main/docs/rules/props-shorthand.md): Enforces the usage of shorthand property or vice-versa +- [`require-specific-component`](https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/main/docs/rules/require-specific-component.md): Enforces the usage of specific Chakra components instead of Box components with an attribute. ## Prior Art diff --git a/src/rules/props-order.ts b/src/rules/props-order.ts index 32b52d1..ff0617a 100644 --- a/src/rules/props-order.ts +++ b/src/rules/props-order.ts @@ -26,7 +26,7 @@ export const propsOrderRule: TSESLint.RuleModule<"invalidOrder", Options> = { docs: { description: "Enforce a order of the Chakra component's props.", recommended: "error", - url: "https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/master/docs/rules/props-order.md", + url: "https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/main/docs/rules/props-order.md", }, messages: { invalidOrder: "Invalid Chakra props order.", diff --git a/src/rules/props-shorthand.ts b/src/rules/props-shorthand.ts index 8603c9b..2001fba 100644 --- a/src/rules/props-shorthand.ts +++ b/src/rules/props-shorthand.ts @@ -13,7 +13,7 @@ export const propsShorthandRule: TSESLint.RuleModule<"enforcesShorthand" | "enfo docs: { description: "Enforces the usage of shorthand Chakra component props.", recommended: "error", - url: "https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/master/docs/rules/props-shorthand.md", + url: "https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/main/docs/rules/props-shorthand.md", }, messages: { enforcesShorthand: "Prop '{{invalidName}}' could be replaced by the '{{validName}}' shorthand.", diff --git a/src/rules/require-specific-component.ts b/src/rules/require-specific-component.ts index 2daa1b6..97e46f8 100644 --- a/src/rules/require-specific-component.ts +++ b/src/rules/require-specific-component.ts @@ -9,7 +9,7 @@ export const requireSpecificComponentRule: TSESLint.RuleModule<"requireSpecificC docs: { description: "Enforces the usage of specific Chakra component.", recommended: "error", - url: "https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/master/docs/rules/require-specific-component.md", + url: "https://github.com/yukukotani/eslint-plugin-chakra-ui/blob/main/docs/rules/require-specific-component.md", }, messages: { requireSpecificComponent: