Skip to content

Commit

Permalink
(#190) ajustes de lint
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueAmorim20 committed Nov 25, 2023
1 parent f01781c commit 8263f7c
Show file tree
Hide file tree
Showing 26 changed files with 552 additions and 256 deletions.
4 changes: 3 additions & 1 deletion __mocks__/expo-image.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const Image = ({ source }) => <img src={source.uri} alt="mocked-image" />;
export const Image = ({ source }) => (
<img src={source.uri} alt="mocked-image" />
);
6 changes: 3 additions & 3 deletions jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'react-native-gesture-handler/jestSetup';
import "react-native-gesture-handler/jestSetup";

module.exports = {
moduleDirectories: ['node_modules', 'src'],
moduleDirectories: ["node_modules", "src"],
moduleNameMapper: {
'^expo-image$': './__mocks__/expo-image.js',
"^expo-image$": "./__mocks__/expo-image.js",
},
};

Expand Down
262 changes: 260 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"test": "jest --passWithNoTests --no-cache --runInBand --detectOpenHandles --coverage --colors",
"test": "jest --passWithNoTests --no-cache --runInBand --detectOpenHandles --coverage --colors",
"test:all": "CI=true npm run test -- --coverage",

"lint": "eslint . --fix"
},
"dependencies": {
Expand All @@ -33,7 +32,7 @@
"jest-sonar": "^0.2.16",
"jest-mock-extended": "^3.0.5",
"jest-sonar-reporter": "^2.0.0",
"ts-jest": "^29.1.1",
"ts-jest": "^29.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.72.6",
Expand All @@ -45,7 +44,9 @@
"react-native-swiper": "^1.6.0",
"react-native-toast-message": "^2.1.7",
"react-native-vector-icons": "^10.0.0",
"react-native-web": "~0.19.6"
"react-native-web": "~0.19.6",
"@shopify/flash-list": "1.4.3",
"expo-dev-client": "~2.4.12"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
Loading

0 comments on commit 8263f7c

Please sign in to comment.