Skip to content

Commit 46c6c1c

Browse files
authored
fix: lint error (#231)
* fix: lint error * Fix: flow error
1 parent 0a05387 commit 46c6c1c

File tree

6 files changed

+9370
-6465
lines changed

6 files changed

+9370
-6465
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ['@react-native-community'],
2+
extends: ['@react-native'],
33
};

.flowconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ node_modules/react-native/interface.js
2828
node_modules/react-native/flow/
2929

3030
[options]
31-
experimental.global_find_ref=true
3231
enums=true
3332

3433
emoji=true
@@ -79,4 +78,4 @@ untyped-import
7978
untyped-type-import
8079

8180
[version]
82-
^0.218.0
81+
^0.246.0

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ bundles/
5151

5252
android/gradle
5353
android/gradlew
54-
android/gradlew.bat
54+
android/gradlew.bat
55+
56+
.yarn

js/MaskedViewTypes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @flow
2-
import { type Node, type Element } from 'react';
2+
import { type Node } from 'react';
33
import { type ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
44

55
export type MaskedViewProps = Partial<ViewProps> &
@@ -9,7 +9,7 @@ export type MaskedViewProps = Partial<ViewProps> &
99
* Should be a React element to be rendered and applied as the
1010
* mask for the child element.
1111
*/
12-
maskElement: Element<any>,
12+
maskElement: Node,
1313
/**
1414
* Opt into software rendering to enable animated masks.
1515
*/

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
"types",
3333
"RNCMaskedView.podspec"
3434
],
35-
"dependencies": {},
3635
"devDependencies": {
37-
"@react-native-community/eslint-config": "^3.2.0",
36+
"@react-native/eslint-config": "^0.76.1",
3837
"@types/react-native": "^0.72.8",
39-
"eslint": "^7.20.0",
38+
"eslint": "8",
39+
"eslint-plugin-ft-flow": "^3.0.11",
4040
"flow-bin": "^0.246.0",
4141
"prettier": "^3.3.3",
4242
"react-native": "0.75.3",
@@ -52,5 +52,6 @@
5252
},
5353
"publishConfig": {
5454
"access": "public"
55-
}
55+
},
56+
"packageManager": "[email protected]+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca"
5657
}

0 commit comments

Comments
 (0)