Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean repo with linter #89

Merged
merged 5 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
src/components/charts
setup.js
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"],
"ecmaFeatures": {
"jsx": true
}
Expand All @@ -36,7 +35,8 @@
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
]
],
"react/prop-types": "off"
},
"ignorePatterns": ["*/*.config.js", "*.config.js"],
"root": true
Expand Down
1 change: 1 addition & 0 deletions Storybook/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
Expand Down
3 changes: 1 addition & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ const jestConfig: JestConfigWithTsJest = {
testMatch: ['**/?(*.)test.(ts|tsx)'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
transformIgnorePatterns: [
'node_modules/(?!(@react-native|react-native|react-native-drop-shadow)/)',
'node_modules/(?!(@react-native|react-native|react-native-drop-shadow|@gorhom/bottom-sheet|react-native-reanimated)/)',
],
moduleDirectories: ['node_modules', 'src'],
setupFiles: [
'./node_modules/react-native-gesture-handler/jestSetup.js',
'./node_modules/react-native/jest/setup.js',
'./setup.js',
],
};

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"ios",
"cpp",
"*.podspec",
"!lib/typescript/example",
"!ios/build",
"!android/build",
"!android/gradle",
Expand All @@ -27,8 +26,9 @@
"scripts": {
"test": "jest",
"tsc": "tsc --project tsconfig.build.json",
"lint:check": "prettier --check .",
"lint:fix": "prettier --write ."
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
"type:check": "tsc"
},
"keywords": [
"react-native",
Expand Down
1 change: 0 additions & 1 deletion setup.js

This file was deleted.

38 changes: 22 additions & 16 deletions src/__tests__/components/__snapshots__/ActionCard.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,17 @@ exports[`MODULE | ActionCard component renders correctly 1`] = `
>
<Text
style={
{
"color": "black",
"fontFamily": "PublicSans-Regular",
"fontSize": 16,
"lineHeight": 19,
"paddingBottom": 16,
"textAlign": "center",
}
[
{
"color": "black",
"paddingBottom": 16,
"textAlign": "center",
},
{
"fontFamily": "PublicSans-Regular",
"fontSize": 14,
},
]
}
/>
<View>
Expand Down Expand Up @@ -174,14 +177,17 @@ exports[`MODULE | ActionCard component renders correctly in disabled state 1`] =
>
<Text
style={
{
"color": "black",
"fontFamily": "PublicSans-Regular",
"fontSize": 16,
"lineHeight": 19,
"paddingBottom": 16,
"textAlign": "center",
}
[
{
"color": "black",
"paddingBottom": 16,
"textAlign": "center",
},
{
"fontFamily": "PublicSans-Regular",
"fontSize": 14,
},
]
}
/>
<View>
Expand Down
Loading
Loading