react-native-language-select
Advanced tools
Comparing version
@@ -7,3 +7,2 @@ module.exports = { | ||
"plugin:@typescript-eslint/recommended", | ||
"@react-native-community", | ||
"prettier", | ||
@@ -17,2 +16,4 @@ ], | ||
"*.png", | ||
"*.jpg", | ||
"*.jpeg", | ||
"package.json", | ||
@@ -30,3 +31,2 @@ "package-lock.json", | ||
"promise", | ||
"jest", | ||
"unused-imports", | ||
@@ -37,3 +37,2 @@ ], | ||
es2021: true, | ||
"jest/globals": true, | ||
"react-native/react-native": true, | ||
@@ -84,3 +83,5 @@ }, | ||
json: "always", | ||
jpeg: "always", | ||
constant: "always", | ||
events: "always", | ||
}, | ||
@@ -118,3 +119,5 @@ ], | ||
"react-hooks/rules-of-hooks": 2, | ||
camelcase: 2, | ||
"unused-imports/no-unused-imports": 2, | ||
"unused-imports/no-unused-vars": 2, | ||
camelcase: "off", | ||
"prefer-destructuring": 2, | ||
@@ -121,0 +124,0 @@ "no-nested-ternary": 2, |
@@ -1,4 +0,2 @@ | ||
import { StyleSheet, Dimensions, ViewStyle, TextStyle } from "react-native"; | ||
const windowWidth = Dimensions.get("window").width; | ||
const windowHeight = Dimensions.get("window").height; | ||
import { StyleSheet, ViewStyle, TextStyle } from "react-native"; | ||
@@ -40,4 +38,3 @@ export const _itemContainer = ( | ||
height: 20, | ||
color: "red", | ||
}, | ||
}); |
@@ -1,6 +0,3 @@ | ||
import { Dimensions, StyleSheet } from "react-native"; | ||
import { StyleSheet } from "react-native"; | ||
const windowWidth = Dimensions.get("window").width; | ||
const windowHeight = Dimensions.get("window").height; | ||
export const _container = (width: number, height: number) => ({ | ||
@@ -7,0 +4,0 @@ width: width, |
{ | ||
"name": "react-native-language-select", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Useful and customizable language picker", | ||
@@ -27,33 +27,58 @@ "main": "./build/dist/LanguagePicker.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "^15.0.0", | ||
"@commitlint/config-conventional": "^15.0.0", | ||
"@react-native-community/eslint-config": "^2.0.0", | ||
"@types/react": "^16.9.53", | ||
"@types/react-native": "^0.63.25", | ||
"eslint": "^7.11.0", | ||
"eslint-config-airbnb": "^18.2.0", | ||
"cpx": "^1.5.0", | ||
"@babel/core": "^7.20.0", | ||
"@babel/runtime": "^7.20.0", | ||
"@babel/preset-env": "^7.20.0", | ||
"@commitlint/cli": "^17.0.3", | ||
"@commitlint/config-conventional": "^17.0.3", | ||
"@types/react-native": "0.70.7", | ||
"@typescript-eslint/eslint-plugin": "^6.4.0", | ||
"@typescript-eslint/parser": "^6.4.0", | ||
"@tsconfig/react-native": "^2.0.2", | ||
"@types/react": "^18.0.24", | ||
"babel-plugin-module-resolver": "^4.1.0", | ||
"eslint": "^8.33.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-eslint-comments": "3.2.0", | ||
"eslint-plugin-flowtype": "^8.0.3", | ||
"eslint-plugin-ft-flow": "2.0.3", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-jest": "27.2.3", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"eslint-plugin-promise": "6.1.1", | ||
"eslint-plugin-react": "7.30.1", | ||
"eslint-plugin-react-hooks": "4.6.0", | ||
"eslint-plugin-react-native": "4.0.0", | ||
"eslint-plugin-unused-imports": "^3.0.0", | ||
"husky": "^8.0.0", | ||
"lint-staged": "^10.4.2", | ||
"npm-post-install": "0.0.2", | ||
"prettier": "^2.1.2", | ||
"prettier-format": "^3.0.3", | ||
"react-native-typescript-transformer": "^1.2.13", | ||
"typescript": "^4.0.3" | ||
"metro-react-native-babel-preset": "^0.73.7", | ||
"prettier": "^2.7.1", | ||
"react-native-codegen": "0.71.5", | ||
"typescript": "^5.1.6" | ||
}, | ||
"scripts": { | ||
"build": "cd lib && tsc && cp ../package.json ../build/dist/ && Echo Build completed!", | ||
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"", | ||
"lint": "tslint -p tsconfig.json", | ||
"version": "npm run format && git add -A src", | ||
"postversion": "git push && git push --tags", | ||
"prettier": "cd lib && npx prettier --write . && git add .", | ||
"prepare": "husky install", | ||
"build": "cd lib && tsc && npm run copy:assets && npm run copy:package", | ||
"copy:assets": "cpx 'lib/local-assets/**' './build/dist/local-assets'", | ||
"copy:package": "cpx '../package.json' '../build/dist/'", | ||
"android": "npx react-native run-android", | ||
"ios": "npx react-native run-ios", | ||
"start": "react-native start --reset-cache", | ||
"husky:setup": "npx husky-init && npm run husky:commitlint && npm run husky:prettier && npm run husky:lint", | ||
"husky:commitlint": "npx husky add .husky/commit-msg 'npx --no-install commitlint --edit'", | ||
"husky:prettier": "npx husky set .husky/pre-commit 'npm run prettier'", | ||
"husky:lint": "npx husky add .husky/pre-commit 'npm run lint'" | ||
"husky:lint": "npx husky add .husky/pre-commit 'npm run lint'", | ||
"clean-up": "rm -rf .git && rm -rf ./assets && git init && npm run husky:setup", | ||
"clean:android": "cd android && ./gradlew clean", | ||
"debug:android": "cd android && ./gradlew assembleDebug", | ||
"release:android": "cd android && ./gradlew assembleRelease", | ||
"release:play": "cd android && ./gradlew bundleRelease", | ||
"test:apk": "react-native run-android --variant=release", | ||
"prettier": "cd src && npx prettier --write . && git add .", | ||
"prepare": "husky install", | ||
"test": "jest", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx" | ||
}, | ||
"dependencies": { | ||
"@freakycoder/react-native-bounceable": ">= ^1.0.3" | ||
"@freakycoder/react-native-bounceable": "^1.0.3" | ||
} | ||
} |
{ | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"module": "es6", | ||
"lib": ["es6"], | ||
"module": "esnext", | ||
"lib": ["esnext"], | ||
"allowJs": true, | ||
"jsx": "react-native", | ||
"noImplicitAny": false, | ||
"incremental": true /* Enable incremental compilation */, | ||
"isolatedModules": true, | ||
"noEmit": true, | ||
"isolatedModules": false, | ||
"strict": true, | ||
"moduleResolution": "node", | ||
"baseUrl": "./", | ||
"outDir": "build/dist", | ||
"noEmitHelpers": true, | ||
"alwaysStrict": true, | ||
"strictFunctionTypes": true, | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
// ? Custom ones | ||
"skipLibCheck": true, | ||
"resolveJsonModule": true, | ||
"importHelpers": false, | ||
"experimentalDecorators": true, | ||
"strictPropertyInitialization": false, | ||
"allowSyntheticDefaultImports": true, | ||
"noImplicitAny": true, | ||
"strictNullChecks": true, | ||
"skipDefaultLibCheck": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"typeRoots": ["./node_modules/@types", "./@types"], | ||
"declaration": true /* Generates corresponding '.d.ts' file. */, | ||
"sourceMap": true /* Generates corresponding '.map' file. */ | ||
"strictFunctionTypes": true, | ||
"strictPropertyInitialization": true, | ||
"noImplicitThis": true, | ||
"alwaysStrict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noImplicitReturns": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"forceConsistentCasingInFileNames": true, | ||
// ? Babel Plugin Module Resolver | ||
"baseUrl": "./src", | ||
"paths": { | ||
"@shared-components/*": ["./shared/components/*"], | ||
"@shared-constants": ["./shared/constants"], | ||
"@shared-constants/*": ["./shared/constants/*"], | ||
"@localization": ["./shared/localization"], | ||
"@font-size": ["./shared/theme/font-size"], | ||
"@api": ["./services/api/index"], | ||
"@fonts": ["./shared/theme/fonts/index"], | ||
"@colors": ["./shared/theme/colors"], | ||
"@theme/*": ["./shared/theme/*"], | ||
"@services/*": ["./services/*"], | ||
"@screens/*": ["./screens/*"], | ||
"@utils": ["./utils/"], | ||
"@assets": ["./assets/"], | ||
"@local-storage": ["./services/local-storage"], | ||
"@zustand": ["./services/zustand/store"] | ||
} | ||
}, | ||
"exclude": [ | ||
"example", | ||
"example-manual-state", | ||
"node_modules", | ||
@@ -35,0 +50,0 @@ "babel.config.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1
-50%274310
-26.11%30
114.29%31
-26.19%376
-25.69%