Skip to content

Commit 5b338e1

Browse files
committed
[Tests] lint our markdown
1 parent e86fb14 commit 5b338e1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ before_install:
99
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g [email protected] ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g [email protected] ;; 2.*) npm install -g npm@2 ;; esac ; fi'
1010
- 'if [ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" = "0" ] || [ "${TRAVIS_NODE_VERSION:0:4}" = "iojs" ]; then npm install -g [email protected] ; elif [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
1111
install:
12-
- 'cd "packages/${PACKAGE}"'
12+
- 'if [ -n "${PACKAGE-}" ]; then cd "packages/${PACKAGE}"; fi'
1313
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g [email protected] && npm install -g [email protected] && npm install -g npm@2 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
1414
- 'if [ -n "${ESLINT}" ]; then npm install --no-save "eslint@${ESLINT}"; fi'
1515
script:
16-
- 'if [ -n "${PREPUBLISH-}" ]; then npm run pretravis && npm run prepublish && npm run posttravis; else npm run travis; fi'
16+
- 'if [ -n "${PREPUBLISH-}" ]; then npm run pretravis && npm run prepublish && npm run posttravis; elif [ -n "${LINT-}" ]; then npm run lint; else npm run travis; fi'
1717
sudo: false
1818
env:
1919
matrix:
@@ -26,6 +26,8 @@ matrix:
2626
env: PREPUBLISH=true ESLINT=4 PACKAGE=eslint-config-airbnb
2727
- node_js: "node"
2828
env: PREPUBLISH=true ESLINT=4 PACKAGE=eslint-config-airbnb-base
29+
- node_js: "node"
30+
env: LINT=true
2931
allow_failures:
3032
- node_js: "7"
3133
- node_js: "5"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3169,7 +3169,7 @@ Other Style Guides
31693169
eslint: [`no-restricted-globals`](http://eslint.org/docs/rules/no-restricted-globals)
31703170
31713171
> Why? The global `isNaN` coerces non-numbers to numbers, returning true for anything that coerces to NaN.
3172-
If this behavior is desired, make it explicit.
3172+
> If this behavior is desired, make it explicit.
31733173
31743174
```javascript
31753175
// bad
@@ -3186,7 +3186,7 @@ Other Style Guides
31863186
eslint: [`no-restricted-globals`](http://eslint.org/docs/rules/no-restricted-globals)
31873187
31883188
> Why? The global `isFinite` coerces non-numbers to numbers, returning true for anything that coerces to a finite number.
3189-
If this behavior is desired, make it explicit.
3189+
> If this behavior is desired, make it explicit.
31903190
31913191
```javascript
31923192
// bad

0 commit comments

Comments
 (0)