-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/initial functionality #1
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
18 commits
Select commit
Hold shift + click to select a range
28636b3
chore: add initial functionality
erik-slovak 0f358b0
chore: add missing files
erik-slovak dbc6e45
chore: remove codecov from github workflows due to missing tests
erik-slovak 73d5763
style: add missing ending line
rostislav-simonik ee474d9
style: add missing ending line
rostislav-simonik 5ce0b0d
style: add missing ending line
rostislav-simonik abe70ef
chore: add eslint plugins as peer dependencies
erik-slovak d1ec146
style: add missing ending line
rostislav-simonik 379fd43
Merge branch 'feature/initial-functionality' of github.com:technology…
erik-slovak f243c85
style: add missing ending line
rostislav-simonik 64e8937
Merge branch 'feature/initial-functionality' of github.com:technology…
erik-slovak 42dd8ac
style: add missing ending line
rostislav-simonik ae4d338
chore: remove duplicate peer dependencies that are in txo-typescript …
erik-slovak 0fdb4a2
chore: remove unused boilerplate version scripts
erik-slovak 9d99d9a
Merge branch 'feature/initial-functionality' of github.com:technology…
erik-slovak 3c9a143
chore: remove unused jest config
erik-slovak 00dee92
chore: update yarn lock
erik-slovak 676c336
chore: remove comments and replace with disable line
erik-slovak 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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # EditorConfig is awesome: http://EditorConfig.org | ||
|
|
||
| # top-most EditorConfig file | ||
| root = true | ||
|
|
||
| # Unix-style newlines with a newline ending every file | ||
| [*] | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| indent_style = space | ||
| indent_size = 2 | ||
| charset = utf-8 | ||
| trim_trailing_whitespace = true | ||
|
|
||
|
|
||
| [*.gradle] | ||
| indent_size = 4 |
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,4 @@ | ||
| commitlint.config.js | ||
| jest.config.js | ||
| lib | ||
| release.config.js |
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,9 @@ | ||
| { | ||
| "extends": "./src/index.js", | ||
| "rules": { | ||
| "prefer-destructuring": "off" | ||
| }, | ||
| "parserOptions": { | ||
| "createDefaultProgram": 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| *.pbxproj -text |
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,21 @@ | ||
| name: 'Code style' | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - synchronize | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Lint | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| cache: 'yarn' | ||
| node-version-file: '.nvmrc' | ||
| - run: yarn install --frozen-lockfile | ||
| - run: yarn lint |
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,17 @@ | ||
| name: "PR" | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: | ||
| - opened | ||
| - edited | ||
| - synchronize | ||
|
|
||
| jobs: | ||
| main: | ||
| name: Ensure semantic PR title | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: amannn/action-semantic-pull-request@v4 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,26 @@ | ||
| name: Release | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| release: | ||
| name: Release | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| cache: 'yarn' | ||
| node-version-file: '.nvmrc' | ||
| - run: yarn install --frozen-lockfile | ||
| - run: yarn test | ||
| - run: yarn semantic-release | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELASE_GITHUB_TOKEN }} | ||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| SLACK_WEBHOOK: ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }} |
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,21 @@ | ||
| name: 'Test' | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - synchronize | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Unit tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| cache: 'yarn' | ||
| node-version-file: '.nvmrc' | ||
| - run: yarn install --frozen-lockfile | ||
| - run: yarn test |
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,13 @@ | ||
| # OSX | ||
| # | ||
| .DS_Store | ||
| .npmrc | ||
|
|
||
| # node.js | ||
| # | ||
| node_modules/ | ||
| .eslintcache | ||
| npm-debug.log | ||
| yarn-error.log | ||
| lib | ||
| coverage |
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 @@ | ||
| _ |
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,4 @@ | ||
| #!/bin/sh | ||
| . "$(dirname "$0")/_/husky.sh" | ||
|
|
||
| yarn commitlint --edit "${1}" |
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,4 @@ | ||
| #!/bin/sh | ||
| . "$(dirname "$0")/_/husky.sh" | ||
|
|
||
| yarn git-hook |
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,4 @@ | ||
| #!/bin/sh | ||
| . "$(dirname "$0")/_/husky.sh" | ||
|
|
||
| yarn commitlint --edit || exec < /dev/tty && yarn cz --hook > /dev/null 2>&1 || 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "*.{js,jsx,ts,tsx}": "eslint --cache --format=node_modules/eslint-formatter-pretty --ext .ts,.tsx" | ||
| } |
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,15 @@ | ||
| .github | ||
| .husky | ||
| .vscode | ||
| node_modules | ||
| test | ||
| .editorconfig | ||
| .eslintrc.json | ||
| .gitattributes | ||
| .gitignore | ||
| .nvmrc | ||
| commitlint.config.js | ||
| release.config.js | ||
| renovate.json | ||
| tsconfig.json | ||
| yarn.lock |
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 @@ | ||
| lts/gallium |
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,3 @@ | ||
| { | ||
| "typescript.tsdk": "node_modules/typescript/lib" | ||
| } |
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 @@ | ||
| {} |
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,5 @@ | ||
|  | ||
|  | ||
| # Eslint typescript react config # | ||
|
|
||
| Eslint typescript react config |
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,3 @@ | ||
| - No rule found for | ||
| // export type GenericDangleError = Generic< number > | ||
| export type GenericDangleOk = Generic<number> |
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 @@ | ||
| /** | ||
| * @Author: Rostislav Simonik <rostislav.simonik@technologystudio.sk> | ||
| * @Date: 2022-08-21T12:08:59+02:00 | ||
| * @Copyright: Technology Studio | ||
| **/ | ||
|
|
||
| const automaticCommitPattern = /^chore\(release\):.*\[skip ci]/ | ||
|
|
||
| const commitlintConfig = { | ||
| extends: [ | ||
| '@commitlint/config-conventional', | ||
| ], | ||
|
|
||
| ignores: [ | ||
| commitMsg => automaticCommitPattern.test(commitMsg), | ||
| ], | ||
| } | ||
|
|
||
| module.exports = commitlintConfig |
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,69 @@ | ||
| { | ||
| "name": "eslint-config-txo-typescript-react", | ||
| "version": "1.0.0", | ||
| "description": "Technology Studio - Eslint typescript react config", | ||
| "main": "src/index.js", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/technology-studio/eslint-config-txo-typescript-react.git" | ||
| }, | ||
| "author": { | ||
| "name": "Technology Studio", | ||
| "email": "npm@technologystudio.sk", | ||
| "url": "https://github.com/technology-studio/" | ||
| }, | ||
| "license": "MIT", | ||
| "private": false, | ||
| "scripts": { | ||
| "lint": "eslint --format=node_modules/eslint-formatter-pretty --ext .jsx,.js,.ts,.tsx .", | ||
| "fixcode": "eslint --format=node_modules/eslint-formatter-pretty --ext .jsx,.js,.ts,.tsx . --fix", | ||
| "git-hook": "yarn -s lint-staged", | ||
| "test": "yarn lint", | ||
| "prepare": "husky install", | ||
| "sanity": "yarn lint && tsc --noEmit && yarn outdated && echo 'success'", | ||
| "semantic-release": "semantic-release" | ||
| }, | ||
| "dependencies": { | ||
| "eslint-config-txo-typescript": "^3.1.24" | ||
| }, | ||
| "peerDependencies": { | ||
| "eslint-plugin-jsx-a11y": "^6.6.1", | ||
| "eslint-plugin-react": "^7.31.8", | ||
| "eslint-plugin-react-hooks": "^4.6.0", | ||
| "eslint-plugin-redux-saga": "^1.3.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@commitlint/cli": "^17.1.2", | ||
| "@commitlint/config-conventional": "^17.1.0", | ||
| "@semantic-release/changelog": "^6.0.1", | ||
| "@semantic-release/git": "^10.0.1", | ||
| "@types/react": "^18.0.21", | ||
| "@typescript-eslint/eslint-plugin": "^5.38.1", | ||
| "@typescript-eslint/parser": "^5.38.1", | ||
| "commitizen": "^4.2.5", | ||
| "eslint": "^8.24.0", | ||
| "eslint-formatter-pretty": "^4.1.0", | ||
| "eslint-plugin-eslint-comments": "^3.2.0", | ||
| "eslint-plugin-import": "^2.26.0", | ||
| "eslint-plugin-jest": "^27.0.4", | ||
| "eslint-plugin-jsx-a11y": "^6.6.1", | ||
| "eslint-plugin-n": "^15.3.0", | ||
| "eslint-plugin-promise": "^6.0.1", | ||
| "eslint-plugin-react": "^7.31.8", | ||
| "eslint-plugin-react-hooks": "^4.6.0", | ||
| "eslint-plugin-redux-saga": "^1.3.2", | ||
rostislav-simonik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "husky": "^8.0.1", | ||
| "jest": "^29.1.1", | ||
rostislav-simonik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "lint-staged": "^13.0.3", | ||
| "react": "^18.2.0", | ||
| "redux-saga": "^1.2.1", | ||
| "semantic-release": "^19.0.5", | ||
| "semantic-release-slack-bot": "^3.5.3", | ||
| "typescript": "^4.8.4" | ||
| }, | ||
| "config": { | ||
| "commitizen": { | ||
| "path": "./node_modules/cz-conventional-changelog" | ||
| } | ||
| } | ||
| } | ||
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,53 @@ | ||
| /** | ||
| * @Author: Rostislav Simonik <rostislav.simonik@technologystudio.sk> | ||
| * @Date: 2022-08-21T13:08:66+02:00 | ||
| * @Copyright: Technology Studio | ||
| **/ | ||
|
|
||
| module.exports = { | ||
| branches: [ | ||
| 'main', | ||
| ], | ||
| plugins: [ | ||
| ['@semantic-release/commit-analyzer', { | ||
| present: 'conventionalcommits', | ||
| releaseRules: [ | ||
| { breaking: true, release: 'major' }, | ||
| { revert: true, release: 'patch' }, | ||
| { type: 'docs', release: 'patch' }, | ||
| { type: 'feat', release: 'minor' }, | ||
| { type: 'fix', release: 'patch' }, | ||
| { type: 'perf', release: 'patch' }, | ||
| { type: 'refactor', release: 'patch' }, | ||
| { scope: 'no-release', release: false }, | ||
| ], | ||
| }], | ||
| ['@semantic-release/release-notes-generator', { | ||
| preset: 'conventionalcommits', | ||
| presetConfig: { | ||
| types: [ | ||
| { type: 'build', section: 'Build system / dependencies' }, | ||
| { type: 'ci', section: 'CI' }, | ||
| { type: 'docs', section: 'Documentation' }, | ||
| { type: 'feat', section: 'Features' }, | ||
| { type: 'fix', section: 'Bug fixes' }, | ||
| { type: 'perf', section: 'Performance' }, | ||
| { type: 'refactor', section: 'Refactoring' }, | ||
| { type: 'test', section: 'Testing' }, | ||
| ], | ||
| }, | ||
| }], | ||
| ['semantic-release-slack-bot', | ||
| { | ||
| notifyOnSuccess: true, | ||
| notifyOnFail: true, | ||
| }, | ||
| ], | ||
| '@semantic-release/changelog', | ||
| '@semantic-release/npm', | ||
| '@semantic-release/github', | ||
| ['@semantic-release/git', { | ||
| assets: ['CHANGELOG.md', 'package.json'], | ||
| }], | ||
| ], | ||
| } |
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,25 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "extends": [ | ||
| "config:base", | ||
| ":semanticCommits", | ||
| ":automergeMinor" | ||
| ], | ||
| "rangeStrategy": "bump", | ||
| "packageRules": [ | ||
| { | ||
| "matchDepTypes": [ | ||
| "peerDependencies" | ||
| ], | ||
| "semanticCommitType": "fix" | ||
| } | ||
| ], | ||
| "assignees": [ | ||
| "rostislav-simonik", | ||
| "erik-slovak" | ||
| ], | ||
| "reviewers": [ | ||
| "rostislav-simonik", | ||
| "erik-slovak" | ||
| ] | ||
| } |
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,23 @@ | ||
| /** | ||
| * @Author: Erik Slovak <erik.slovak@technologystudio.sk> | ||
| * @Date: 2022-08-10T14:08:90+02:00 | ||
| * @Copyright: Technology Studio | ||
| **/ | ||
|
|
||
| module.exports = { | ||
| rules: { | ||
| 'jsx-a11y/aria-props': 'error', | ||
| 'jsx-a11y/label-has-associated-control': [ | ||
| 'error', | ||
| { | ||
| // NOTE: If this error triggers, either disable it or add | ||
| // your custom components, labels and attributes via these options | ||
| // See https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md | ||
| controlComponents: ['Input'], | ||
| }, | ||
| ], | ||
| 'jsx-a11y/mouse-events-have-key-events': 'error', | ||
| 'jsx-a11y/role-has-required-aria-props': 'error', | ||
| 'jsx-a11y/role-supports-aria-props': 'error', | ||
| }, | ||
| } |
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.