Spaces:
Sleeping
Sleeping
Commit
·
b193519
1
Parent(s):
cb08adf
chore: basic linting
Browse files
README.md
CHANGED
@@ -27,22 +27,27 @@ The application calculates totals and allows you to print or save the quotation
|
|
27 |
## Running Tests
|
28 |
|
29 |
Ensure you have Node.js installed, then run:
|
30 |
-
|
|
|
31 |
node tests/test.js
|
32 |
```
|
33 |
|
34 |
## Linting
|
35 |
|
36 |
Install the linting tools:
|
37 |
-
|
|
|
38 |
npm install
|
39 |
```
|
40 |
|
41 |
To run all linters (HTMLHint, Stylelint, ESLint):
|
42 |
-
|
|
|
43 |
npm run lint
|
44 |
```
|
|
|
45 |
Or individually:
|
|
|
46 |
- `npm run lint:html`
|
47 |
- `npm run lint:css`
|
48 |
- `npm run lint:js`
|
@@ -51,10 +56,13 @@ Or individually:
|
|
51 |
|
52 |
Husky is configured to run tests, linters, and lint-staged automatically on each commit.
|
53 |
After installing dependencies, run:
|
54 |
-
|
|
|
55 |
npm run prepare
|
56 |
```
|
|
|
57 |
Now, any `git commit` will:
|
|
|
58 |
- run `npm test`
|
59 |
- run `npm run lint`
|
60 |
- run `lint-staged` to fix staged files
|
|
|
27 |
## Running Tests
|
28 |
|
29 |
Ensure you have Node.js installed, then run:
|
30 |
+
|
31 |
+
```shell
|
32 |
node tests/test.js
|
33 |
```
|
34 |
|
35 |
## Linting
|
36 |
|
37 |
Install the linting tools:
|
38 |
+
|
39 |
+
```shell
|
40 |
npm install
|
41 |
```
|
42 |
|
43 |
To run all linters (HTMLHint, Stylelint, ESLint):
|
44 |
+
|
45 |
+
```shell
|
46 |
npm run lint
|
47 |
```
|
48 |
+
|
49 |
Or individually:
|
50 |
+
|
51 |
- `npm run lint:html`
|
52 |
- `npm run lint:css`
|
53 |
- `npm run lint:js`
|
|
|
56 |
|
57 |
Husky is configured to run tests, linters, and lint-staged automatically on each commit.
|
58 |
After installing dependencies, run:
|
59 |
+
|
60 |
+
```shell
|
61 |
npm run prepare
|
62 |
```
|
63 |
+
|
64 |
Now, any `git commit` will:
|
65 |
+
|
66 |
- run `npm test`
|
67 |
- run `npm run lint`
|
68 |
- run `lint-staged` to fix staged files
|