This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /** | |
| * Generates Oxlint-ready recommended rule maps for supported plugins. | |
| * | |
| * Specification: | |
| * | |
| * - Treat the nearest ancestor `./node_modules/oxlint/configuration_schema.json` from the current working directory as the source of truth for supported plugins and implemented rules. | |
| * - Resolve each upstream plugin from the registry at the current latest tag inside an isolated temporary Node.js workspace via pnpm so the repository does not need to keep those packages installed. | |
| * - Read the upstream recommended config candidates, normalize rule namespaces into Oxlint's plugin naming, and normalize severities to `allow`, `warn`, or `deny` before writing `./oxlint-recommended/<plugin>.gen.ts` in the current working directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import globals from 'globals'; | |
| import { defineConfig } from 'oxlint'; | |
| export default defineConfig({ | |
| categories: { | |
| correctness: 'deny', | |
| nursery: 'warn', | |
| pedantic: 'allow', | |
| perf: 'warn', | |
| restriction: 'deny', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const stringifyErrorChain = (error: unknown, level = 0) => { | |
| let current: unknown = error; | |
| const lines: string[] = []; | |
| while (current instanceof Error) { | |
| const indent = ' '.repeat(level); | |
| lines.push(`${indent}${current.name}: ${current.message}`); | |
| current = current.cause; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :is(.no-transition, .no-transition *) { | |
| /* biome-ignore lint/complexity/noImportantStyles: because it is truly necessary */ | |
| transition: none !important; | |
| &::before, | |
| &::after { | |
| /* biome-ignore lint/complexity/noImportantStyles: because it is truly necessary */ | |
| transition: none !important; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const RETRYABLE_HTTP_STATUS_CODES = new Set([ | |
| 408, 425, 429, 500, 502, 503, 504, | |
| ]); | |
| /** | |
| * Determines whether an HTTP response status code indicates a transient error that can be retried. | |
| * | |
| * @returns A boolean indicating whether the status code indicates a transient error. | |
| */ | |
| export const isRetryableHttpStatusCode = (code: number): boolean => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ^(?<type>build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(?<scope>\([\w\-]+(?:[,\/\\] [\w\-]+)*\))?!?: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| // 参照: https://tama-san.com/resolve-kanji/ | |
| const table = { | |
| '⺃': '乚', | |
| '⺅': '亻', | |
| '⺇': '𠘨', | |
| '⺉': '刂', | |
| '⺋': '㔾', | |
| '⺍': '𭕄', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function () { const load = async () => { await new Promise((resolve, reject) => { const button = document.querySelector('.ajax-pagination-btn'); if (!button) { reject(); return; } button.click(); (function loop() { if (button.disabled) { setTimeout(loop, 200); } else { resolve(); } })(); }); }; document.scrollingElement.scrollIntoView(false); (function loop() { load().then(() => { loop(); }).catch(() => { for (const el of document.querySelectorAll('#dashboard .js-details-target')) el.ariaExpanded === 'false' && el.click(); }).finally(() => { document.scrollingElement.scrollIntoView(false); }); })(); })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript: (function () {const settingsButton = document.querySelector('[data-testid="room-header_room-settings-button"]',);const unreadRooms = document.querySelectorAll('#RoomList [role="listitem"]:has(._unreadBadge)',);let currentUnreadRoomIndex = 0;const handleHashChange = () => {settingsButton.click();Array.from(document.querySelector('[role="menu"]').children).find((item) => item.textContent.includes('メッセージをすべて既読にする')).click();if (currentUnreadRoomIndex < unreadRooms.length) {unreadRooms[currentUnreadRoomIndex].click();currentUnreadRoomIndex += 1;} else {window.removeEventListener('hashchange', handleHashChange);}};window.addEventListener('hashchange', handleHashChange);handleHashChange();})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stages: | |
| - main | |
| renovate: | |
| stage: main | |
| image: node:alpine | |
| variables: | |
| RENOVATE_PLATFORM: gitlab | |
| RENOVATE_ENDPOINT: https://gitlab.example.com/api/v4 | |
| RENOVATE_TOKEN: $RENOVATE_TOKEN |
NewerOlder