Skip to content

Commit 2f8a226

Browse files
committed
Remove callback-test related rules
1 parent abc162f commit 2f8a226

29 files changed

+6
-814
lines changed

docs/rules/no-cb-test.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/rules/no-duplicate-modifiers.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ const test = require('ava');
1111

1212
test.only.only(t => {});
1313
test.serial.serial(t => {});
14-
test.cb.cb(t => {});
1514
test.beforeEach.beforeEach(t => {});
16-
test.only.only.cb(t => {});
1715
```
1816

1917
## Pass
@@ -23,6 +21,5 @@ const test = require('ava');
2321

2422
test.only(t => {});
2523
test.serial(t => {});
26-
test.cb.only(t => {});
2724
test.beforeEach(t => {});
2825
```

docs/rules/no-invalid-end.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/rules/no-statement-after-end.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

docs/rules/no-unknown-modifiers.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const test = require('ava');
1111

1212
test.onlu(t => {});
1313
test.seril(t => {});
14-
test.cb.onlu(t => {});
1514
test.beforeeach(t => {});
1615
test.unknown(t => {});
1716
```
@@ -23,6 +22,5 @@ const test = require('ava');
2322

2423
test.only(t => {});
2524
test.serial(t => {});
26-
test.cb.only(t => {});
2725
test.beforeEach(t => {});
2826
```

docs/rules/test-ended.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,22 @@ module.exports = {
2424
5
2525
],
2626
'ava/no-async-fn-without-await': 'error',
27-
'ava/no-cb-test': 'off',
2827
'ava/no-duplicate-modifiers': 'error',
2928
'ava/no-identical-title': 'error',
3029
'ava/no-ignored-test-files': 'error',
3130
'ava/no-import-test-files': 'error',
3231
'ava/no-incorrect-deep-equal': 'error',
3332
'ava/no-inline-assertions': 'error',
34-
'ava/no-invalid-end': 'error',
3533
'ava/no-nested-tests': 'error',
3634
'ava/no-only-test': 'error',
3735
'ava/no-skip-assert': 'error',
3836
'ava/no-skip-test': 'error',
39-
'ava/no-statement-after-end': 'error',
4037
'ava/no-todo-implementation': 'error',
4138
'ava/no-todo-test': 'warn',
4239
'ava/no-unknown-modifiers': 'error',
4340
'ava/prefer-async-await': 'error',
4441
'ava/prefer-power-assert': 'off',
4542
'ava/prefer-t-regex': 'error',
46-
'ava/test-ended': 'error',
4743
'ava/test-title': 'error',
4844
'ava/test-title-format': 'off',
4945
'ava/use-t-well': 'error',

readme.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,22 @@ Configure it in `package.json`.
4040
5
4141
],
4242
"ava/no-async-fn-without-await": "error",
43-
"ava/no-cb-test": "off",
4443
"ava/no-duplicate-modifiers": "error",
4544
"ava/no-identical-title": "error",
4645
"ava/no-ignored-test-files": "error",
4746
"ava/no-import-test-files": "error",
4847
"ava/no-incorrect-deep-equal": "error",
4948
"ava/no-inline-assertions": "error",
50-
"ava/no-invalid-end": "error",
5149
"ava/no-nested-tests": "error",
5250
"ava/no-only-test": "error",
5351
"ava/no-skip-assert": "error",
5452
"ava/no-skip-test": "error",
55-
"ava/no-statement-after-end": "error",
5653
"ava/no-todo-implementation": "error",
5754
"ava/no-todo-test": "warn",
5855
"ava/no-unknown-modifiers": "error",
5956
"ava/prefer-async-await": "error",
6057
"ava/prefer-power-assert": "off",
6158
"ava/prefer-t-regex": "error",
62-
"ava/test-ended": "error",
6359
"ava/test-title": "error",
6460
"ava/test-title-format": "off",
6561
"ava/use-t": "error",
@@ -80,26 +76,22 @@ The rules will only activate in test files.
8076
- [hooks-order](docs/rules/hooks-order.md) - Enforce test hook ordering. *(fixable)*
8177
- [max-asserts](docs/rules/max-asserts.md) - Limit the number of assertions in a test.
8278
- [no-async-fn-without-await](docs/rules/no-async-fn-without-await.md) - Ensure that async tests use `await`.
83-
- [no-cb-test](docs/rules/no-cb-test.md) - Ensure no `test.cb()` is used.
8479
- [no-duplicate-modifiers](docs/rules/no-duplicate-modifiers.md) - Ensure tests do not have duplicate modifiers.
8580
- [no-identical-title](docs/rules/no-identical-title.md) - Ensure no tests have the same title.
8681
- [no-ignored-test-files](docs/rules/no-ignored-test-files.md) - Ensure no tests are written in ignored files.
8782
- [no-import-test-files](docs/rules/no-import-test-files.md) - Ensure no test files are imported anywhere.
8883
- [no-incorrect-deep-equal](docs/rules/no-incorrect-deep-equal.md) - Avoid using `deepEqual` with primitives. *(fixable)*
8984
- [no-inline-assertions](docs/rules/no-inline-assertions.md) - Ensure assertions are not called from inline arrow functions. *(fixable)*
90-
- [no-invalid-end](docs/rules/no-invalid-end.md) - Ensure `t.end()` is only called inside `test.cb()`.
9185
- [no-nested-tests](docs/rules/no-nested-tests.md) - Ensure no tests are nested.
9286
- [no-only-test](docs/rules/no-only-test.md) - Ensure no `test.only()` are present.
9387
- [no-skip-assert](docs/rules/no-skip-assert.md) - Ensure no assertions are skipped.
9488
- [no-skip-test](docs/rules/no-skip-test.md) - Ensure no tests are skipped.
95-
- [no-statement-after-end](docs/rules/no-statement-after-end.md) - Ensure `t.end()` is the last statement executed.
9689
- [no-todo-implementation](docs/rules/no-todo-implementation.md) - Ensure `test.todo()` is not given an implementation function.
9790
- [no-todo-test](docs/rules/no-todo-test.md) - Ensure no `test.todo()` is used.
9891
- [no-unknown-modifiers](docs/rules/no-unknown-modifiers.md) - Prevent the use of unknown test modifiers.
9992
- [prefer-async-await](docs/rules/prefer-async-await.md) - Prefer using async/await instead of returning a Promise.
10093
- [prefer-power-assert](docs/rules/prefer-power-assert.md) - Allow only use of the asserts that have no [power-assert](https://github.com/power-assert-js/power-assert) alternative.
10194
- [prefer-t-regex](docs/rules/prefer-t-regex.md) - Prefer using `t.regex()` to test regular expressions. *(fixable)*
102-
- [test-ended](docs/rules/test-ended.md) - Ensure callback tests are explicitly ended.
10395
- [test-title](docs/rules/test-title.md) - Ensure tests have a title.
10496
- [test-title-format](docs/rules/test-title-format.md) - Ensure test titles have a certain format.
10597
- [use-t](docs/rules/use-t.md) - Ensure test functions use `t` as their parameter.

rules/no-cb-test.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

rules/no-invalid-end.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)