Skip to content

Commit

Permalink
refactor: new structure (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Krunal Kevadiya <krunal.k@simformsolutions.com>
  • Loading branch information
Krunal-Kevadiya and Krunal-K-SimformSolutions committed Feb 12, 2024
1 parent 6423704 commit b062fbd
Show file tree
Hide file tree
Showing 394 changed files with 64,962 additions and 43,235 deletions.
File renamed without changes.
8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": ["@react-native-community", "prettier"],
"root": true,
"rules": {
"prettier/prettier": [
"error",
Expand All @@ -11,12 +12,17 @@
"useTabs": false
}
],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-bitwise": 0,
"prefer-const": "warn",
"no-console": ["error", { "allow": ["warn", "error"] }]
},
"globals": {
"JSX": "readonly"
"JSX": "readonly"
},
"env": {
"jest": true
},
"plugins": ["prettier"]
}
11 changes: 0 additions & 11 deletions .eslintrc.js

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "🚀 Publish"

on:
push:
branches:
- main

jobs:
release:
name: 🚀 Publish
runs-on: macos-11
steps:
- name: 📚 checkout
uses: actions/checkout@v2.4.2
- name: 🟢 node
uses: actions/setup-node@v3.3.0
with:
node-version: 16
registry-url: https://registry.npmjs.org
- name: 🚀 Build & Publish
run: yarn install && yarn build && yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
12 changes: 5 additions & 7 deletions .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,13 @@ build/
.gradle
local.properties
*.iml
*.hprof
/android/gradlew
/android/gradlew.bat
/android/gradle/

# node.js
#
node_modules/
npm-debug.log
yarn-error.log
yarn.lock

# BUCK
buck-out/
Expand All @@ -59,8 +56,9 @@ buck-out/
# Bundle artifact
*.jsbundle

# CocoaPods
# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/

# Library
lib/
# generated
lib
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/pre-push

This file was deleted.

77 changes: 11 additions & 66 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,66 +1,11 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof
/android/gradlew
/android/gradlew.bat
/android/gradle/

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Bundle artifact
*.jsbundle

# CocoaPods
/ios/Pods/

# Library
example/
.github/
.husky/
RNCustomStyleSheet/
assets/
.eslintignore
.eslintrc
CONTRIBUTING.md
babel.config.js
.buckconfig
jest-setup.js
docs/
14 changes: 5 additions & 9 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
module.exports = {
useTabs: false,
printWidth: 120,
tabWidth: 2,
singleQuote: true,
trailingComma: 'none',
semi: true,
quoteProps: 'as-needed',
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: true,
arrowParens: 'always',
}
singleQuote: true,
trailingComma: 'es5'
};
33 changes: 18 additions & 15 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"files.autoSave": "onFocusChange",
"eslint.alwaysShowStatus": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"javascript.validate.enable": true,
"typescript.validate.enable": true,
"json.format.enable": true,
"window.zoomLevel": 0,
"window.zoomLevel": 0.8,
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
Expand Down Expand Up @@ -50,30 +54,29 @@
"*.svg": "html"
},
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.fixAll.eslint": true
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit"
},
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#2f7c47",
"activityBar.activeBorder": "#422c74",
"activityBar.background": "#2f7c47",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#422c74",
"activityBarBadge.foreground": "#e7e7e7",
"sash.hoverBorder": "#2f7c47",
"statusBar.background": "#215732",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#2f7c47",
"statusBarItem.remoteBackground": "#215732",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#215732",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#21573299",
"titleBar.inactiveForeground": "#e7e7e799",
"commandCenter.border": "#e7e7e799"
"editorGroup.border": "#2f7c47",
"panel.border": "#2f7c47",
"sideBar.border": "#2f7c47",
"statusBar.border": "#215732",
"statusBar.debuggingBackground": "#572146",
"statusBar.debuggingBorder": "#572146",
"tab.activeBorder": "#2f7c47",
"titleBar.border": "#215732"
},
"peacock.color": "#215732",
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreview": true,
"workbench.editor.enablePreviewFromQuickOpen": false
}
Loading

0 comments on commit b062fbd

Please sign in to comment.