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
73 changes: 0 additions & 73 deletions .eslintrc.cjs

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20.x
node-version: 24.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn test:format
- run: yarn test:typings
- run: yarn sync
Expand All @@ -35,8 +35,8 @@ jobs:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
shell: bash
run: |
yarn netlify deploy --dir build --message '${{ github.event.commits[0].message }}' > log.tmp.txt 2>&1
cat log.tmp.txt | grep -E 'Website draft URL:' > log.txt
yarn netlify deploy --dir build --json --message '${{ github.event.commits[0].message }}' > log.tmp.txt 2>&1
cat log.tmp.txt | jq -r '"🚀 [Website draft URL](\(.deploy_url))\n📋 [Deployment logs](\(.logs))"' > log.txt
- name: Read deployment log
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref, 'refs/heads/renovate') }}
id: logs
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20.x
cache: yarn
- run: yarn install --frozen-lockfile
node-version: 24.x
- run: yarn install --immutable
- run: yarn test:format
- run: yarn test:typings
- run: yarn sync
Expand Down
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@
.env.development.local
.env.test.local
.env.production.local
.idea

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Local Netlify folder
.netlify
6 changes: 6 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLinters/eslint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/prettier.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

940 changes: 940 additions & 0 deletions .yarn/releases/yarn-4.13.0.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.13.0.cjs
4 changes: 3 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ const config = {
url: 'https://sequelize.org',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
organizationName: 'sequelize',
trailingSlash: true,
projectName: 'sequelize',
plugins: ['docusaurus-plugin-sass'],
markdown: {
hooks: {
onBrokenMarkdownLinks: 'warn',
},
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
Expand Down
84 changes: 84 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
import { basePreset, browserAddon, reactAddon } from '@ephys/eslint-config-typescript';
import * as mdx from 'eslint-plugin-mdx';

const __dirname = import.meta.dirname;

/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: [
// archives
'static/v1',
'static/v2',
'static/v3',
'static/v4',
'static/v5',
// auto-generated
'static/api',
'build',
'.sequelize',
'.docusaurus',
'**/_category_.json',

// We do not currently support JSX in JS files, and we can't use the .jsx or .tsx extensions in
// docusaurus theme files because of the way they are imported by docusaurus.
'src/theme/**/*.js',
],
},
...basePreset(__dirname),
...reactAddon,
...browserAddon,
mdx.configs.flat,
mdx.configs.flatCodeBlocks,
{
// https://github.com/facebook/docusaurus/issues/6520
files: ['*.cjs', 'docusaurus.config.js', 'sidebars.js'],
languageOptions: {
sourceType: 'commonjs',
},
rules: {
'unicorn/prefer-module': 'off',
'import/no-commonjs': 'off',
},
},
{
settings: {
'mdx/code-blocks': true,
},
},
{
files: ['**/*.mdx', '**/*.md'],
rules: {
// Produces broken results
'react/jsx-indent': 'off',
'react/jsx-tag-spacing': 'off',
'import/first': 'off',

// these rules require proper type-checking and cannot be enabled on code snippets inside markdown files
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/return-await': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/no-implied-eval': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
'@typescript-eslint/prefer-includes': 'off',
'@typescript-eslint/prefer-readonly': 'off',
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/require-array-sort-compare': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/consistent-type-exports': 'off',
'@typescript-eslint/prefer-return-this-type': 'off',
},
},
{
files: ['**/*.d.ts', 'src/pages/*', 'src/theme/**/*', '*.config.*'],
rules: {
// in .d.ts files, we don't really have a choice as it's dictated by the file that's being typed.
// For pages and theme files, docusaurus imposes the default export
'import/no-default-export': 'off',
},
},
];
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"write-translations": "docusaurus write-translations"
},
"dependencies": {
"@docusaurus/core": "3.6.1",
"@docusaurus/preset-classic": "3.6.1",
"@docusaurus/remark-plugin-npm2yarn": "^3.2.1",
"@docusaurus/theme-mermaid": "3.6.1",
"@docusaurus/core": "3.9.2",
"@docusaurus/preset-classic": "3.9.2",
"@docusaurus/remark-plugin-npm2yarn": "^3.9.2",
"@docusaurus/theme-mermaid": "3.9.2",
"@mdx-js/react": "3.1.1",
"@react-hookz/web": "24.0.4",
"@react-hookz/web": "25.2.0",
"@sequelize/utils": "7.0.0-alpha.48",
"clsx": "2.1.1",
"docusaurus-plugin-sass": "0.2.6",
Expand All @@ -40,21 +40,21 @@
"sass": "1.99.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.6.1",
"@docusaurus/tsconfig": "3.6.1",
"@ephys/eslint-config-typescript": "20.1.4",
"@docusaurus/module-type-aliases": "3.9.2",
"@docusaurus/tsconfig": "3.9.2",
"@ephys/eslint-config-typescript": "21.0.1",
"@rushstack/eslint-patch": "1.16.1",
"concurrently": "9.2.1",
"eslint": "8.57.1",
"eslint": "9.39.4",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-mdx": "1.17.1",
"eslint-plugin-mdx": "3.7.0",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "7.0.1",
"husky": "9.1.7",
"lint-staged": "16.4.0",
"netlify-cli": "20.1.1",
"prettier": "3.3.3",
"typescript": "5.8.3"
"netlify-cli": "24.9.0",
"prettier": "3.8.1",
"typescript": "6.0.2"
},
"browserslist": {
"production": [
Expand All @@ -72,5 +72,5 @@
"*.{js,mjs,cjs,ts,mts,cts}": "eslint --fix --report-unused-disable-directives",
"*": "prettier --write --ignore-unknown"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
"packageManager": "yarn@4.13.0"
}
File renamed without changes.
4 changes: 3 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"extends": [
"config:base",
"config:recommended",
":maintainLockFilesWeekly",
":semanticCommitTypeAll(meta)",
":semanticCommitScopeDisabled"
],
"automergeStrategy": "squash",
"automergeType": "branch",
"branchConcurrentLimit": 2,
"semanticCommitType": "meta",
"ignorePaths": ["static/"],
"platformAutomerge": true,
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest", "lockFileMaintenance"],
Expand Down
2 changes: 1 addition & 1 deletion src/components/dialect-table-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function DialectTableFilter(props: Props) {
}

const tableHeadRow = table.children[0].children[0];
const columnTitles: string[] = [...tableHeadRow.children].map(child => child.textContent ?? '');
const columnTitles: string[] = [...tableHeadRow.children].map(child => child.textContent);

for (const columnHead of tableHeadRow.children) {
const columnTitle = columnHead.textContent;
Expand Down
5 changes: 3 additions & 2 deletions src/components/homepage-features.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import Link from '@docusaurus/Link';
import CodeBlock from '@theme/CodeBlock';
import clsx from 'clsx';
import type { ReactElement } from 'react';
import React from 'react';
import { trim } from '../models/string';
import styles from './homepage-features.module.scss';

type FeatureItem = {
code: string;
description: JSX.Element;
description: ReactElement;
title: string;
};

Expand Down Expand Up @@ -82,7 +83,7 @@ function Feature({ title, description, code }: FeatureItem) {
);
}

export function HomepageFeatures(): JSX.Element {
export function HomepageFeatures(): ReactElement {
return (
<section className={styles.features}>
<div className="container">
Expand Down
3 changes: 2 additions & 1 deletion src/components/homepage-usage.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import Link from '@docusaurus/Link';
import CodeBlock from '@theme/CodeBlock';
import clsx from 'clsx';
import type { ReactElement } from 'react';
import React from 'react';
import { ArrowRight } from 'react-feather';
import { trim } from '../models/string';
import styles from './homepage-usage.module.scss';

export function HomepageUsage(): JSX.Element {
export function HomepageUsage(): ReactElement {
return (
<section className={styles.usage}>
<div className="container--small">
Expand Down
3 changes: 2 additions & 1 deletion src/components/homepage-users.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import clsx from 'clsx';
import type { ReactElement } from 'react';
import React, { useEffect, useState } from 'react';
import { Carousel } from 'react-responsive-carousel';
import styles from './homepage-users.module.scss';
Expand Down Expand Up @@ -59,7 +60,7 @@ const users: User[] = [
},
];

export function HomepageUsers(): JSX.Element {
export function HomepageUsers(): ReactElement {
const [activeUser, setActiveUser] = useState<User>(users[0]);
const [width, setWidth] = useState<number>(window.innerWidth);

Expand Down
Loading
Loading