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
22 changes: 15 additions & 7 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ inputs:
node-version:
description: The version of node.js
required: false
default: '20'
default: '24'

runs:
using: composite
steps:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: false
uses: pnpm/action-setup@v4

- name: Setup node
uses: actions/setup-node@v4
Expand All @@ -22,10 +20,20 @@ runs:
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- name: Setup ni
run: npm i -g @antfu/ni
- name: Check npm version
Copy link
Owner Author

@ocavue ocavue Jul 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this once new Node.js is released

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this once new Node.js is released

shell: bash
run: npm --version

- name: Update npm
shell: bash
run: npm install -g npm@latest

# NPM v11.5.0 added support for OIDC publish
# https://docs.npmjs.com/cli/v11/using-npm/changelog#1150-2025-07-24
- name: Check npm version
shell: bash
run: npm --version

- name: Install
run: ni
run: pnpm install
shell: bash
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
runs-on: ubuntu-latest
needs: [version]
if: ${{ needs.version.outputs.release_created }}
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

Expand All @@ -30,5 +32,3 @@ jobs:

- name: Publish to NPM
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @ocavue/eslint-config

[![npm](https://img.shields.io/npm/v/@ocavue/eslint-config)](https://www.npmjs.com/package/@ocavue/eslint-config)

A set of ESLint shareable configs for TypeScript projects.

- Out of the box support for TypeScript, React, and Markdown
Expand Down
2 changes: 1 addition & 1 deletion src/react.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Linter } from 'eslint'
import reactPlugin from 'eslint-plugin-react'
import reactCompiler from "eslint-plugin-react-compiler"
import reactCompiler from 'eslint-plugin-react-compiler'
import reactHooksPlugin from 'eslint-plugin-react-hooks'

import { resolveReactOptions, type ReactOptions } from './options.js'
Expand Down