Skip to content
Merged
10 changes: 10 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ jobs:
tag: ${{ env.NPM_TAG }}
token: ${{ secrets.NPM_TOKEN }}

- name: Build eslint-plugin-ui
run: npm run build -w @studiometa/eslint-plugin-ui

- uses: JS-DevTools/npm-publish@v3
with:
provenance: true
package: packages/eslint-plugin-ui/
tag: ${{ env.NPM_TAG }}
token: ${{ secrets.NPM_TOKEN }}

- uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref }}
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,43 @@ jobs:
fail_ci_if_error: false
verbose: true

unit_eslint_plugin:
runs-on: macos-latest
env:
NODE_VERSION: 24
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: 'npm'
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v4
id: npm-cache
with:
path: |
${{ steps.npm-cache-dir.outputs.dir }}
**/node_modules
.eslintcache
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Install modules
run: npm install --no-audit --no-fund
- name: Run tests
run: npm run test -w @studiometa/eslint-plugin-ui -- --coverage.enabled
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: NODE_VERSION
directory: ./packages/eslint-plugin-ui/coverage
flags: unittests
fail_ci_if_error: false
verbose: true

unit_pest:
runs-on: ubuntu-latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["vitest", "import", "promise", "regex", "jsdoc"],
"plugins": ["vitest", "import", "promise", "jsdoc"],
"rules": {
"func-style": ["warn", "declaration"],
"no-floating-promises": "allow",
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Added

- **ESLintPluginUi:** add a new `@studiometa/eslint-plugin-ui` package with ESLint/Oxlint rules to help developers discover and use components from `@studiometa/ui` ([#503](https://github.com/studiometa/ui/pull/503))

### Fixed

- **Config:** fix deprecated `moduleResolution: node` value in root `tsconfig.json` ([#503](https://github.com/studiometa/ui/pull/503))

## [v1.8.0](https://github.com/studiometa/ui/compare/1.7.0..1.8.0) (2026-03-25)

### Added
Expand Down
Loading
Loading