Skip to content

Commit 1c76c73

Browse files
authored
chore: update yaml lint config (#308)
* extend yaml linter config, fix errors * alphabetize rules * refactor, address review comments
1 parent ffbea3d commit 1c76c73

File tree

16 files changed

+23
-21
lines changed

16 files changed

+23
-21
lines changed

.eslintrc.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ module.exports = {
6060
{
6161
files: ["**/*.{yml,yaml}"],
6262
parser: "yaml-eslint-parser",
63-
extends: ["plugin:yml/base", "plugin:yml/prettier"],
63+
extends: ["plugin:yml/standard", "plugin:yml/prettier"],
6464
rules: {
65+
"yml/file-extension": ["error", { extension: "yml" }],
6566
"yml/sort-keys": [
6667
"error",
6768
{

.github/ISSUE_TEMPLATE/01-bug.yaml renamed to .github/ISSUE_TEMPLATE/01-bug.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ body:
2626
description: Any additional info you'd like to provide.
2727
label: Additional Info
2828
type: textarea
29-
description: "Report a bug trying to run the code."
29+
description: Report a bug trying to run the code
3030
labels:
3131
- "type: bug"
32-
name: "🐛 Report a Bug"
32+
name: 🐛 Report a Bug
3333
title: "🐛 Bug: <short description of the bug>"

.github/ISSUE_TEMPLATE/02-documentation.yaml renamed to .github/ISSUE_TEMPLATE/02-documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ body:
1818
description: Any additional info you'd like to provide.
1919
label: Additional Info
2020
type: textarea
21-
description: "Report a typo or missing area of documentation"
21+
description: Report a typo or missing area of documentation
2222
labels:
2323
- "area: documentation"
24-
name: "📝 Documentation"
24+
name: 📝 Documentation
2525
title: "📝 Documentation: <short description of the request>"

.github/ISSUE_TEMPLATE/03-feature.yaml renamed to .github/ISSUE_TEMPLATE/03-feature.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ body:
2020
description: Any additional info you'd like to provide.
2121
label: Additional Info
2222
type: textarea
23-
description: "Request that a new feature be added or an existing feature improved"
23+
description: Request that a new feature be added or an existing feature improved
2424
labels:
2525
- "type: feature"
26-
name: "🚀 Request a Feature"
26+
name: 🚀 Request a Feature
2727
title: "🚀 Feature: <short description of the feature>"

.github/ISSUE_TEMPLATE/04-tooling.yaml renamed to .github/ISSUE_TEMPLATE/04-tooling.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ body:
2020
description: Any additional info you'd like to provide.
2121
label: Additional Info
2222
type: textarea
23-
description: "Report a bug or request an enhancement in repository tooling"
23+
description: Report a bug or request an enhancement in repository tooling
2424
labels:
2525
- "area: tooling"
26-
name: "🛠 Tooling"
26+
name: 🛠 Tooling
2727
title: "🛠 Tooling: <short description of the change>"

.github/actions/prepare/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ runs:
66
- uses: pnpm/action-setup@v2
77
- uses: actions/setup-node@v3
88
with:
9-
cache: "pnpm"
9+
cache: pnpm
1010
node-version: "18"
1111
- run: pnpm install --frozen-lockfile
1212
shell: bash
13-
using: "composite"
13+
using: composite

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Build
1010

1111
on:
12-
pull_request:
12+
pull_request: ~
1313

1414
push:
1515
branches:

.github/workflows/knip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Lint Knip
1010

1111
on:
12-
pull_request:
12+
pull_request: ~
1313

1414
push:
1515
branches:

.github/workflows/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
name: Lint
1010

1111
on:
12-
pull_request:
12+
pull_request: ~
13+
1314
push:
1415
branches:
1516
- main

.github/workflows/markdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Lint Markdown
1010

1111
on:
12-
pull_request:
12+
pull_request: ~
1313

1414
push:
1515
branches:

0 commit comments

Comments
 (0)