File tree Expand file tree Collapse file tree 6 files changed +413
-557
lines changed Expand file tree Collapse file tree 6 files changed +413
-557
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55This project adheres to [ Semantic Versioning] ( http://semver.org ) . Except add new
66rule (it is breaking changed by default).
77
8+ ## 105.0.0 - 2019-08-20
9+
10+ - Added: ` jest/no-standalone-expect ` rule.
11+ - Added: ` ava/hooks-order ` rule.
12+ - Added: ` ava/no-inline-assertions ` rule.
13+ - Chore: minimum require ` eslint-plugin-ava ` version is now ` ^8.0.0 ` .
14+ - Chore: minimum require ` eslint-plugin-jest ` version is now ` ^22.15.1 ` .
15+ - Chore: minimum require ` eslint-plugin-lodash ` version is now ` ^6.0.0 ` .
16+ 17+
818## 104.0.0 - 2019-07-26
919
1020- Added: ` jest/no-try-expect ` rule.
Original file line number Diff line number Diff line change 55module . exports = {
66 // Enforce passing correct arguments to assertions.
77 "ava/assertion-arguments" : "error" ,
8+ // Enforce test hook ordering.
9+ "ava/hooks-order" : "error" ,
810 // Limit the number of assertions in a test.
911 "ava/max-asserts" : [ "off" , 5 ] ,
1012 // Ensure that async tests use await
@@ -19,6 +21,10 @@ module.exports = {
1921 "ava/no-ignored-test-files" : "error" ,
2022 // Ensure no test files are imported anywhere
2123 "ava/no-import-test-files" : "error" ,
24+ // Avoid using deepEqual with primitives.
25+ "ava/no-incorrect-deep-equal" : "error" ,
26+ // Ensure assertions are not called from inline arrow functions.
27+ "ava/no-inline-assertions" : "error" ,
2228 // Ensure t.end() is only called inside test.cb().
2329 "ava/no-invalid-end" : "error" ,
2430 // Ensure no tests are nested.
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ module.exports = {
1919 "jest/no-commented-out-tests" : "off" ,
2020 // Disallow disabled tests
2121 "jest/no-empty-title" : "error" ,
22+ // Disallow using `expect().resolves`
23+ "jest/no-expect-resolves" : "off" ,
2224 // Disallow export from test files
2325 "jest/no-export" : "error" ,
2426 // Disallow focused tests
@@ -36,6 +38,8 @@ module.exports = {
3638 "jest/no-jest-import" : "error" ,
3739 // Disallow manually importing from __mocks__
3840 "jest/no-mocks-import" : "error" ,
41+ // Prevents `expect` statements outside of a `test` or `it` block
42+ "jest/no-standalone-expect" : "error" ,
3943 // Disallow large snapshots
4044 "jest/no-large-snapshots" : "off" ,
4145 // Using a callback in asynchronous tests
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ module.exports = {
5454 allowArrowFunctions : true
5555 }
5656 ] ,
57+ // Enforce line breaks between arguments of a function call
58+ "function-call-argument-newline" : "off" ,
5759 // Enforce consistent line breaks inside function parentheses
5860 "function-paren-newline" : "off" ,
5961 // Blacklist certain identifiers to prevent them being used
You can’t perform that action at this time.
0 commit comments