Skip to content

Commit 9c2072d

Browse files
chore: update dependencies + run prettier on codebase (#234)
BREAKING CHANGE: Minimum node version required is v10.22.1 BREAKING CHANGE: Minimum ESLint version required is 7.5.0. Support for ESLint between v5 and v7.4 has been dropped
1 parent 4b7300e commit 9c2072d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+235
-230
lines changed

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
singleQuote: true,
3+
};

.prettierrc.json

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

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ env:
44
global:
55
- FORCE_COLOR=true
66
matrix:
7-
- ESLINT=5
8-
- ESLINT=6
7+
- ESLINT=7.5
98
- ESLINT=7
109

1110
node_js:
12-
- 10.12
11+
- 10.22.1
1312
- 10
1413
- 12.0
1514
- 12

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

docs/rules/await-async-utils.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test('something correctly', async () => {
5454
// `then` chained method is correct
5555
waitFor(() => {}, { timeout: 100 })
5656
.then(() => console.log('DOM changed!'))
57-
.catch(err => console.log(`Error you need to deal with: ${err}`));
57+
.catch((err) => console.log(`Error you need to deal with: ${err}`));
5858

5959
// return the promise within a function is correct too!
6060
const makeCustomWait = () =>

docs/rules/consistent-data-testid.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ Ensure `data-testid` values match a provided regex. This rule is un-opinionated,
99
Examples of **incorrect** code for this rule:
1010

1111
```js
12-
const foo = props => <div data-testid="my-test-id">...</div>;
13-
const foo = props => <div data-testid="myTestId">...</div>;
14-
const foo = props => <div data-testid="TestIdEXAMPLE">...</div>;
12+
const foo = (props) => <div data-testid="my-test-id">...</div>;
13+
const foo = (props) => <div data-testid="myTestId">...</div>;
14+
const foo = (props) => <div data-testid="TestIdEXAMPLE">...</div>;
1515
```
1616

1717
Examples of **correct** code for this rule:
1818

1919
```js
20-
const foo = props => <div data-testid="TestId__EXAMPLE">...</div>;
21-
const bar = props => <div data-testid="TestId">...</div>;
22-
const baz = props => <div>...</div>;
20+
const foo = (props) => <div data-testid="TestId__EXAMPLE">...</div>;
21+
const bar = (props) => <div data-testid="TestId">...</div>;
22+
const baz = (props) => <div>...</div>;
2323
```
2424

2525
## Options

docs/rules/no-multiple-assertions-wait-for.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const foo = async () => {
1717
});
1818

1919
// or
20-
await waitFor(function() {
20+
await waitFor(function () {
2121
expect(a).toEqual('a');
2222
expect(b).toEqual('b');
2323
});
@@ -32,7 +32,7 @@ const foo = async () => {
3232
expect(b).toEqual('b');
3333

3434
// or
35-
await waitFor(function() {
35+
await waitFor(function () {
3636
expect(a).toEqual('a');
3737
});
3838
expect(b).toEqual('b');

docs/rules/no-wait-for-empty-callback.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ Examples of **incorrect** code for this rule:
1111
```js
1212
const foo = async () => {
1313
await waitFor(() => {});
14-
await waitFor(function() {});
14+
await waitFor(function () {});
1515
await waitFor(noop);
1616

1717
await waitForElementToBeRemoved(() => {});
18-
await waitForElementToBeRemoved(function() {});
18+
await waitForElementToBeRemoved(function () {});
1919
await waitForElementToBeRemoved(noop);
2020
};
2121
```

docs/rules/prefer-find-by.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ await waitForElementToBeRemoved(() => queryAllByLabel('my label'));
4141
await waitForElementToBeRemoved(document.querySelector('foo'));
4242

4343
// using waitFor with a function
44-
await waitFor(function() {
44+
await waitFor(function () {
4545
foo();
4646
return getByText('name');
4747
});

lib/node-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export function isRenderFunction(
173173
): boolean {
174174
// returns true for `render` and e.g. `customRenderFn`
175175
// as well as `someLib.render` and `someUtils.customRenderFn`
176-
return renderFunctions.some(name => {
176+
return renderFunctions.some((name) => {
177177
return (
178178
(isIdentifier(callNode.callee) && name === callNode.callee.name) ||
179179
(isMemberExpression(callNode.callee) &&

0 commit comments

Comments
 (0)