Skip to content

Commit 9dd85fa

Browse files
authored
add new lint scripts to docs
1 parent 7f95e83 commit 9dd85fa

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Diff for: _docs/developer/testing/linting_static_analysis.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,13 @@ submitty_test php-lint --memory-limit 2G
126126

127127
## JavaScript Linting
128128

129-
The frontend JavaScript code Submitty uses is linted using [eslint](https://eslint.org/).
129+
The frontend JavaScript code Submitty uses is linted using [eslint](https://eslint.org/). As with the PHP linter, `submitty_test` can be used as an alias for the `SUBMITTY_TEST.sh` script.
130130

131-
You can run eslint on your host system or on vagrant by navigating into the `site/`
131+
```bash
132+
submitty_test js-lint
133+
```
134+
135+
Alternatively, you can run eslint on your host system or on vagrant by navigating into the `site/`
132136
directory and running:
133137

134138
```bash
@@ -152,9 +156,13 @@ See also: [JavaScript Style Guide](/developer/coding_style_guide/javascript)
152156

153157
## CSS Linting
154158

155-
CSS is linted using [stylelint](https://stylelint.io/) in Submitty to enforce a consistent code style.
159+
CSS is linted using [stylelint](https://stylelint.io/) in Submitty to enforce a consistent code style. As with the PHP linter, `submitty_test` can be used as an alias for the `SUBMITTY_TEST.sh` script.
160+
161+
```bash
162+
submitty_test css-lint
163+
```
156164

157-
You can run stylelint on your host system or on vagrant by navigating into the `site/`
165+
Alternatively, you can run stylelint on your host system or on vagrant by navigating into the `site/`
158166
directory and running:
159167

160168
```bash

0 commit comments

Comments
 (0)