Skip to content

Commit 0727f3d

Browse files
committed
fix(lib): fix yarn lint command
1 parent 5b205df commit 0727f3d

File tree

7 files changed

+1663
-2742
lines changed

7 files changed

+1663
-2742
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
babel.config.js
2+
node_modules

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native',
4+
};

.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
bracketSameLine: true,
4+
bracketSpacing: false,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
};

example/src/components/DemoButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function DemoButton({
2222
return (
2323
<Pressable
2424
onPress={() => {
25-
if (!disabled) onPress();
25+
if (!disabled) {onPress();}
2626
}}
2727
style={{
2828
backgroundColor: color ? color : disabled ? '#FF7355' : '#F64325',

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,11 @@
7171
"@types/react-native": "0.70.0",
7272
"commitlint": "^17.0.2",
7373
"del-cli": "^5.0.0",
74-
"eslint": "^8.4.1",
75-
"eslint-config-prettier": "^8.5.0",
76-
"eslint-plugin-prettier": "^4.0.0",
74+
"eslint": "^8.19.0",
75+
"eslint-plugin-ft-flow": "^3.0.11",
7776
"jest": "^29.6.3",
7877
"pod-install": "^0.1.38",
79-
"prettier": "^2.0.5",
78+
"prettier": "^2.8.8",
8079
"react": "18.2.0",
8180
"react-native": "^0.76.0",
8281
"react-native-builder-bob": "^0.20.4",

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { NativeModules, Platform } from 'react-native';
22
import type { Environment, Video } from './types';
33

44
const LINKING_ERROR =
5-
`The package '@api.video/react-native-video-uploader' doesn't seem to be linked. Make sure: \n\n` +
5+
'The package \'@api.video/react-native-video-uploader\' doesn\'t seem to be linked. Make sure: \n\n' +
66
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
77
'- You rebuilt the app after installing the package\n' +
88
'- You are not using Expo Go\n';

0 commit comments

Comments
 (0)