Skip to content

Commit 520ad49

Browse files
committed
fix(client): eslint and prettier fix
1 parent c198846 commit 520ad49

8 files changed

Lines changed: 2649 additions & 24 deletions

File tree

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ root = true
99
indent_style = space
1010
indent_size = 2
1111

12-
end_of_line = lf
12+
end_of_line = 'auto'
1313
charset = utf-8
1414
trim_trailing_whitespace = true
1515
insert_final_newline = true

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "extends": ["react-app", "prettier"], "plugins": ["prettier"], "rules": { "prettier/prettier": ["error", { "endOfLine": "auto" }] } }

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@
5858
"dotenv-cli": "^5.0.0",
5959
"eslint": "^7.2.0",
6060
"eslint-config-prettier": "^6.11.0",
61+
"eslint-config-react-app": "^7.0.0",
6162
"eslint-plugin-prettier": "^3.1.3",
6263
"husky": "^4.2.5",
6364
"jest": "^26.0.1",
65+
"metro-react-native-babel-preset": "^0.69.1",
6466
"pod-install": "^0.1.0",
6567
"prettier": "^2.0.5",
6668
"react": "16.11.0",

src/CurrencyInput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ export default React.forwardRef<TextInput, CurrencyInputProps>((props, ref) => {
158158
: formattedValue;
159159
}, [formattedValue, prefix, signPosition, startingWithSign, suffix]);
160160

161-
const DefaultComponent = InputComponent ? InputComponent : TextInput
161+
const DefaultComponent = InputComponent ? InputComponent : TextInput;
162+
162163
return (
163164
<DefaultComponent
164165
keyboardType="numeric"

src/hooks/useBlink.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable import/no-anonymous-default-export */
12
import * as React from 'react';
23
import type { ViewProps } from 'react-native';
34
export interface BlinkProps extends ViewProps {

src/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface CurrencyInputProps extends Omit<TextInputProps, 'value'> {
4848
* Character for thousands delimiter.
4949
*/
5050
InputComponent?: Function;
51-
51+
5252
/**
5353
* Character for thousands delimiter.
5454
*/

src/utils/formatNumber.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable import/no-anonymous-default-export */
12
import type { FormatNumberOptions } from '../props';
23

34
interface AddSignPrefixAndSuffixProps {

0 commit comments

Comments
 (0)