Skip to content

Commit

Permalink
Lint markdown in CI (#5645)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii authored and cpojer committed Feb 23, 2018
1 parent 196d9b8 commit c91ee66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/ManualMocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ other than the project root) and will be **automatically** mocked. There's no
need to explicitly call `jest.mock('module_name')`.

Scoped modules can be mocked by creating a file in a directory structure that
matches the name of the scoped module. For example, to mock a scoped module
matches the name of the scoped module. For example, to mock a scoped module
called `@scope/project-name`, create a file at
`__mocks__/@scope/project-name.js`, creating the `@scope/` directory
accordingly.
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@
"jest-coverage": "yarn jest --coverage",
"lint": "eslint . --cache --ext js,md",
"lint-es5-build": "eslint --no-eslintrc --no-ignore --env=browser packages/*/build-es5",
"lint:md": "prettier docs/**/*.md packages/*/README.md packages/*/docs/**/*.md website/blog/*.md .github/*.md CHANGELOG.md CONTRIBUTING.md website/README.md README.md --write",
"lint:md": "prettier '**/*.md' --write",
"lint:md:ci": "prettier '**/*.md' --list-different",
"postinstall": "yarn build",
"publish": "yarn build-clean && yarn build && lerna publish --silent",
"test-ci-es5-build-in-browser": "karma start --single-run",
"test-ci": "yarn typecheck && yarn lint && yarn lint-es5-build && yarn jest-coverage -- -i && node scripts/mapCoverage.js && codecov",
"test-ci": "yarn typecheck && yarn lint && yarn lint-es5-build && yarn lint:md:ci && yarn jest-coverage -i && node scripts/mapCoverage.js && codecov",
"test-ci-partial": "yarn jest -i",
"test-pretty-format-perf": "node packages/pretty-format/perf/test.js",
"test": "yarn typecheck && yarn lint && yarn jest",
Expand Down

0 comments on commit c91ee66

Please sign in to comment.