Skip to content

Commit 89a130e

Browse files
add mdspell (#23)
1 parent 7a51e33 commit 89a130e

File tree

2 files changed

+40
-9
lines changed

2 files changed

+40
-9
lines changed

.travis.yml

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,38 @@
1-
language: node_js
2-
node_js:
3-
- '10'
4-
install: yarn
5-
script: yarn test
6-
addons:
7-
srcclr: true
1+
language: generic
2+
os: linux
3+
4+
stages:
5+
- 'Lint markdown files'
6+
- 'Test'
7+
8+
jobs:
9+
include:
10+
- stage: 'Lint markdown files'
11+
os: linux
12+
language: generic
13+
install: gem install awesome_bot
14+
before_script: skip
15+
script:
16+
- find . -type f -name '*.md' -exec awesome_bot {} \;
17+
18+
- stage: 'Lint markdown files'
19+
os: linux
20+
language: generic
21+
before_install: skip
22+
install:
23+
- npm i -g markdown-spellcheck
24+
before_script:
25+
- wget --quiet https://raw.githubusercontent.com/optimizely/mdspell-config/master/.spelling
26+
script:
27+
- mdspell -a -n -r --en-us '**/*.md'
28+
after_success: skip
29+
30+
- stage: 'Test'
31+
os: linux
32+
language: node_js
33+
node_js:
34+
- 10
35+
install: yarn
36+
script: yarn test
37+
addons:
38+
srcclr: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function ExperimentComponent() {
253253
}
254254
```
255255

256-
**Note: If you are loading the datafile or the user asynchrounously, be sure to include an `<OptimizelyVariation default>` component as the render path if the datafile or user fails to load.**
256+
**Note: If you are loading the datafile or the user asynchronously, be sure to include an `<OptimizelyVariation default>` component as the render path if the datafile or user fails to load.**
257257

258258
## `OptimizelyFeature`
259259

@@ -392,7 +392,7 @@ The following type definitions are used in the `ReactSDKClient` interface:
392392
* `getEnabledFeatures(overrideUserId?: string, overrideAttributes?: UserAttributes): Array<string>`: Return the keys of all features enabled for the given user
393393
* `track(eventKey: string, overrideUserId?: string | EventTags, overrideAttributes?: UserAttributes, eventTags?: EventTags): void` Track an event to the Optimizely results backend
394394
* `setForcedVariation(experiment: string, overrideUserIdOrVariationKey: string, variationKey?: string | null): boolean` Set a forced variation for the given experiment, variation, and user
395-
* `getForcedVariation(experiment: string, overrideUserId?: string): string | null` Get the forced faration for the given experiment, variation, and user
395+
* `getForcedVariation(experiment: string, overrideUserId?: string): string | null` Get the forced variation for the given experiment, variation, and user
396396

397397
## Rollout or experiment a feature user-by-user
398398

0 commit comments

Comments
 (0)