Skip to content
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🐛 Bug Report
description: Create a report to help us improve Stencil ESLint
title: 'bug: '
title: "bug: "
body:
- type: checkboxes
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 💡 Feature Request
description: Suggest an idea for Stencil ESLint
title: 'feat: '
title: "feat: "
body:
- type: checkboxes
attributes:
Expand Down
66 changes: 33 additions & 33 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
versioning-strategy: increase-if-necessary
groups:
patch-deps-updates-main:
update-types:
- "patch"
minor-deps-updates-main:
update-types:
- "minor"
major-deps-updates-main:
update-types:
- "major"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
groups:
patch-deps-updates:
update-types:
- "patch"
minor-deps-updates:
update-types:
- "minor"
major-deps-updates:
update-types:
- "major"
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
versioning-strategy: increase-if-necessary
groups:
patch-deps-updates-main:
update-types:
- "patch"
minor-deps-updates-main:
update-types:
- "minor"
major-deps-updates-main:
update-types:
- "major"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
groups:
patch-deps-updates:
update-types:
- "patch"
minor-deps-updates:
update-types:
- "minor"
major-deps-updates:
update-types:
- "major"
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,23 @@ jobs:
- name: 📥 Checkout Code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: 🟢 Setup pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9

- name: 🟢 Setup Node 22
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: "npm"
cache: "pnpm"

- name: 📦 Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile
shell: bash

- name: 🏗️ Build
run: npm run build
run: pnpm run build
shell: bash

- name: 🧪 Test
run: npm test
run: pnpm test
shell: bash

61 changes: 44 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,64 @@ name: Build & Test
on:
push:
branches:
- 'main'
- "main"
pull_request:
branches:
- '**'
- "**"

jobs:
quality:
name: 🔍 Lint & Format
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout Code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: 🟢 Setup pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9

- name: 🟢 Setup Node 22
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: "pnpm"

- name: 📦 Install Dependencies
run: pnpm install --frozen-lockfile

- name: 🔎 Lint
run: pnpm run lint

- name: 🎨 Format
run: pnpm run format:check

build_and_test:
strategy:
matrix:
node: [20, 22, 24]
os: ['ubuntu-latest', 'windows-latest']
node: [22, 24]
os: ["ubuntu-latest", "windows-latest"]

name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

steps:
- name: 📥 Checkout Code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: 📥 Checkout Code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: 🟢 Setup Node ${{ matrix.node }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: 🟢 Setup pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9

- name: 📦 Install Dependencies
run: npm ci
- name: 🟢 Setup Node ${{ matrix.node }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node }}
cache: "pnpm"

- name: 🏗️ Build
run: npm run build
- name: 📦 Install Dependencies
run: pnpm install --frozen-lockfile

- name: 🧪 Test Jest
run: npm run test
- name: 🏗️ Build
run: pnpm run build

- name: 🧪 Test
run: pnpm run test
10 changes: 6 additions & 4 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
description: "Node.js version used for publishing."
required: false
type: string
default: "20"
default: "22"
registry-url:
description: "npm registry URL."
required: false
Expand All @@ -35,7 +35,7 @@ on:
description: "Command used to install dependencies. Leave blank to skip."
required: false
type: string
default: "npm ci"
default: "pnpm install --frozen-lockfile"
install-working-directory:
description: "Working directory for the install command."
required: false
Expand All @@ -45,7 +45,7 @@ on:
description: "Command used to build the package. Leave blank to skip."
required: false
type: string
default: "npm run build"
default: "pnpm run build"
build-working-directory:
description: "Working directory for the build command."
required: false
Expand All @@ -63,6 +63,9 @@ jobs:
- name: 📥 Checkout Code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: 🟢 Setup pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9

- name: 🟢 Configure Node for Publish
if: ${{ inputs.scope == '' }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
Expand Down Expand Up @@ -103,4 +106,3 @@ jobs:
run: npm publish --tag ${{ inputs.tag }} --provenance
shell: bash
working-directory: ${{ inputs.package-directory }}

1 change: 0 additions & 1 deletion .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ jobs:
with:
tag: dev
version: ${{ needs.get_dev_version.outputs.dev-version }}

1 change: 0 additions & 1 deletion .github/workflows/release-orchestrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ jobs:
secrets: inherit
with:
bump: ${{ inputs.bump }}

1 change: 0 additions & 1 deletion .github/workflows/release-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@ jobs:
with:
tag: latest
version: ${{ inputs.bump }}

3 changes: 3 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignorePatterns": ["tests/rules/*/*", "!tests/rules/*/*.test.ts"]
}
12 changes: 12 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc"],
"categories": {
"correctness": "error"
},
"rules": {},
"env": {
"builtin": true
},
"ignorePatterns": ["tests/rules/*/*", "!tests/rules/*/*.test.ts"]
}
Loading