-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add husky, setup eslint, prettier #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
d34989c
style: format code with prettier and eslint
Pikaz0r922 911578e
style: format code with prettier and eslint
Pikaz0r922 877205c
style: format code with prettier and eslint
Pikaz0r922 ddd1df4
style: format code with prettier and eslint
Pikaz0r922 1b94631
style: format code with prettier and eslint
Pikaz0r922 f9e9bba
style: format code with prettier and eslint
Pikaz0r922 90c7d19
feat: setup eslint, prettier, husky and lint-staged
Pikaz0r922 ce173a6
style: fix formatting
Pikaz0r922 5bb9d09
fix: changed scripts
Pikaz0r922 cf8666b
feat: add scripts check
Pikaz0r922 1014af9
fix: delete removed unnecessary rules
Pikaz0r922 30a3047
fix: changed scripts
Pikaz0r922 2cbe5f3
feat: add script
Pikaz0r922 d504829
fix: format package.json
Pikaz0r922 0c78085
feat: add ignore files
Pikaz0r922 fc7552f
fix: fix lint-staged
Pikaz0r922 47cdea9
fix: remove rules
Pikaz0r922 94a783f
fix: resolve merge conflicts with dev
Pikaz0r922 e07d469
fix: fix file
Pikaz0r922 3c970f3
fix: resolved package.json conflicts
Pikaz0r922 e62af2d
chore: remove github actions workflows
Pikaz0r922 832fad7
Merge branch 'dev' into feat-BAC-3
kapitulin24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| pnpm exec lint-staged | ||
| pnpm lint:fsd:frontend | ||
| pnpm typecheck:backend | ||
| pnpm typecheck:frontend |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| node_modules | ||
| dist | ||
| build | ||
| .next | ||
| coverage | ||
| pnpm-lock.yaml | ||
| *.tsbuildinfo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| { | ||
| "semi": true, | ||
| "trailingComma": "es5", | ||
| "singleQuote": true, | ||
| "printWidth": 100, | ||
| "tabWidth": 2, | ||
| "endOfLine": "auto" | ||
| "semi": true, | ||
| "trailingComma": "es5", | ||
| "singleQuote": true, | ||
| "printWidth": 100, | ||
| "tabWidth": 2, | ||
| "endOfLine": "auto" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,22 @@ | ||
| services: | ||
| postgres: | ||
| container_name: postgres | ||
| image: postgres:latest | ||
| restart: always | ||
| environment: | ||
| POSTGRES_USER: ${DB_USERNAME} | ||
| POSTGRES_PASSWORD: ${DB_PASSWORD} | ||
| DB_DATABASE: ${DB_DATABASE} | ||
| postgres: | ||
| container_name: postgres | ||
| image: postgres:latest | ||
| restart: always | ||
| environment: | ||
| POSTGRES_USER: ${DB_USERNAME} | ||
| POSTGRES_PASSWORD: ${DB_PASSWORD} | ||
| DB_DATABASE: ${DB_DATABASE} | ||
|
|
||
| ports: | ||
| - '5433:5432' | ||
| volumes: | ||
| - postgres_data:/var/lib/postgresql/postgres_data | ||
| networks: | ||
| - nestjs | ||
| ports: | ||
| - '5433:5432' | ||
| volumes: | ||
| - postgres_data:/var/lib/postgresql/postgres_data | ||
| networks: | ||
| - nestjs | ||
|
|
||
| volumes: | ||
| postgres_data: | ||
| postgres_data: | ||
|
|
||
| networks: | ||
| nestjs: | ||
| nestjs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,40 @@ | ||
| import eslint from '@eslint/js'; | ||
| import { defineConfig } from 'eslint/config'; | ||
| import js from '@eslint/js'; | ||
| import tseslint from 'typescript-eslint'; | ||
| import importPlugin from 'eslint-plugin-import'; | ||
| import unusedImports from 'eslint-plugin-unused-imports'; | ||
| import prettier from 'eslint-plugin-prettier'; | ||
| import globals from 'globals'; // Добавили для работы окружений | ||
|
|
||
| export default defineConfig(eslint.configs.recommended, tseslint.configs.recommended); | ||
| export default [ | ||
| js.configs.recommended, | ||
| ...tseslint.configs.recommended, | ||
|
|
||
| { | ||
| files: ['**/*.{ts,tsx}'], | ||
| languageOptions: { | ||
| parser: tseslint.parser, | ||
| parserOptions: { | ||
| project: ['./tsconfig.json'], | ||
| }, | ||
| globals: { | ||
| ...globals.es2021, | ||
| }, | ||
| }, | ||
| }, | ||
| { | ||
| plugins: { | ||
| import: importPlugin, | ||
| 'unused-imports': unusedImports, | ||
| prettier, | ||
| }, | ||
| rules: { | ||
| 'no-unused-vars': 'off', | ||
| '@typescript-eslint/no-unused-vars': 'off', | ||
| 'unused-imports/no-unused-imports': 'error', | ||
| }, | ||
| }, | ||
|
|
||
| { | ||
| ignores: ['node_modules', 'dist', '.next', 'build', '**/jest.config.ts', '**/*.config.ts'], | ||
| }, | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| { | ||
| "name": "@task-tracker/shared-types", | ||
| "version": "1.0.0", | ||
| "private": "true", | ||
| "description": "", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "keywords": [], | ||
| "author": "", | ||
| "license": "ISC", | ||
| "packageManager": "pnpm@10.29.3" | ||
| "name": "@task-tracker/shared-types", | ||
| "version": "1.0.0", | ||
| "private": "true", | ||
| "description": "", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "keywords": [], | ||
| "author": "", | ||
| "license": "ISC", | ||
| "packageManager": "pnpm@10.29.3" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| { | ||
| "extends": "../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "outDir": "./dist", | ||
| "rootDir": "./src", | ||
| "declaration": true | ||
| }, | ||
| "include": ["src/**/*"] | ||
| "extends": "../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "outDir": "./dist", | ||
| "rootDir": "./src", | ||
| "declaration": true | ||
| }, | ||
| "include": ["src/**/*"] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.