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

+1
View File
@@ -1,4 +1,5 @@
import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
@Controller()
+1
View File
@@ -1,4 +1,5 @@
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
+2 -1
View File
@@ -1,5 +1,6 @@
import { config } from 'dotenv';
import * as path from 'path';
import { config } from 'dotenv';
import { DataSource } from 'typeorm';
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() {
return (
@@ -28,7 +28,8 @@ export function App() {
path="/"
element={
<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>
}
/>
+41 -9
View File
@@ -436,7 +436,10 @@ export function NxWelcome({ title }: { title: string }) {
</h1>
</div>
<div id="hero" className="rounded">
<div
id="hero"
className="rounded"
>
<div className="text-container">
<h2>
<svg
@@ -457,7 +460,12 @@ export function NxWelcome({ title }: { title: string }) {
<a href="#commands"> What&apos;s next? </a>
</div>
<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" />
</svg>
</div>
@@ -465,7 +473,10 @@ export function NxWelcome({ title }: { title: string }) {
<div id="middle-content">
<div id="middle-content-container">
<div id="learning-materials" className="rounded shadow">
<div
id="learning-materials"
className="rounded shadow"
>
<h2>Learning materials</h2>
<a
href="https://nx.dev/getting-started/intro?utm_source=nx-project"
@@ -662,7 +673,12 @@ export function NxWelcome({ title }: { title: string }) {
target="_blank"
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" />
<g fill="#fff">
<path d="m29.03 71.25h22.5v3.75h-22.5z" />
@@ -679,10 +695,15 @@ export function NxWelcome({ title }: { title: string }) {
</svg>
<span>
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>
</a>
<div id="nx-cloud" className="rounded shadow">
<div
id="nx-cloud"
className="rounded shadow"
>
<div>
<svg
id="nx-cloud-logo"
@@ -706,7 +727,10 @@ export function NxWelcome({ title }: { title: string }) {
<span>Enable faster CI & better DX</span>
</h2>
</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>
<a
href="https://nx.dev/nx-cloud?utm_source=nx-project"
@@ -720,7 +744,10 @@ export function NxWelcome({ title }: { title: string }) {
</div>
</div>
<div id="commands" className="rounded shadow">
<div
id="commands"
className="rounded shadow"
>
<h2>Next steps</h2>
<p>Here are some things you can do with Nx:</p>
<details>
@@ -818,7 +845,12 @@ export function NxWelcome({ title }: { title: string }) {
<p id="love">
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
strokeLinecap="round"
strokeLinejoin="round"
+3 -1
View File
@@ -1,6 +1,8 @@
import { StrictMode } from 'react';
import { BrowserRouter } from 'react-router-dom';
import * as ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import App from './app/app';
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
+32 -8
View File
@@ -16,33 +16,57 @@ export function HealthPage() {
}, []);
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">
<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
</h1>
<div
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">
<span className="text-sm font-medium" style={{ color: 'var(--text-secondary)' }}>
<span
className="text-sm font-medium"
style={{ color: 'var(--text-secondary)' }}
>
Web version
</span>
<span className="text-sm font-mono" style={{ color: 'var(--text-primary)' }}>
<span
className="text-sm font-mono"
style={{ color: 'var(--text-primary)' }}
>
{webVersion}
</span>
</div>
<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
</span>
{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
</span>
) : (
<span className="text-sm font-mono" style={{ color: 'var(--text-primary)' }}>
<span
className="text-sm font-mono"
style={{ color: 'var(--text-primary)' }}
>
{apiVersion ?? '...'}
</span>
)}
+1
View File
@@ -1,4 +1,5 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
/* You can add global styles to this file, and also import other style files */