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
21 changes: 21 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,24 @@ plugins:
extends:
- "plugin:@typescript-eslint/recommended"
- "htmlacademy/node"
rules:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А эти правила зачем добавлял ? В требованиях задания вроде бы об этом ни слова )

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне режет глаз, когда скобки прилипают например {Obj}, просто добавил для своего удобства - вроде не наружшает каких-то правил?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нет правил не нарушает, просто удивился, что ты сразу в линтинг полез )

object-curly-spacing:
- error
- always
"@typescript-eslint/type-annotation-spacing":
- error
- before: false
after: true
semi:
- error
- always
overrides:
- files:
- "*.ts"
- "*.tsx"
rules:
# для TS-файлов
"@typescript-eslint/semi":
- error
- always
semi: off
29 changes: 29 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Установка зависимостей
install:
npm install

# Сборка проекта
build:
npm run build

# Запуск проекта (сначала build)
start:
npm run start

# Очистка dist
clean:
npm run clean

# Линтинг
lint:
npm run lint

# Линтинг с автоисправлением
lint-fix:
npm run lint:fix

# цель по умолчанию
default: lint

# Основные цели
.PHONY: default install build start clean lint lint-fix test
Loading