-
Notifications
You must be signed in to change notification settings - Fork 0
Project #11
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
base: master
Are you sure you want to change the base?
Project #11
Changes from all commits
fa4424f
3be0348
7efe286
ac2527d
3bec9a5
03e07df
d7981e6
7a88044
cc2d6a9
f31f888
8707d53
c94659a
52f2f9f
e59127b
a7a9261
61c0360
87a3aea
f8b82b0
3abeef0
e36fa27
c1d1752
76aad53
69c7450
849babe
9f92f87
caee369
3308147
4beabda
6fa9a3f
3e27944
73265e2
2e4f913
f4325ad
d223405
9af9c4c
98fda37
7784d67
c307038
c1d9fb7
e00f93f
ae047e2
94f31ff
703d0fe
7c821ba
71fe81f
c041fe3
4699678
a843f72
21b3dbb
47bb174
2546942
a8c9502
cea7a67
d74a9f9
336dddb
b078d70
7847e0e
70dbaca
2543f61
609fc40
c37ec48
a2a1cfb
af5fec5
cc9990f
46d696d
a546ae7
e408942
f3ed45f
56a60b3
31488c9
557e3f0
dee1698
410828a
b96c4d1
3d7db4c
efd71ce
9cef8e3
a031006
31025e1
869efd1
117983b
ef25cab
2e8b48d
444da63
2283746
9c0b8b1
2813c12
9b441d3
4d33057
dc076ef
acdb82c
bc2a353
57ce141
0baa578
15e6b1a
f88f2c3
cc56c7f
8e63a1f
9ccec3f
c51950b
1cb6724
7f3b8f9
e6742c3
cb2ca13
ff0ff4a
c4a5d97
34903bc
64e4e14
dcb45ff
c8ea431
387cf69
b7fcb6f
5975253
a9c6197
338830a
3d94a7a
ab4921d
d9d0482
4e84d8f
88d48e7
95cc677
d91c3ab
1b9285b
341fc5a
6373381
6779e9d
ad34a02
8d7c2df
68c91f0
244e1ba
53cacea
455e4d5
ef4fc31
a8ad03c
9039b7d
1b46dfa
0447127
5d011fd
791752a
b580dd1
6933cc6
977532a
92275d1
50d0237
c35a832
c018927
9d6fcf9
888ddb6
886ba81
a397bf0
7d7f665
524e696
5ccce24
3cd4427
c91159b
3b8fab0
5cc48de
6ab79ec
d8e1f73
486a600
39475cd
7ce1fd0
74c0110
18cc7ed
95e3427
1e3c743
3ff90fb
70f2867
d6acea7
cb3a89b
9e5d5e9
7f844e9
56eafdb
30c72a6
7f193c7
7ece883
d9de1ae
bf298a8
4a92dcb
28cf45c
6db0a24
5e1df2a
c626c13
21dedc8
cbea12a
5bf14a2
6af0819
7428862
a08e9fb
6eb4836
d199b8e
28fa6cb
a5ccdc0
17a6b57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| .history | ||
| .vscode | ||
| node_modules | ||
| docs | ||
| dist | ||
| *.config.js | ||
| src/stories | ||
| jestSetupFile.js | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,51 @@ | ||
| { | ||
| "extends": [ | ||
| "plugin:@typescript-eslint/recommended", | ||
| "plugin:prettier/recommended" | ||
| ], | ||
| "rules": { | ||
| "prettier/prettier": [ | ||
| "error", | ||
| { | ||
| "singleQuote": true, | ||
| "parser": "flow", | ||
| "printWidth": 80, | ||
| "tabWidth": 4, | ||
| "useTabs": false | ||
| } | ||
| ], | ||
| "@typescript-eslint/quotes": [ | ||
| "error", | ||
| "single", | ||
| { | ||
| "avoidEscape": true, | ||
| "allowTemplateLiterals": true | ||
| "parser": "@typescript-eslint/parser", | ||
| "plugins": ["@typescript-eslint", "prettier", "react-hooks"], | ||
| "extends": ["airbnb", "prettier", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"], | ||
| "parserOptions": { | ||
| "sourceType": "module" | ||
| }, | ||
| "settings": { | ||
| "import/resolver": { | ||
| "node": { | ||
| "paths": ["."], | ||
| "extensions": [".ts", ".tsx"] | ||
| } | ||
| ], | ||
| "@typescript-eslint/no-inferrable-types": 0, | ||
|
|
||
| "indent": ["error", 4, {"SwitchCase": 1}] | ||
|
|
||
| } | ||
| }, | ||
| "parserOptions": { | ||
| "sourceType": "module", | ||
| "parser": "babel-eslint", | ||
| "ecmaVersion": 2018 | ||
| "globals": { | ||
| "document": true, | ||
| "navigator": true, | ||
| "cy": true, | ||
| "fetch": true, | ||
| "requestAnimationFrame": true, | ||
| "cancelAnimationFrame": true, | ||
| "window": true | ||
| }, | ||
| "env": { "jest": true }, | ||
| "rules": { | ||
| "no-shadow": "off", | ||
| "@typescript-eslint/no-shadow": ["error"], | ||
| "no-unused-vars": "on", | ||
| "@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true, "caughtErrors": "none", "args": "after-used" }], | ||
| "react-hooks/rules-of-hooks": "error", | ||
| "react-hooks/exhaustive-deps": "warn", | ||
| "@typescript-eslint/no-empty-function": "on", | ||
| "prettier/prettier": ["error"], | ||
| "no-use-before-define": "off", | ||
| "@typescript-eslint/no-use-before-define": ["error"], | ||
| "no-plusplus": 0, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| "no-bitwise": 0, | ||
| "import/prefer-default-export": 0, | ||
| "arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": false }], | ||
| "@typescript-eslint/lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], | ||
| "no-useless-constructor": "off", | ||
| "@typescript-eslint/no-useless-constructor": ["error"], | ||
| "react/jsx-props-no-spreading": 0, | ||
| "import/extensions": 0, | ||
| "react/prop-types": 0, | ||
| "import/no-unresolved": 0, | ||
| "react/jsx-filename-extension": [2, { "extensions": [".ts", ".tsx", ".js", ".jsx"] }], | ||
| "react/function-component-definition": 0 | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| ## Sample workflow for building and deploying a Jekyll site to GitHub Pages | ||
| #name: Deploy Jekyll with GitHub Pages dependencies preinstalled | ||
| # | ||
| #on: | ||
| # # Runs on pushes targeting the default branch | ||
| # push: | ||
| # branches: ["master", "project"] | ||
| # | ||
| # # Allows you to run this workflow manually from the Actions tab | ||
| # workflow_dispatch: | ||
| # | ||
| ## Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
| #permissions: | ||
| # contents: read | ||
| # pages: write | ||
| # id-token: write | ||
| # | ||
| ## Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
| ## However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
| #concurrency: | ||
| # group: "pages" | ||
| # cancel-in-progress: false | ||
| # | ||
| #jobs: | ||
| # | ||
| ## test: | ||
| ## runs-on: ubuntu-latest | ||
| ## steps: | ||
| ## - uses: actions/checkout@v3 | ||
| ## - uses: actions/setup-node@v3 | ||
| ## - name: Install | ||
| ## run: npm install | ||
| ## - name: Test and Coverage | ||
| ## run: npm run coverage | ||
| # | ||
| # # Build job | ||
| ## build: | ||
| ## runs-on: ubuntu-latest | ||
| ### needs: test | ||
| ## steps: | ||
| ## - name: Checkout | ||
| ## uses: actions/checkout@v3 | ||
| ## - name: Setup Pages | ||
| ## uses: actions/configure-pages@v3 | ||
| ## - name: Build with Jekyll | ||
| ## uses: actions/jekyll-build-pages@v1 | ||
| ## with: | ||
| ## source: ./docs | ||
| ## destination: ./_site | ||
| ## - name: Upload artifact | ||
| ## uses: actions/upload-pages-artifact@v1 | ||
| # | ||
| # # Deployment job | ||
| # deploy: | ||
| # environment: | ||
| # name: github-pages | ||
| # url: ${{ steps.deployment.outputs.page_url }} | ||
| # runs-on: ubuntu-latest | ||
| ## needs: build | ||
| # steps: | ||
| # - name: Deploy to GitHub Pages | ||
| # id: deployment | ||
| # uses: actions/deploy-pages@v2 | ||
| # | ||
| ## badge: | ||
| ## runs-on: ubuntu-latest | ||
| ## needs: deploy | ||
| ## steps: | ||
| ## # Your original steps | ||
| ## - uses: actions/checkout@v3 | ||
| ## - uses: actions/setup-node@v3 | ||
| ## - name: Install | ||
| ## run: npm install | ||
| ## - name: Test and Coverage | ||
| ## run: npm run coverage | ||
| ## | ||
| ## # Add this | ||
| ## - name: Update Coverage Badge | ||
| ## # GitHub actions: default branch variable | ||
| ## # https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable | ||
| ## # if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) | ||
| ## uses: we-cli/coverage-badge-action@main |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,8 @@ | ||
| .history | ||
| .vscode | ||
| node_modules | ||
| dist | ||
| node_modules/ | ||
| .idea/ | ||
| dist/ | ||
| .jest/ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. а что это за папка? |
||
| .DS_Store | ||
|
|
||
| # stryker temp files | ||
| .stryker-tmp | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| legacy-peer-deps=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1 @@ | ||
| .history | ||
| .vscode | ||
| node_modules | ||
| dist | ||
| *.config.js |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "singleQuote": true, | ||
| "trailingComma": "all", | ||
| "endOfLine": "auto", | ||
| "printWidth": 120 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| module.exports = { | ||
| "stories": [ | ||
| "../src/Components/*.stories.mdx", | ||
| "../src/Components/*.stories.@(js|jsx|ts|tsx)", | ||
| "../src/Components/*/*.stories.mdx", | ||
| "../src/Components/*/*.stories.@(js|jsx|ts|tsx)" | ||
| ], | ||
| "addons": [ | ||
| "@storybook/addon-links", | ||
| "@storybook/addon-essentials", | ||
| "@storybook/addon-interactions", | ||
| '@storybook/preset-scss' | ||
| ], | ||
| "framework": "@storybook/react", | ||
| "core": { | ||
| "builder": "@storybook/builder-webpack5" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import '!style-loader!css-loader!sass-loader!../src/Styles/index.sass'; | ||
|
|
||
| export const parameters = { | ||
| actions: { argTypesRegex: "^on[A-Z].*" }, | ||
| controls: { | ||
| matchers: { | ||
| color: /(background|color)$/i, | ||
| date: /Date$/, | ||
| }, | ||
| }, | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,9 @@ | ||
| # OTUS: React.js Developer, домашние задания Плющенков Дмитрий | ||
| [](https://github.com/dmitryplus/otus_react_dz/actions) | ||
|
|
||
| ## Консольный калькулятор: | ||
| Используемая конфигурация: | ||
| * Babel | ||
| * Webpack | ||
| * Typescript | ||
| * Eslint | ||
| * Jest | ||
| * Prepush hooks / husky | ||
|
|
||
| ## Запуск в консоли | ||
| # Xhprof React Graph | ||
|
|
||
| `npm run calc` | ||
|
|
||
| Возможные операции: * / + - ( ) | ||
| Рабочий вариант проекта доступен по адресу | ||
|
|
||
| ## Запуск тестов | ||
|
|
||
| `npm run test` | ||
| https://dmitryplus.github.io/otus_react_dz/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| module.exports = { | ||
| presets: [ | ||
| ['@babel/preset-env', { targets: { node: 'current' } }], | ||
| '@babel/preset-react', | ||
| '@babel/preset-typescript' | ||
| ] | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
какие есть причины для исключения эти файлов?