Skip to content

Commit

Permalink
fix(lib): fix yarn lint command
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Oct 28, 2024
1 parent 5b205df commit 0727f3d
Show file tree
Hide file tree
Showing 7 changed files with 1,663 additions and 2,742 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
babel.config.js
node_modules
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: '@react-native',
};
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
singleQuote: true,
trailingComma: 'all',
};
2 changes: 1 addition & 1 deletion example/src/components/DemoButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function DemoButton({
return (
<Pressable
onPress={() => {
if (!disabled) onPress();
if (!disabled) {onPress();}
}}
style={{
backgroundColor: color ? color : disabled ? '#FF7355' : '#F64325',
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@
"@types/react-native": "0.70.0",
"commitlint": "^17.0.2",
"del-cli": "^5.0.0",
"eslint": "^8.4.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint": "^8.19.0",
"eslint-plugin-ft-flow": "^3.0.11",
"jest": "^29.6.3",
"pod-install": "^0.1.38",
"prettier": "^2.0.5",
"prettier": "^2.8.8",
"react": "18.2.0",
"react-native": "^0.76.0",
"react-native-builder-bob": "^0.20.4",
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NativeModules, Platform } from 'react-native';
import type { Environment, Video } from './types';

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

0 comments on commit 0727f3d

Please sign in to comment.