Skip to content

Commit e82c5e0

Browse files
committed
Add docs for including ts/tsx files in eslint atom
This change adds docs to include ts and tsx files to be linted by `linter-eslint` atom plugin. This change was tested with `npm test`. The `--frail` option was added to the `test:remarklint` command to throw errors if any issues are found (instead of quietly warning).
1 parent 78e4487 commit e82c5e0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/communications/messages/gcs-vehicles-messages.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ plane should either loiter or land to the ground). Vehicles should continue to s
133133

134134
## Geofence Message
135135

136-
Sent to the vehicle to send geofencing coordinates for the keep-in and keep-out zones of the mission.
136+
Sent to the vehicle to send geofencing coordinates for the keep-in and keep-out zones of the
137+
mission.
137138

138139
```javascript
139140
{

docs/contributing/getting-started.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ Set the following settings to configure your Atom text editor for this project.
6565
project have 100 characters max.
6666

6767
- Set `Settings > Editor > Preferred Line Length` to 100
68+
6869
- Keep `Settings > Editor > Soft Wrap` unchecked
6970

71+
- Add `source.ts` and `source.tsx` to the list of supported extensions in
72+
`Settings > Packages > linter-eslint > List of scopes to run ESLint on`
73+
7074
### MkDocs documentation packages
7175

7276
We use a few Python packages to build our documentation. [MkDocs][] allows us to build our

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test:lint": "npm run test:eslint && npm run test:stylelint && npm run test:remarklint",
1212
"test:eslint": "eslint --ext .js,.jsx,.ts,.tsx \".\"",
1313
"test:stylelint": "stylelint \"**/*.css\"",
14-
"test:remarklint": "remark .",
14+
"test:remarklint": "remark . --frail",
1515
"test:types": "tsc --project . --outDir dist --pretty",
1616
"test:unit": "nyc mocha --require ts-node/register test/**/*.test.ts",
1717
"coverage": "nyc report --reporter=text-lcov | coveralls",

0 commit comments

Comments
 (0)