Skip to content

Commit e40113d

Browse files
macklinuSimenB
authored andcommitted
chore(package): update to [email protected] (#120)
1 parent d7f3de3 commit e40113d

11 files changed

+62
-43
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ for more information about extending configuration files.
100100

101101
## Credit
102102

103-
* [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha)
104-
* [eslint-plugin-jasmine](https://github.com/tlvince/eslint-plugin-jasmine)
103+
- [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha)
104+
- [eslint-plugin-jasmine](https://github.com/tlvince/eslint-plugin-jasmine)

docs/rules/consistent-test-it.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Jest allows you to choose how you want to define your tests, using the `it` or
44
the `test` keywords, with multiple permutations for each:
55

6-
* **it:** `it`, `xit`, `fit`, `it.only`, `it.skip`.
7-
* **test:** `test`, `xtest`, `test.only`, `test.skip`.
6+
- **it:** `it`, `xit`, `fit`, `it.only`, `it.skip`.
7+
- **test:** `test`, `xtest`, `test.only`, `test.skip`.
88

99
This rule gives you control over the usage of these keywords in your codebase.
1010

docs/rules/lowercase-name.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ it('adds 1 + 2 to equal 3', () => {
4040
This array option whitelists function names so that this rule does not report
4141
their usage as being incorrect. There are three possible values:
4242

43-
* `"describe"`
44-
* `"test"`
45-
* `"it"`
43+
- `"describe"`
44+
- `"test"`
45+
- `"it"`
4646

4747
By default, none of these options are enabled (the equivalent of
4848
`{ "ignore": [] }`).

docs/rules/no-disabled-tests.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ This rule raises a warning about disabled tests.
1111

1212
There are a number of ways to disable tests in Jest:
1313

14-
* by appending `.skip` to the test-suite or test-case
15-
* by prepending the test function name with `x`
16-
* by declaring a test with a name but no function body
17-
* by making a call to `pending()` anywhere within the test
14+
- by appending `.skip` to the test-suite or test-case
15+
- by prepending the test function name with `x`
16+
- by declaring a test with a name but no function body
17+
- by making a call to `pending()` anywhere within the test
1818

1919
The following patterns are considered warnings:
2020

docs/rules/no-hooks.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ shared state between tests.
88

99
This rule reports for the following function calls:
1010

11-
* `beforeAll`
12-
* `beforeEach`
13-
* `afterAll`
14-
* `afterEach`
11+
- `beforeAll`
12+
- `beforeEach`
13+
- `afterAll`
14+
- `afterEach`
1515

1616
Examples of **incorrect** code for this rule:
1717

@@ -104,10 +104,10 @@ describe('foo', () => {
104104
This array option whitelists setup and teardown hooks so that this rule does not
105105
report their usage as being incorrect. There are four possible values:
106106

107-
* `"beforeAll"`
108-
* `"beforeEach"`
109-
* `"afterAll"`
110-
* `"afterEach"`
107+
- `"beforeAll"`
108+
- `"beforeEach"`
109+
- `"afterAll"`
110+
- `"afterEach"`
111111

112112
By default, none of these options are enabled (the equivalent of
113113
`{ "allow": [] }`).
@@ -171,5 +171,5 @@ safely disable this rule.
171171

172172
## Further Reading
173173

174-
* [Jest docs - Setup and Teardown](https://facebook.github.io/jest/docs/en/setup-teardown.html)
175-
* [@jamiebuilds Twitter thread](https://twitter.com/jamiebuilds/status/954906997169664000)
174+
- [Jest docs - Setup and Teardown](https://facebook.github.io/jest/docs/en/setup-teardown.html)
175+
- [@jamiebuilds Twitter thread](https://twitter.com/jamiebuilds/status/954906997169664000)

docs/rules/no-test-prefixes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
Jest allows you to choose how you want to define focused and skipped tests, with
44
multiple permutations for each:
55

6-
* **only & skip:** `it.only`, `test.only`, `describe.only`, `it.skip`,
6+
- **only & skip:** `it.only`, `test.only`, `describe.only`, `it.skip`,
77
`test.skip`, `describe.skip`.
8-
* **'f' & 'x':** `fit`, `fdescribe`, `xit`, `xtest`, `xdescribe`.
8+
- **'f' & 'x':** `fit`, `fdescribe`, `xit`, `xtest`, `xdescribe`.
99

1010
This rule enforces usages from the **only & skip** list.
1111

docs/rules/prefer-expect-assertions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Ensure every test to have either `expect.assertions(<number of assertions>)` OR
77

88
This rule triggers a warning if,
99

10-
* `expect.assertions(<number of assertions>)` OR `expect.hasAssertions()` is not
10+
- `expect.assertions(<number of assertions>)` OR `expect.hasAssertions()` is not
1111
present as first statement in a test, e.g.:
1212

1313
```js
@@ -16,7 +16,7 @@ test('my test', () => {
1616
});
1717
```
1818

19-
* `expect.assertions(<number of assertions>)` is the first statement in a test
19+
- `expect.assertions(<number of assertions>)` is the first statement in a test
2020
where argument passed to `expect.assertions(<number of assertions>)` is not a
2121
valid number, e.g.:
2222

docs/rules/valid-describe.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ errors.
88
This rule validates that the second parameter of a `describe()` function is a
99
callback function. This callback function:
1010

11-
* should not be
11+
- should not be
1212
[async](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function)
13-
* should not contain any parameters
14-
* should not contain any `return` statements
13+
- should not contain any parameters
14+
- should not contain any `return` statements
1515

1616
The following `describe` function aliases are also validated:
1717

18-
* `describe`
19-
* `describe.only`
20-
* `describe.skip`
21-
* `fdescribe`
22-
* `xdescribe`
18+
- `describe`
19+
- `describe.only`
20+
- `describe.skip`
21+
- `fdescribe`
22+
- `xdescribe`
2323

2424
The following patterns are considered warnings:
2525

docs/rules/valid-expect-in-promise.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ promise
77

88
This rule triggers a warning if,
99

10-
* test is having assertions in `then` or `catch` block of a promise
11-
* and that promise is not returned from the test
10+
- test is having assertions in `then` or `catch` block of a promise
11+
- and that promise is not returned from the test
1212

1313
### Default configuration
1414

package.json

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@
44
"description": "Eslint rules for Jest",
55
"repository": "jest-community/eslint-plugin-jest",
66
"license": "MIT",
7-
"keywords": ["eslint", "eslintplugin", "eslint-plugin"],
7+
"keywords": [
8+
"eslint",
9+
"eslintplugin",
10+
"eslint-plugin"
11+
],
812
"author": {
913
"name": "Jonathan Kim",
1014
"email": "[email protected]",
1115
"url": "jkimbo.com"
1216
},
13-
"files": ["docs/", "rules/", "processors/", "index.js"],
17+
"files": [
18+
"docs/",
19+
"rules/",
20+
"processors/",
21+
"index.js"
22+
],
1423
"engines": {
1524
"node": ">= 4"
1625
},
@@ -47,8 +56,14 @@
4756
"trailingComma": "es5"
4857
},
4958
"lint-staged": {
50-
"*.js": ["eslint --fix", "git add"],
51-
"*.{md,json}": ["prettier --write", "git add"]
59+
"*.js": [
60+
"eslint --fix",
61+
"git add"
62+
],
63+
"*.{md,json}": [
64+
"prettier --write",
65+
"git add"
66+
]
5267
},
5368
"jest": {
5469
"coverageThreshold": {
@@ -67,11 +82,15 @@
6782
{
6883
"displayName": "lint",
6984
"runner": "jest-runner-eslint",
70-
"testMatch": ["<rootDir>/**/*.js"]
85+
"testMatch": [
86+
"<rootDir>/**/*.js"
87+
]
7188
}
7289
]
7390
},
7491
"commitlint": {
75-
"extends": ["@commitlint/config-conventional"]
92+
"extends": [
93+
"@commitlint/config-conventional"
94+
]
7695
}
7796
}

0 commit comments

Comments
 (0)