Skip to content
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

Develop #1084

Open
wants to merge 75 commits into
base: develop
Choose a base branch
from
Open

Develop #1084

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
555cbbb
Boilerplate was implemented
mgrinko Jul 4, 2019
5af143d
hooks added
Jul 12, 2019
52806ce
Merge pull request #8 from volodymyrkryvytskyy/hooks
mgrinko Jul 13, 2019
ee6b044
Bump eslint-utils from 1.3.1 to 1.4.3 (#69)
dependabot[bot] Nov 2, 2019
83e570f
Bump mixin-deep from 1.3.1 to 1.3.2 (#71)
dependabot[bot] Nov 2, 2019
94448d1
Bump lodash.template from 4.4.0 to 4.5.0 (#70)
dependabot[bot] Nov 2, 2019
5167167
Small fixes
mgrinko Dec 12, 2019
7c17825
Labels lint error was suppressed
mgrinko Dec 13, 2019
ce2d9b0
default markup was fixed
mgrinko Dec 13, 2019
547fd24
The description was updated
mgrinko Dec 13, 2019
41fdfa0
Merge pull request #90 from mgrinko/master
mgrinko Dec 13, 2019
e16f922
stylelint was added to npm run lint command
mgrinko Dec 16, 2019
0177ab1
Merge pull request #103 from mgrinko/master
mgrinko Dec 16, 2019
843aaaf
Workflow was updated
mgrinko Jan 17, 2020
d88d659
edited optional task
irenhh Feb 26, 2020
aecefb0
Merge pull request #120 from irenhh/patch-1
mgrinko Feb 26, 2020
1b3b106
Update package.json
mgrinko Apr 22, 2020
94fd76e
Create checklist.md
vpolets May 12, 2020
58a41bb
Update checklist.md
vpolets May 12, 2020
0b18d2c
added focus
Vladimir-Beliy Jul 13, 2020
7aa0644
Update checklist.md
irenhh Sep 7, 2020
0819564
Styles and the description was fixed
mgrinko Sep 9, 2020
9ec21ee
Update README.md
mgrinko Sep 10, 2020
22dd203
Update repo. Added cypress (#334)
vpolets Sep 28, 2021
37ff2d8
Update repo. Added bulma and js config (#336)
vpolets Oct 5, 2021
06cc59f
Component tests and other improvements
YuriiHoliuk Apr 6, 2022
27d3a5a
Component tests and other improvements
YuriiHoliuk Apr 7, 2022
4942ac4
Update workflows
YuriiHoliuk Apr 7, 2022
3979bde
Restore checklists, update package, fix tests
YuriiHoliuk Apr 7, 2022
bb189a9
Downgrade
YuriiHoliuk Apr 7, 2022
4839d55
Add cypress verify to postinstall
YuriiHoliuk Apr 7, 2022
029211a
Update scripts
YuriiHoliuk Apr 7, 2022
b2f9d59
Update workflows
YuriiHoliuk Apr 7, 2022
28ad46a
Update scripts
YuriiHoliuk Apr 7, 2022
b62874a
Update App.js
YuriiHoliuk Apr 7, 2022
b477209
Update and init
YuriiHoliuk Apr 7, 2022
71840ae
fix
YuriiHoliuk Apr 7, 2022
2902e0c
Update and init
YuriiHoliuk Apr 7, 2022
6edbf6e
Merge pull request #353 from mate-academy/mate-scripts-update
YuriiHoliuk Apr 7, 2022
f1ea1b4
Update and init
YuriiHoliuk Apr 7, 2022
1eb98de
Merge pull request #355 from mate-academy/mate-scripts-update
YuriiHoliuk Apr 7, 2022
8dc15a7
Cypress tests added
YevhS Apr 22, 2022
799d6db
Changed title of the test
YevhS Apr 22, 2022
80fdfad
Added test for todo elem values validation
YevhS Apr 22, 2022
9910fc6
Fixes
YevhS May 1, 2022
997c45c
Fixes after testing on other solutions
YevhS May 14, 2022
0a4bca8
Fixes after testing on other solutions
YevhS May 14, 2022
50e6ada
Merge pull request #357 from mate-academy/cypress_tests_added
YevhS May 16, 2022
b070e71
Revert "Cypress tests added"
YevhS May 17, 2022
136728d
Merge pull request #365 from mate-academy/revert-357-cypress_tests_added
YevhS May 17, 2022
9a1cfb0
Cypress tests added
YevhS May 17, 2022
cab7c9d
Merge pull request #366 from mate-academy/cypress_tests
YevhS May 17, 2022
8daee82
Update README.md
mgrinko Aug 3, 2022
e034071
small description improvement
mgrinko Aug 3, 2022
0b7a85e
Update package.json
mgrinko Aug 8, 2022
515fdc6
fix build with await
mgrinko Aug 8, 2022
12f7c54
require to use Context and localStorage for state management
mhrynko Jul 20, 2023
a258feb
Update package.json
mgrinko Oct 7, 2023
3c2abd6
fix package-lock
mhrynko Oct 16, 2023
054540f
Update package.json
mgrinko Nov 20, 2023
c63e611
Update package.json
mgrinko Nov 21, 2023
27c3257
fix deps
mgrinko Nov 30, 2023
7c47e8b
Update README.md
alenatovstukha Jan 24, 2024
ed3d882
Update README.md
mykhalenych Feb 6, 2024
d02a2a0
Merge pull request #868 from mykhalenych/patch-1
mgrinko Feb 6, 2024
3e4c032
Update App.tsx
mgrinko Feb 6, 2024
89aa474
add/prettier: add prettier, update readme, format code
Feb 13, 2024
126a538
update few deps
Feb 16, 2024
edf8b1b
Merge pull request #876 from SerhiiKirik/update-prettier
mgrinko Feb 16, 2024
99fc54d
fix node14 deps
mgrinko Mar 18, 2024
9561d14
fix lock versions
mgrinko Mar 21, 2024
3e9aa73
use new markup and tests
mgrinko Apr 1, 2024
95b2703
add Vite
mgrinko Jul 18, 2024
230e898
Merge pull request #1029 from mate-academy/vite-infra
mgrinko Sep 2, 2024
f1536f7
Update test.yml
mgrinko Sep 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#airbnb
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ESLINT_NO_DEV_ERRORS=true
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/build
/node_modules
108 changes: 108 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
module.exports = {
env: {
browser: true,
es2024: true,
},
extends: [
'plugin:react/recommended',
"plugin:react-hooks/recommended",
'airbnb-typescript',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:cypress/recommended',
],
overrides: [
{
'files': ['**/*.spec.jsx'],
'rules': {
'react/jsx-filename-extension': ['off'],
}
}
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
project: './tsconfig.json',
sourceType: 'module',
},
plugins: [
'jsx-a11y',
'import',
'react-hooks',
'@typescript-eslint',
'prettier'
],
rules: {
// JS
'semi': 'off',
'@typescript-eslint/semi': ['error', 'always'],
'prefer-const': 2,
curly: [2, 'all'],
'max-len': ['error', {
ignoreTemplateLiterals: true,
ignoreComments: true,
}],
'no-redeclare': [2, { builtinGlobals: true }],
'no-console': 2,
'operator-linebreak': 0,
'brace-style': [2, '1tbs'],
'arrow-body-style': 0,
'arrow-parens': 0,
'no-param-reassign': [2, { props: true }],
'padding-line-between-statements': [
2,
{ blankLine: 'always', prev: '*', next: 'return' },
{ blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' },
{ blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'] },
{ blankLine: 'always', prev: 'directive', next: '*' },
{ blankLine: 'always', prev: 'block-like', next: '*' },
],
'implicit-arrow-linebreak:': 0,

// React
'react/prop-types': 0,
'react/require-default-props': 0,
'import/prefer-default-export': 0,
'standard/no-callback-literal': 0,
'react/jsx-filename-extension': [1, { extensions: ['.tsx'] }],
'react/destructuring-assignment': 0,
'react/jsx-props-no-spreading': 0,
'react/state-in-constructor': [2, 'never'],
'react-hooks/rules-of-hooks': 2,
'jsx-a11y/label-has-associated-control': ["error", {
assert: "either",
}],
'jsx-a11y/label-has-for': [2, {
components: ['Label'],
required: {
some: ['id', 'nesting'],
},
allowChildren: true,
}],
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',

// Typescript
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/ban-types': ['error', {
extendDefaults: true,
types: {
'{}': false,
},
},
],
},
ignorePatterns: ['dist', '.eslintrc.cjs', 'vite.config.ts', 'src/vite-env.d.ts', 'cypress'],
settings: {
react: {
version: 'detect',
},
},
};
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint

on:
pull_request:
branches: [ master ]

jobs:
run_linter:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
pull_request:
branches: [ master ]

jobs:
run_tests:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test -- -l
- name: Upload tests report(cypress mochaawesome merged HTML report)
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: report
path: reports
29 changes: 10 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.idea
.vscode
build
dist
node_modules
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.idea

raw_reports
reports
cypress/screenshots
cypress/videos
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/build
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"arrowParens": "avoid",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"jsxSingleQuote": false,
"printWidth": 80,
"semi": true,
"bracketSpacing": true,
"bracketSameLine": false
}
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
4 changes: 4 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
extends: "@mate-academy/stylelint-config",
rules: {}
};
Loading