chore: nits and bits #2
28
.commitlintrc.yaml
Normal file
28
.commitlintrc.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
# The rules below have been manually copied from @commitlint/config-conventional
|
||||||
|
# and match the v1.0.0 specification:
|
||||||
|
# https://www.conventionalcommits.org/en/v1.0.0/#specification
|
||||||
|
#
|
||||||
|
# You can remove them and uncomment the config below when the following issue is
|
||||||
|
# fixed: https://github.com/conventional-changelog/commitlint/issues/613
|
||||||
|
#
|
||||||
|
# extends:
|
||||||
|
# - '@commitlint/config-conventional'
|
||||||
|
rules:
|
||||||
|
body-leading-blank: [1, always]
|
||||||
|
body-max-line-length: [2, always, 100]
|
||||||
|
footer-leading-blank: [1, always]
|
||||||
|
footer-max-line-length: [2, always, 100]
|
||||||
|
header-max-length: [2, always, 100]
|
||||||
|
subject-case:
|
||||||
|
- 2
|
||||||
|
- never
|
||||||
|
- [sentence-case, start-case, pascal-case, upper-case]
|
||||||
|
subject-empty: [2, never]
|
||||||
|
subject-full-stop: [2, never, "."]
|
||||||
|
type-case: [2, always, lower-case]
|
||||||
|
type-empty: [2, never]
|
||||||
|
type-enum:
|
||||||
|
- 2
|
||||||
|
- always
|
||||||
|
- [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]
|
||||||
2
.git-blame-ignore-revs
Normal file
2
.git-blame-ignore-revs
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# refactor: sort imports
|
||||||
|
ecca1e269af9ac715324a2bb5e5b8f2661a7642e
|
||||||
20
.github/workflows/lint-pr.yaml
vendored
Normal file
20
.github/workflows/lint-pr.yaml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Lint PR
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: ["main"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
commitlint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- run: >-
|
||||||
|
npx
|
||||||
|
commitlint
|
||||||
|
--from ${{ gitea.event.pull_request.base.sha }}
|
||||||
|
--to ${{ gitea.event.pull_request.head.sha }}
|
||||||
|
--verbose
|
||||||
@ -1,7 +1,7 @@
|
|||||||
import js from '@eslint/js'
|
import js from '@eslint/js'
|
||||||
import globals from 'globals'
|
|
||||||
import reactHooks from 'eslint-plugin-react-hooks'
|
import reactHooks from 'eslint-plugin-react-hooks'
|
||||||
import reactRefresh from 'eslint-plugin-react-refresh'
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
||||||
|
import globals from 'globals'
|
||||||
import tseslint from 'typescript-eslint'
|
import tseslint from 'typescript-eslint'
|
||||||
|
|
||||||
export default tseslint.config(
|
export default tseslint.config(
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||||
import { StrictMode } from "react";
|
import { StrictMode } from "react";
|
||||||
import { createRoot } from "react-dom/client";
|
import { createRoot } from "react-dom/client";
|
||||||
import { RouterProvider } from "react-router";
|
import { RouterProvider } from "react-router";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import { router } from "./routes.ts";
|
import { router } from "./routes.ts";
|
||||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
||||||
|
|
||||||
const queryClient = new QueryClient();
|
const queryClient = new QueryClient();
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import "./root.css";
|
|
||||||
import { NavLink, Outlet } from "react-router";
|
import { NavLink, Outlet } from "react-router";
|
||||||
|
import "./root.css";
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import { keepPreviousData, useQuery } from "@tanstack/react-query";
|
import { keepPreviousData, useQuery } from "@tanstack/react-query";
|
||||||
import {
|
import {
|
||||||
PaginationState,
|
|
||||||
ColumnFiltersState,
|
ColumnFiltersState,
|
||||||
createColumnHelper,
|
createColumnHelper,
|
||||||
flexRender,
|
flexRender,
|
||||||
getCoreRowModel,
|
getCoreRowModel,
|
||||||
|
PaginationState,
|
||||||
useReactTable,
|
useReactTable,
|
||||||
} from "@tanstack/react-table";
|
} from "@tanstack/react-table";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { defineConfig } from 'vite'
|
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
|
import { defineConfig } from 'vite'
|
||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user