Skip to content

Commit b307c24

Browse files
committed
remove flow remainings
1 parent 6b2f50d commit b307c24

7 files changed

+35
-8
lines changed

.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules
2-
flow-typed
32
build

.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "@callstack",
33
"rules": {
44
"global-require": 0,
5-
"flowtype/no-weak-types": 0,
65
"strict": [0, "global"],
76
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
87
"react-native/no-raw-text": 0

.npmignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
src
22
__tests__
3-
flow-typed
43
yarn.lock
54
.eslintcache

__tests__/getSnapshotDiffSerializer.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { snapshotDiff, getSnapshotDiffSerializer } = require('../src/index');
2-
// $FlowFixMe – wrong type declaration in flow-typed/[email protected]
2+
33
expect.addSnapshotSerializer(getSnapshotDiffSerializer());
44

55
test('serialize text diff output', () => {

__tests__/snapshotDiff.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ test('can use stablePatchmarks on diff', () => {
244244
describe('failed optional deps', () => {
245245
beforeEach(() => {
246246
jest.mock('react-test-renderer', () => {
247-
// $FlowFixMe -- this is intended.
248247
require('non-existent-module-for-testing'); // eslint-disable-line
249248
});
250249
});

__tests__/toMatchDiffSnapshot.test.js

-3
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,15 @@ beforeAll(() => {
3333
});
3434

3535
test('works with default options', () => {
36-
// $FlowFixMe
3736
expect(a).toMatchDiffSnapshot(b);
3837
});
3938

4039
[{ expand: true }, { contextLines: 0 }].forEach((options) => {
4140
test(`proxies "${Object.keys(options).join(', ')}" option(s)`, () => {
42-
// $FlowFixMe
4341
expect(a).toMatchDiffSnapshot(b, options);
4442
});
4543
});
4644

4745
test('works with custom name', () => {
48-
// $FlowFixMe
4946
expect(a).toMatchDiffSnapshot(b, {}, 'slim');
5047
});

yarn.lock

+34
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,14 @@
15491549
"@typescript-eslint/typescript-estree" "5.33.1"
15501550
debug "^4.3.4"
15511551

1552+
"@typescript-eslint/[email protected]":
1553+
version "5.33.1"
1554+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.33.1.tgz#8d31553e1b874210018ca069b3d192c6d23bc493"
1555+
integrity sha512-8ibcZSqy4c5m69QpzJn8XQq9NnqAToC8OdH/W6IXPXv83vRyEDPYLdjAlUx8h/rbusq6MkW4YdQzURGOqsn3CA==
1556+
dependencies:
1557+
"@typescript-eslint/types" "5.33.1"
1558+
"@typescript-eslint/visitor-keys" "5.33.1"
1559+
15521560
"@typescript-eslint/[email protected]":
15531561
version "5.35.1"
15541562
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.35.1.tgz#ccb69d54b7fd0f2d0226a11a75a8f311f525ff9e"
@@ -1566,11 +1574,29 @@
15661574
debug "^4.3.4"
15671575
tsutils "^3.21.0"
15681576

1577+
"@typescript-eslint/[email protected]":
1578+
version "5.33.1"
1579+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.33.1.tgz#3faef41793d527a519e19ab2747c12d6f3741ff7"
1580+
integrity sha512-7K6MoQPQh6WVEkMrMW5QOA5FO+BOwzHSNd0j3+BlBwd6vtzfZceJ8xJ7Um2XDi/O3umS8/qDX6jdy2i7CijkwQ==
1581+
15691582
"@typescript-eslint/[email protected]":
15701583
version "5.35.1"
15711584
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.35.1.tgz#af355fe52a0cc88301e889bc4ada72f279b63d61"
15721585
integrity sha512-FDaujtsH07VHzG0gQ6NDkVVhi1+rhq0qEvzHdJAQjysN+LHDCKDKCBRlZFFE0ec0jKxiv0hN63SNfExy0KrbQQ==
15731586

1587+
"@typescript-eslint/[email protected]":
1588+
version "5.33.1"
1589+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.33.1.tgz#a573bd360790afdcba80844e962d8b2031984f34"
1590+
integrity sha512-JOAzJ4pJ+tHzA2pgsWQi4804XisPHOtbvwUyqsuuq8+y5B5GMZs7lI1xDWs6V2d7gE/Ez5bTGojSK12+IIPtXA==
1591+
dependencies:
1592+
"@typescript-eslint/types" "5.33.1"
1593+
"@typescript-eslint/visitor-keys" "5.33.1"
1594+
debug "^4.3.4"
1595+
globby "^11.1.0"
1596+
is-glob "^4.0.3"
1597+
semver "^7.3.7"
1598+
tsutils "^3.21.0"
1599+
15741600
"@typescript-eslint/[email protected]":
15751601
version "5.35.1"
15761602
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.35.1.tgz#db878a39a0dbdc9bb133f11cdad451770bfba211"
@@ -1596,6 +1622,14 @@
15961622
eslint-scope "^5.1.1"
15971623
eslint-utils "^3.0.0"
15981624

1625+
"@typescript-eslint/[email protected]":
1626+
version "5.33.1"
1627+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.33.1.tgz#0155c7571c8cd08956580b880aea327d5c34a18b"
1628+
integrity sha512-nwIxOK8Z2MPWltLKMLOEZwmfBZReqUdbEoHQXeCpa+sRVARe5twpJGHCB4dk9903Yaf0nMAlGbQfaAH92F60eg==
1629+
dependencies:
1630+
"@typescript-eslint/types" "5.33.1"
1631+
eslint-visitor-keys "^3.3.0"
1632+
15991633
"@typescript-eslint/[email protected]":
16001634
version "5.35.1"
16011635
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.35.1.tgz#285e9e34aed7c876f16ff646a3984010035898e6"

0 commit comments

Comments
 (0)