style: привести импорты и формат к правилам линтера

Порядок импортов в app.module, app.controller, typeorm.config и web-файлах,
пустая строка перед комментарием в styles.css, prettier в
.github/workflows/ci.yml. Каталог .agents исключён из prettier: это
сгенерированные файлы Nx, они перезаписываются инструментом.
This commit is contained in:
arswarog committed 2026-10-27 10:44:06 +03:00
1 parent 8014a968b7
commit 157d79932a
10 files changed
+115 -51

No files matched your search

+29 -29
View File
@@ -1,40 +1,40 @@
name: CI name: CI
on: on:
push: push:
branches: branches:
- main - main
pull_request: pull_request:
permissions: permissions:
actions: read actions: read
contents: read contents: read
jobs: jobs:
main: main:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
with: with:
filter: tree:0 filter: tree:0
fetch-depth: 0 fetch-depth: 0
# This enables task distribution via Nx Cloud # This enables task distribution via Nx Cloud
# Run this command as early as possible, before dependencies are installed # Run this command as early as possible, before dependencies are installed
# Learn more at https://nx.dev/docs/reference/nx-cloud-cli#npx-nxcloud-startcirun # Learn more at https://nx.dev/docs/reference/nx-cloud-cli#npx-nxcloud-startcirun
- run: npx nx start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="e2e" - run: npx nx start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="e2e"
# Cache node_modules # Cache node_modules
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version: 24 node-version: 24
cache: 'npm' cache: 'npm'
- run: npm ci - run: npm ci
# Prepend any command with "nx record --" to record its logs to Nx Cloud # Prepend any command with "nx record --" to record its logs to Nx Cloud
- run: npx nx record -- npx nx format:check --base="remotes/origin/main" - run: npx nx record -- npx nx format:check --base="remotes/origin/main"
- run: npx nx run-many -t lint test build typecheck e2e - run: npx nx run-many -t lint test build typecheck e2e
# Nx Cloud recommends fixes for failures to help you get CI green faster. Learn more: https://nx.dev/docs/features/ci-features/self-healing-ci # Nx Cloud recommends fixes for failures to help you get CI green faster. Learn more: https://nx.dev/docs/features/ci-features/self-healing-ci
- run: npx nx fix-ci - run: npx nx fix-ci
if: always() if: always()
+1
View File
@@ -5,3 +5,4 @@
/.nx/workspace-data /.nx/workspace-data
.nx/self-healing .nx/self-healing
/.claude /.claude
/.agents
+1
View File
@@ -1,4 +1,5 @@
import { Controller, Get } from '@nestjs/common'; import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service'; import { AppService } from './app.service';
@Controller() @Controller()
+1
View File
@@ -1,4 +1,5 @@
import { Module } from '@nestjs/common'; import { Module } from '@nestjs/common';
import { AppController } from './app.controller'; import { AppController } from './app.controller';
import { AppService } from './app.service'; import { AppService } from './app.service';
+2 -1
View File
@@ -1,5 +1,6 @@
import { config } from 'dotenv';
import * as path from 'path'; import * as path from 'path';
import { config } from 'dotenv';
import { DataSource } from 'typeorm'; import { DataSource } from 'typeorm';
import { migrations } from '../database/migrations'; import { migrations } from '../database/migrations';
+4 -3
View File
@@ -1,6 +1,6 @@
import NxWelcome from './nx-welcome'; import { Link, Route, Routes } from 'react-router-dom';
import { Route, Routes, Link } from 'react-router-dom'; import NxWelcome from './nx-welcome';
export function App() { export function App() {
return ( return (
@@ -28,7 +28,8 @@ export function App() {
path="/" path="/"
element={ element={
<div> <div>
This is the generated root route. <Link to="/page-2">Click here for page 2.</Link> This is the generated root route.{' '}
<Link to="/page-2">Click here for page 2.</Link>
</div> </div>
} }
/> />
+41 -9
View File
@@ -436,7 +436,10 @@ export function NxWelcome({ title }: { title: string }) {
</h1> </h1>
</div> </div>
<div id="hero" className="rounded"> <div
id="hero"
className="rounded"
>
<div className="text-container"> <div className="text-container">
<h2> <h2>
<svg <svg
@@ -457,7 +460,12 @@ export function NxWelcome({ title }: { title: string }) {
<a href="#commands"> What&apos;s next? </a> <a href="#commands"> What&apos;s next? </a>
</div> </div>
<div className="logo-container"> <div className="logo-container">
<svg fill="currentColor" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <svg
fill="currentColor"
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M11.987 14.138l-3.132 4.923-5.193-8.427-.012 8.822H0V4.544h3.691l5.247 8.833.005-3.998 3.044 4.759zm.601-5.761c.024-.048 0-3.784.008-3.833h-3.65c.002.059-.005 3.776-.003 3.833h3.645zm5.634 4.134a2.061 2.061 0 0 0-1.969 1.336 1.963 1.963 0 0 1 2.343-.739c.396.161.917.422 1.33.283a2.1 2.1 0 0 0-1.704-.88zm3.39 1.061c-.375-.13-.8-.277-1.109-.681-.06-.08-.116-.17-.176-.265a2.143 2.143 0 0 0-.533-.642c-.294-.216-.68-.322-1.18-.322a2.482 2.482 0 0 0-2.294 1.536 2.325 2.325 0 0 1 4.002.388.75.75 0 0 0 .836.334c.493-.105.46.36 1.203.518v-.133c-.003-.446-.246-.55-.75-.733zm2.024 1.266a.723.723 0 0 0 .347-.638c-.01-2.957-2.41-5.487-5.37-5.487a5.364 5.364 0 0 0-4.487 2.418c-.01-.026-1.522-2.39-1.538-2.418H8.943l3.463 5.423-3.379 5.32h3.54l1.54-2.366 1.568 2.366h3.541l-3.21-5.052a.7.7 0 0 1-.084-.32 2.69 2.69 0 0 1 2.69-2.691h.001c1.488 0 1.736.89 2.057 1.308.634.826 1.9.464 1.9 1.541a.707.707 0 0 0 1.066.596zm.35.133c-.173.372-.56.338-.755.639-.176.271.114.412.114.412s.337.156.538-.311c.104-.231.14-.488.103-.74z" /> <path d="M11.987 14.138l-3.132 4.923-5.193-8.427-.012 8.822H0V4.544h3.691l5.247 8.833.005-3.998 3.044 4.759zm.601-5.761c.024-.048 0-3.784.008-3.833h-3.65c.002.059-.005 3.776-.003 3.833h3.645zm5.634 4.134a2.061 2.061 0 0 0-1.969 1.336 1.963 1.963 0 0 1 2.343-.739c.396.161.917.422 1.33.283a2.1 2.1 0 0 0-1.704-.88zm3.39 1.061c-.375-.13-.8-.277-1.109-.681-.06-.08-.116-.17-.176-.265a2.143 2.143 0 0 0-.533-.642c-.294-.216-.68-.322-1.18-.322a2.482 2.482 0 0 0-2.294 1.536 2.325 2.325 0 0 1 4.002.388.75.75 0 0 0 .836.334c.493-.105.46.36 1.203.518v-.133c-.003-.446-.246-.55-.75-.733zm2.024 1.266a.723.723 0 0 0 .347-.638c-.01-2.957-2.41-5.487-5.37-5.487a5.364 5.364 0 0 0-4.487 2.418c-.01-.026-1.522-2.39-1.538-2.418H8.943l3.463 5.423-3.379 5.32h3.54l1.54-2.366 1.568 2.366h3.541l-3.21-5.052a.7.7 0 0 1-.084-.32 2.69 2.69 0 0 1 2.69-2.691h.001c1.488 0 1.736.89 2.057 1.308.634.826 1.9.464 1.9 1.541a.707.707 0 0 0 1.066.596zm.35.133c-.173.372-.56.338-.755.639-.176.271.114.412.114.412s.337.156.538-.311c.104-.231.14-.488.103-.74z" />
</svg> </svg>
</div> </div>
@@ -465,7 +473,10 @@ export function NxWelcome({ title }: { title: string }) {
<div id="middle-content"> <div id="middle-content">
<div id="middle-content-container"> <div id="middle-content-container">
<div id="learning-materials" className="rounded shadow"> <div
id="learning-materials"
className="rounded shadow"
>
<h2>Learning materials</h2> <h2>Learning materials</h2>
<a <a
href="https://nx.dev/getting-started/intro?utm_source=nx-project" href="https://nx.dev/getting-started/intro?utm_source=nx-project"
@@ -662,7 +673,12 @@ export function NxWelcome({ title }: { title: string }) {
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
> >
<svg height="48" width="48" viewBox="20 20 60 60" xmlns="http://www.w3.org/2000/svg"> <svg
height="48"
width="48"
viewBox="20 20 60 60"
xmlns="http://www.w3.org/2000/svg"
>
<path d="m22.5 22.5h60v60h-60z" /> <path d="m22.5 22.5h60v60h-60z" />
<g fill="#fff"> <g fill="#fff">
<path d="m29.03 71.25h22.5v3.75h-22.5z" /> <path d="m29.03 71.25h22.5v3.75h-22.5z" />
@@ -679,10 +695,15 @@ export function NxWelcome({ title }: { title: string }) {
</svg> </svg>
<span> <span>
Install Nx Console for JetBrains Install Nx Console for JetBrains
<span>Available for WebStorm, Intellij IDEA Ultimate and more!</span> <span>
Available for WebStorm, Intellij IDEA Ultimate and more!
</span>
</span> </span>
</a> </a>
<div id="nx-cloud" className="rounded shadow"> <div
id="nx-cloud"
className="rounded shadow"
>
<div> <div>
<svg <svg
id="nx-cloud-logo" id="nx-cloud-logo"
@@ -706,7 +727,10 @@ export function NxWelcome({ title }: { title: string }) {
<span>Enable faster CI & better DX</span> <span>Enable faster CI & better DX</span>
</h2> </h2>
</div> </div>
<p>You can activate distributed tasks executions and caching by running:</p> <p>
You can activate distributed tasks executions and caching by
running:
</p>
<pre>nx connect</pre> <pre>nx connect</pre>
<a <a
href="https://nx.dev/nx-cloud?utm_source=nx-project" href="https://nx.dev/nx-cloud?utm_source=nx-project"
@@ -720,7 +744,10 @@ export function NxWelcome({ title }: { title: string }) {
</div> </div>
</div> </div>
<div id="commands" className="rounded shadow"> <div
id="commands"
className="rounded shadow"
>
<h2>Next steps</h2> <h2>Next steps</h2>
<p>Here are some things you can do with Nx:</p> <p>Here are some things you can do with Nx:</p>
<details> <details>
@@ -818,7 +845,12 @@ export function NxWelcome({ title }: { title: string }) {
<p id="love"> <p id="love">
Carefully crafted with Carefully crafted with
<svg fill="currentColor" stroke="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <svg
fill="currentColor"
stroke="none"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path <path
strokeLinecap="round" strokeLinecap="round"
strokeLinejoin="round" strokeLinejoin="round"
+3 -1
View File
@@ -1,6 +1,8 @@
import { StrictMode } from 'react'; import { StrictMode } from 'react';
import { BrowserRouter } from 'react-router-dom';
import * as ReactDOM from 'react-dom/client'; import * as ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import App from './app/app'; import App from './app/app';
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement); const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
+32 -8
View File
@@ -16,33 +16,57 @@ export function HealthPage() {
}, []); }, []);
return ( return (
<div className="min-h-screen" style={{ backgroundColor: 'var(--bg-primary)' }}> <div
className="min-h-screen"
style={{ backgroundColor: 'var(--bg-primary)' }}
>
<div className="max-w-lg mx-auto px-4 py-16"> <div className="max-w-lg mx-auto px-4 py-16">
<h1 className="text-2xl font-bold mb-8" style={{ color: 'var(--text-primary)' }}> <h1
className="text-2xl font-bold mb-8"
style={{ color: 'var(--text-primary)' }}
>
Health Health
</h1> </h1>
<div <div
className="rounded-lg border p-6 space-y-4" className="rounded-lg border p-6 space-y-4"
style={{ backgroundColor: 'var(--bg-secondary)', borderColor: 'var(--border-color)' }} style={{
backgroundColor: 'var(--bg-secondary)',
borderColor: 'var(--border-color)',
}}
> >
<div className="flex justify-between items-center"> <div className="flex justify-between items-center">
<span className="text-sm font-medium" style={{ color: 'var(--text-secondary)' }}> <span
className="text-sm font-medium"
style={{ color: 'var(--text-secondary)' }}
>
Web version Web version
</span> </span>
<span className="text-sm font-mono" style={{ color: 'var(--text-primary)' }}> <span
className="text-sm font-mono"
style={{ color: 'var(--text-primary)' }}
>
{webVersion} {webVersion}
</span> </span>
</div> </div>
<div className="flex justify-between items-center"> <div className="flex justify-between items-center">
<span className="text-sm font-medium" style={{ color: 'var(--text-secondary)' }}> <span
className="text-sm font-medium"
style={{ color: 'var(--text-secondary)' }}
>
API version API version
</span> </span>
{apiError ? ( {apiError ? (
<span className="text-sm font-mono" style={{ color: 'var(--color-error, #ef4444)' }}> <span
className="text-sm font-mono"
style={{ color: 'var(--color-error, #ef4444)' }}
>
down down
</span> </span>
) : ( ) : (
<span className="text-sm font-mono" style={{ color: 'var(--text-primary)' }}> <span
className="text-sm font-mono"
style={{ color: 'var(--text-primary)' }}
>
{apiVersion ?? '...'} {apiVersion ?? '...'}
</span> </span>
)} )}
+1
View File
@@ -1,4 +1,5 @@
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
/* You can add global styles to this file, and also import other style files */ /* You can add global styles to this file, and also import other style files */