You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+5-19Lines changed: 5 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,25 +8,10 @@ We hold our code to standard, and these standards are documented below.
8
8
9
9
We use [prettier](https://prettier.io/) for automatic formatting a lot all our files. The configuration is in our `prettier.config.mjs` file.
10
10
11
-
To run prettier, use `node --run lint:prettier`.
11
+
And we use [ESLint](https://eslint.org) to lint our JavaScript, Markdown, and CSS files. The configuration is in our `eslint.config.mjs` file.
12
12
13
-
### JavaScript: Run ESLint
14
-
15
-
We use [ESLint](https://eslint.org) to lint our JavaScript files. The configuration is in our `eslint.config.mjs` file.
16
-
17
-
To run ESLint, use `node --run lint:js`.
18
-
19
-
### CSS: Run StyleLint
20
-
21
-
We use [StyleLint](https://stylelint.io) to lint our CSS. The configuration is in our `stylelint.config.mjs` file.
22
-
23
-
To run StyleLint, use `node --run lint:css`.
24
-
25
-
### Markdown: Run markdownlint
26
-
27
-
We use [markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2) to lint our markdown files. The configuration is in our `.markdownlint.json` file.
28
-
29
-
To run markdownlint, use `node --run lint:markdown`.
13
+
To check for formatting and linting errors, use `node --run test:lint`
14
+
To fix formatting and linting errors, use `node --run lint:fix`.
30
15
31
16
## Testing
32
17
@@ -43,6 +28,7 @@ The `package.json` scripts expose finer-grained test commands:
43
28
-`test:watch` – keep Vitest in watch mode for fast local feedback
44
29
-`test:ui` – open the Vitest UI dashboard (needs OS file-watch support enabled)
45
30
-`test:calendar` – run the legacy calendar debug helper
46
-
-`test:css`, `test:markdown`, `test:prettier`, `test:spelling`, `test:js` – lint-only scripts that enforce formatting, spelling, markdown style, and ESLint.
31
+
-`test:lint` – run linter and formatter checks
32
+
-`test:spelling` – run the spell checker
47
33
48
34
You can invoke any script with `node --run <script>` (or `npm run <script>`). Individual files can still be targeted directly, e.g. `npx vitest run tests/e2e/env_spec.js`.
0 commit comments