Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 4 #2

Merged
merged 8 commits into from Dec 22, 2018
Merged

Patch 4 #2

merged 8 commits into from Dec 22, 2018

Conversation

Lana-Light
Copy link
Owner

No description provided.

boneskull and others added 8 commits December 18, 2018 10:41
- also upgrade `lint-staged`, because it's broken for some reason
- reformat
- lint
- remove `prettier-eslint-cli`
- update formatting command to handle JSON & YAML files via prettier,
  and eslint for everything else
- update `.lintstagedrc` to deal as well

test file changes are related to deprecations of various `assert` methods
also use exact `yargs-unparser` version
- Remove unused variables to avoid problems with mochajs#237 (and their associated inline ESLint directives)
- Use existing ESLint rules (`no-restricted-globals`, `no-restricted-modules` and `no-restricted-syntax`) to disallow global timer access.
- Removed "poison pill" tests in `test/unit/runnable.spec.js`.

For those rules, our config applies only to `bin/*` and `lib/**/*.js`.

- `no-restricted-globals`: Disallow bare references (including calls) to timers like `setTimeout`.
- `no-restricted-modules`: Disallow use of Node.js' `timers` module to get around the above restriction.
- `no-restricted-syntax`: 
  - Disallow calls of `global.setTimeout` and other timers
  - Disallow `new global.Date()`
  - Disallow any expressions involving `global.Date.*`, `global.setTimeout.*` and other timers

- add more files to markdown linting
- reorg tests, remove `fs` test from jsapi tests
* runner.js: delete second end emit

* tests

* documentation

* runner.js

* tests: corrections

closes mochajs#3398, closes mochajs#3598, closes mochajs#3457, closes mochajs#3617
@Lana-Light Lana-Light merged commit 8736b46 into patch-1 Dec 22, 2018
@Lana-Light Lana-Light deleted the patch-4 branch December 22, 2018 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants