Skip to content
Draft
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
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ updates:
- 'lint-staged'
- 'oxlint'
- 'oxfmt'
- 'vite-plus'
unist:
patterns:
- 'unified'
Expand Down
4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.{js,mjs,jsx}": ["oxlint --fix", "oxfmt"],
"*.{json,yml}": ["oxfmt"]
"*.{js,mjs,jsx}": ["vp lint --fix", "vp fmt"],
"*.{json,yml}": ["vp fmt"]
}
34 changes: 0 additions & 34 deletions .oxfmtrc.json

This file was deleted.

244 changes: 0 additions & 244 deletions .oxlintrc.json

This file was deleted.

12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"url": "git+https://github.com/nodejs/doc-kit.git"
},
"scripts": {
"lint": "oxlint .",
"lint:fix": "oxlint --fix .",
"format": "oxfmt .",
"format:check": "oxfmt --check .",
"lint": "vp lint .",
"lint:fix": "vp lint --fix .",
"format": "vp fmt .",
"format:check": "vp fmt --check .",
"test": "node --test --experimental-test-module-mocks \"packages/*/src/**/*.test.mjs\" \"scripts/**/*.test.mjs\"",
"test:coverage": "c8 node --test --experimental-test-module-mocks \"packages/*/src/**/*.test.mjs\" \"scripts/**/*.test.mjs\"",
"test:ci": "c8 --reporter=lcov node --test --experimental-test-module-mocks \"packages/*/src/**/*.test.mjs\" \"scripts/**/*.test.mjs\" --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=junit.xml --test-reporter=spec --test-reporter-destination=stdout",
Expand All @@ -36,13 +36,11 @@
"@types/node": "~24.10.1",
"@types/semver": "~7.8.0",
"c8": "~12.0.0",
"eslint-plugin-import-x": "4.17.1",
"eslint-plugin-jsdoc": "64.3.1",
"eslint-plugin-react-x": "5.18.6",
"husky": "9.1.7",
"json-schema-to-typescript": "^16.0.0",
"lint-staged": "17.4.1",
"oxfmt": "0.71.0",
"oxlint": "1.86.0"
"vite-plus": "1.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/core/src/generators/metadata/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Position } from 'unist';
import type { Root, Node, Data, Blockquote, Heading } from 'mdast';
import type { Position } from 'unist';

export type Generator = GeneratorMetadata<
{},
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/utils/configuration/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { SemVer } from 'semver';

import type { ReleaseEntry } from '#parsers/types';

export type Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion packages/node-legacy/src/legacy-html-all/index.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

import { generate } from './generate.mjs';
import legacyHtml from '../legacy-html/index.mjs';
import { generate } from './generate.mjs';

/**
* This generator generates the legacy HTML pages of the legacy API docs
Expand Down
2 changes: 1 addition & 1 deletion packages/node-legacy/src/legacy-json/generate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import getConfig from '@doc-kit/core/utils/configuration/index.mjs';
import { writeFile, withExt } from '@doc-kit/core/utils/file.mjs';
import { groupNodesByModule } from '@doc-kit/core/utils/generators.mjs';

import { createSectionBuilder } from './utils/buildSection.mjs';
import { legacyToJSON } from '../utils/legacyToJSON.mjs';
import { createSectionBuilder } from './utils/buildSection.mjs';

const buildSection = createSectionBuilder();

Expand Down
2 changes: 1 addition & 1 deletion packages/node-legacy/src/legacy-json/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ListItem } from '@types/mdast';
import { MetadataEntry } from '@doc-kit/core/generators/metadata/types';
import { MethodSignature } from '@doc-kit/core/utils/signature/types';
import { ListItem } from '@types/mdast';

/**
* Contains metadata related to changes, additions, removals, and deprecated statuses of an entry.
Expand Down
5 changes: 3 additions & 2 deletions packages/react/src/html/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { PageCode } from '../jsx-ast/types';
import type { GlobalConfiguration } from '@doc-kit/core/utils/configuration/types';
import type SideBar from '@node-core/ui-components/Containers/Sidebar';
import type NavBar from '@node-core/ui-components/Containers/NavBar';
import type SideBar from '@node-core/ui-components/Containers/Sidebar';
import type { ComponentProps } from 'preact';

import type { PageCode } from '../jsx-ast/types';

// An attribute bag rendered into an HTML tag. `true` becomes a valueless
// attribute (e.g. `crossorigin`); `false`/`null`/`undefined` are omitted.
export type TagAttributes = Record<
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/html/ui/components/Banner.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ArrowUpRightIcon } from '@heroicons/react/24/outline';
import Banner from '@node-core/ui-components/Common/Banner';

import { version } from '#theme/config';

import useBanners from '../hooks/useBanners.mjs';
import useRemoteConfig from '../hooks/useRemoteConfig.mjs';
import withIsland from '../islands/withIsland.jsx';

import { version } from '#theme/config';

const Banners = () => {
const remote = useRemoteConfig();
const [banner, dismissBanner] = useBanners(
Expand Down
Loading
Loading