-
Notifications
You must be signed in to change notification settings - Fork 103
add initial mobx infrastructure #2
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f4754f4
chore: add configs for eslint, prettier, import-sorter
jamaljsr b183036
feat: add GRPC wrapper classes for lnd & loop
jamaljsr 72de418
feat: add initial store and actions for mobx
jamaljsr a30215c
test: add initial unit tests
jamaljsr 75916b4
chore: add .env.local for environment local vars
jamaljsr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# generated proxy commands | ||
https.cert | ||
https.key | ||
|
||
# local environment vars to ignore | ||
.env*.local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"files.associations": { | ||
".commitlintrc": "jsonc", | ||
".electronbuildrc": "jsonc", | ||
".eslintrc": "jsonc", | ||
".lintstagedrc": "jsonc", | ||
".prettierrc": "jsonc", | ||
".renovaterc": "jsonc", | ||
".stylelintrc": "json", | ||
".versionrc": "json", | ||
".tsimportsorter": "json" | ||
}, | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact" | ||
], | ||
"importSorter.generalConfiguration.sortOnBeforeSave": true, | ||
"importSorter.sortConfiguration.removeUnusedImports": true, | ||
"importSorter.importStringConfiguration.tabSize": 2, | ||
"importSorter.importStringConfiguration.trailingComma": "multiLine", | ||
"importSorter.importStringConfiguration.maximumNumberOfImportExpressionsPerLine.count": 90, | ||
"importSorter.importStringConfiguration.maximumNumberOfImportExpressionsPerLine.type": "newLineEachExpressionAfterCountLimit", | ||
"importSorter.sortConfiguration.customOrderingRules.defaultNumberOfEmptyLinesAfterGroup": 0, | ||
"importSorter.sortConfiguration.customOrderingRules.defaultOrderLevel": 50, | ||
"importSorter.sortConfiguration.customOrderingRules.rules": [ | ||
{ | ||
"regex": "^(first entry ignored by the plugin. idk why)", | ||
"orderLevel": 0 | ||
}, | ||
{ | ||
"regex": "^(react)", | ||
"orderLevel": 10 | ||
}, | ||
{ | ||
"regex": "^(mobx|mobx-react|types)", | ||
"orderLevel": 20 | ||
}, | ||
{ | ||
"regex": "^[@]", | ||
"orderLevel": 30 | ||
}, | ||
{ | ||
"type": "importMember", | ||
"regex": "^$", | ||
"orderLevel": 40, | ||
"disableSort": true | ||
}, | ||
{ | ||
"regex": "^(action|api|store)", | ||
"orderLevel": 60 | ||
}, | ||
{ | ||
"regex": "^(components|resources)", | ||
"orderLevel": 70 | ||
}, | ||
{ | ||
"regex": "^[.]", | ||
"orderLevel": 80 | ||
} | ||
], | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", // Specifies the ESLint parser | ||
"extends": [ | ||
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react | ||
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from @typescript-eslint/eslint-plugin | ||
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier | ||
"plugin:prettier/recommended" // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2018, // Allows for the parsing of modern ECMAScript features | ||
"sourceType": "module", // Allows for the use of imports | ||
"ecmaFeatures": { | ||
"jsx": true // Allows for the parsing of JSX | ||
} | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" // Tells eslint-plugin-react to automatically detect the version of React to use | ||
} | ||
}, | ||
"rules": { | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
"react/prop-types": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/explicit-member-accessibility": "off", | ||
"@typescript-eslint/no-explicit-any": 0 | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"overrides": [ | ||
{ | ||
"files": [".prettierrc", ".babelrc", ".eslintrc", ".stylelintrc"], | ||
"options": { | ||
"parser": "json" | ||
} | ||
} | ||
], | ||
"printWidth": 90, | ||
"singleQuote": true, | ||
"useTabs": false, | ||
"semi": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false, | ||
"arrowParens": "avoid" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.