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

chore: update configs of prettier and eslint #244

Merged
merged 4 commits into from
Feb 13, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

78 changes: 0 additions & 78 deletions .eslintrc.json

This file was deleted.

20 changes: 10 additions & 10 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ appearance, race, religion, or sexual identity and orientation.
Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
- The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities
Expand Down
22 changes: 11 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ updates:
schedule:
interval: 'monthly'
ignore:
- dependency-name: "@types/*"
- dependency-name: "eslint"
- dependency-name: "eslint-*"
- dependency-name: "typescript"
- dependency-name: "jest"
- dependency-name: "jest-*"
- dependency-name: '@types/*'
- dependency-name: 'eslint'
- dependency-name: 'eslint-*'
- dependency-name: 'typescript'
- dependency-name: 'jest'
- dependency-name: 'jest-*'
versioning-strategy: 'increase'
commit-message:
prefix: "chore(deps): "
prefix: 'chore(deps): '

- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "monthly"
interval: 'monthly'
commit-message:
prefix: "chore(deps): "
prefix: 'chore(deps): '
80 changes: 40 additions & 40 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,104 +1,104 @@
version: v1

labels:
- label: "feat"
- label: 'feat'
matcher:
title: "^feat:.*"
branch: "^feat/.*"
commits: "^feat:.*"
title: '^feat:.*'
branch: '^feat/.*'
commits: '^feat:.*'
- label: dependabot
matcher:
title: "^chore(deps).*"
branch: "^dependabot/.*"
commits: "^chore(deps).*"
- label: "fix"
title: '^chore(deps).*'
branch: '^dependabot/.*'
commits: '^chore(deps).*'
- label: 'fix'
matcher:
title: "^fix:.*"
branch: "^fix/.*"
commits: "^fix:.*"
title: '^fix:.*'
branch: '^fix/.*'
commits: '^fix:.*'

- label: "chore"
- label: 'chore'
matcher:
title: "^chore(\\((deps|ci)\\))?:.*"
branch: "^chore/.*"
branch: '^chore/.*'
commits: "^chore(\\((deps|ci)\\))?:.*"

- label: "docs"
- label: 'docs'
matcher:
title: "^docs:.*"
branch: "^docs/.*"
commits: "^docs:.*"
title: '^docs:.*'
branch: '^docs/.*'
commits: '^docs:.*'

- label: "test:labeler"
- label: 'test:labeler'
sync: true
matcher:
files: ".github/labeler.yml"
files: '.github/labeler.yml'

- label: "test:dist"
- label: 'test:dist'
sync: true
matcher:
files: [ "dist/*" ]
files: ['dist/*']

- label: "test:tests"
- label: 'test:tests'
sync: true
matcher:
files: [ "__tests__/matcher/**", "__tests__/*.ts" ]
files: ['__tests__/matcher/**', '__tests__/*.ts']

- label: "test:body"
- label: 'test:body'
matcher:
body: "(\\n|.)*- \\[x\\] test(\\n|.)*"

- label: "test:comment"
- label: 'test:comment'
matcher:
comment: "# \\[Codecov\\] .*"

- label: "test:stale"
- label: 'test:stale'
matcher:
comment: "/stale"
comment: '/stale'

- label: "test: s"
- label: 'test: s'
sync: true
matcher:
files:
count:
gte: 1
lte: 4

- label: "test: m"
- label: 'test: m'
sync: true
matcher:
files:
count:
gte: 5
lte: 10

- label: "test: l"
- label: 'test: l'
sync: true
matcher:
files:
count:
gte: 11

- label: "Maintainer"
- label: 'Maintainer'
matcher:
author:
- fuxingloh

- label: "Owner"
- label: 'Owner'
matcher:
author: fuxingloh

- label: "branch: main"
- label: 'branch: main'
matcher:
baseBranch: main

- label: "branch: release"
- label: 'branch: release'
matcher:
baseBranch: "^release/.*"
baseBranch: '^release/.*'

checks:
- context: "Semantic Pull Request"
url: "https://github.com/fuxingloh/multi-labeler/blob/main/.github/labeler.yml"
- context: 'Semantic Pull Request'
url: 'https://github.com/fuxingloh/multi-labeler/blob/main/.github/labeler.yml'
description:
success: Ready for review & merge.
failure: Missing semantic label for merge.
Expand All @@ -109,9 +109,9 @@ checks:
- chore
- docs

- context: "Do Not Merge"
url: "https://github.com/fuxingloh/multi-labeler/blob/main/.github/labeler.yml"
- context: 'Do Not Merge'
url: 'https://github.com/fuxingloh/multi-labeler/blob/main/.github/labeler.yml'
description: "Disable merging when 'DO NOT MERGE' label is set"
labels:
none:
- "DO NOT MERGE"
- 'DO NOT MERGE'
6 changes: 1 addition & 5 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"helpers:pinGitHubActionDigests",
":semanticCommitTypeAll(bump)"
],
"extends": ["config:base", "helpers:pinGitHubActionDigests", ":semanticCommitTypeAll(bump)"],
"dependencyDashboard": true,
"dependencyDashboardAutoclose": false,
"major": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-use.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
pull_request:
types: [ opened, reopened, edited, synchronize, ready_for_review, labeled, unlabeled ]
types: [opened, reopened, edited, synchronize, ready_for_review, labeled, unlabeled]
issues:
issue_comment:

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@ name: CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
merge_group:
branches: [ main ]
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
packages: read

jobs:
package:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release Drafter

on:
push:
branches: [ main ]
branches: [main]

jobs:
draft-release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release Tags

on:
release:
types: [ released ]
types: [released]

jobs:
release-tags:
Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
dist/
lib/
node_modules/
node_modules/
__tests__/fixtures/invalid/malformed-escaping.yml
__tests__/fixtures/invalid/malformed-indent.yml
10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

Loading
Loading