Skip to content

Исправить варнинг в линтере #24

@VEnom42

Description

@VEnom42
11:33 AM	Commit failed with error
	0 files committed, 2 files failed to commit: #163 check linter v2
	⚠ Some of your tasks use `git add` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.

https://github.com/okonet/lint-staged#v10

From v10.0.0 onwards any new modifications to originally staged files will be automatically added to the commit. If your task previously contained a git add step, please remove this. The automatic behaviour ensures there are less race-conditions, since trying to run multiple git operations at the same time usually results in an error.

C 10-й версии линтера строчка git add в package.json больше не нужна. Нужно ее убить (в данный момент у нас 11-я версия).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions