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
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,31 +8,31 @@ 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 `npm run lint:prettier`.
11
+
To run prettier, use `node --run lint:prettier`.
12
12
13
13
### JavaScript: Run ESLint
14
14
15
15
We use [ESLint](https://eslint.org) to lint our JavaScript files. The configuration is in our `eslint.config.mjs` file.
16
16
17
-
To run ESLint, use `npm run lint:js`.
17
+
To run ESLint, use `node --run lint:js`.
18
18
19
19
### CSS: Run StyleLint
20
20
21
21
We use [StyleLint](https://stylelint.io) to lint our CSS. The configuration is in our `.stylelintrc.json` file.
22
22
23
-
To run StyleLint, use `npm run lint:css`.
23
+
To run StyleLint, use `node --run lint:css`.
24
24
25
25
### Markdown: Run markdownlint
26
26
27
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
28
29
-
To run markdownlint, use `npm run markdownlint:css`.
29
+
To run markdownlint, use `node --run markdownlint:css`.
30
30
31
31
## Testing
32
32
33
33
We use [Jest](https://jestjs.io) for JavaScript testing.
34
34
35
-
To run all tests, use `npm run test`.
35
+
To run all tests, use `node --run test`.
36
36
37
37
The specific test commands are defined in `package.json`.
38
-
So you can also run the specific tests with other commands, e.g. `npm run test:unit` or `npx jest tests/e2e/env_spec.js`.
38
+
So you can also run the specific tests with other commands, e.g. `node --run test:unit` or `npx jest tests/e2e/env_spec.js`.
Copy file name to clipboardExpand all lines: js/defaults.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ const defaults = {
62
62
position: "middle_center",
63
63
classes: "xsmall",
64
64
config: {
65
-
text: "If you get this message while your config file is already created,<br>"+"it probably contains an error. To validate your config file run in your MagicMirror² directory<br>"+"<pre>npm run config:check</pre>"
65
+
text: "If you get this message while your config file is already created,<br>"+"it probably contains an error. To validate your config file run in your MagicMirror² directory<br>"+"<pre>node --run config:check</pre>"
0 commit comments