← Back to Explore

Lint-Test-Commit

Lint Test and Fix in a loop until `PASS`, then commit.

featured

Rundown


# Lint, Test & Commit

Lint, Test and Fix in a loop until `PASS`, then commit.


## 1. Run Lint Checks
- FAIL: GOTO FixLint

Run the test suite to verify the implementation.

```bash
rd echo npm lint
```


## 2. Run Tests
- FAIL: GOTO FixTest

Run the test suite to verify the implementation.

```bash
rd echo npm test
```


## 3. Commit Changes
- PASS: COMPLETE

Commit the changes to the repository.

```bash
rd echo git commit -m 'feat: implement new logic'
```


## FixLint. Fix lint issues.

- YES: GOTO 1
- NO: STOP "Unable to fix lint issues"

Follow the project guidelines and address all lint issues.


## FixTest. Fix all failing tests.

- YES: GOTO 2
- NO: STOP "Unable to fix failing test/s"

Fix all failing tests


Run

Lint, Test, & Commit

Initializing...

Initializing...

Step/