Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
27 changes: 27 additions & 0 deletions react-shopping-cart/.all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "danilucaci",
"name": "Dani Lucaci",
"avatar_url": "https://avatars.githubusercontent.com/u/19062818?v=4",
"profile": "http://www.danilucaci.com",
"contributions": [
"code",
"doc",
"example",
"tool"
]
}
],
"contributorsPerLine": 7,
"projectName": "vanilla-js-project-template",
"projectOwner": "assembler-school",
"repoType": "github",
"repoHost": "https://github.com",
"skipCi": true
}
11 changes: 11 additions & 0 deletions react-shopping-cart/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": "defaults"
}
],
"@babel/preset-react"
]
}
1 change: 1 addition & 0 deletions react-shopping-cart/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock.json
63 changes: 63 additions & 0 deletions react-shopping-cart/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
"jest/globals": true,
},
extends: [
"airbnb",
"eslint:recommended",
"plugin:react/recommended",
"plugin:jest/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"prettier",
],
parser: "@babel/eslint-parser",
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
requireConfigFile: "false",
jsx: true,
},
plugins: [
"html",
"jest",
"react",
"react-hooks",
"jsx-a11y",
"markdown",
"react-hooks",
"import",
"prettier",
],
settings: {
react: {
version: "detect",
},
jest: {
version: 26,
},
},
overrides: [
{
files: ["*.html"],
parser: "@html-eslint/parser",
extends: ["plugin:@html-eslint/recommended"],
},
],
rules: {
"prettier/prettier": "error",
"react/jsx-filename-extension": "off",
"import/prefer-default-export": "off",
"prefer-destructuring": "off",
"object-shorthand": "off",
"react/jsx-props-no-spreading": "off",
"arrow-body-style": "off",
"no-underscore-dangle": "off",
"react/forbid-prop-types": "off",
"react/prop-types": "off",
},
};
98 changes: 98 additions & 0 deletions react-shopping-cart/.github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Contributing

When contributing to this repository, please first discuss the change you wish
to make via issue, email, or any other method with the owners of this repository
before making a change.

Please note we have a code of conduct, please follow it in all your interactions
with the project.

## Pull Request Process

1. Ensure any install or build dependencies are removed before the end of the
layer when doing a build.
2. Update the README.md with details of changes to the interface, this includes
new environment variables, exposed ports, useful file locations and container
parameters.
3. Increase the version numbers in any examples files and the README.md to the
new version that this Pull Request would represent. The versioning scheme we
use is [SemVer](http://semver.org/).
4. You may merge the Pull Request in once you have the sign-off of two other
developers, or if you do not have permission to do that, you may request the
second reviewer to merge it for you.

## Code of Conduct

### Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of
experience, nationality, personal appearance, race, religion, or sexual identity
and orientation.

### Our Standards

Examples of behavior that contributes to creating a positive environment
include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

### Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, or to ban temporarily or permanently any
contributor for other behaviors that they deem inappropriate, threatening,
offensive, or harmful.

### Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

### Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an
incident. Further details of specific enforcement policies may be posted
separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

### Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
27 changes: 27 additions & 0 deletions react-shopping-cart/.github/ISSUE_TEMPLATE/FEATURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---

name: Feature Request about: Use this template for requesting new features
title: "[FEATURE NAME]" labels: enhancement assignees: --

## Expected Behavior

Please describe the behavior you are expecting

## Current Behavior

What is the current behavior?

## Sample Code

If applicable, provide a sample code snippet that demonstrates the gist of
feature you're proposing. This can be either from a usage standpoint, or an
implementation standpoint.

## Context

Please provide any relevant information about your setup, which will help us
ensure the requested support will work for you.

- Project Version:
- Operating System:
- Toolchain version:
51 changes: 51 additions & 0 deletions react-shopping-cart/.github/ISSUE_TEMPLATE/ISSUE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Issue Report
about: Use this template to report a problem
title: "[VERSION] [PROBLEM SUMMARY]"
labels: bug
assignees:
---

## Expected Behavior

Please describe the behavior you are expecting

## Current Behavior

What is the current behavior?

## Context

Please provide any relevant information about your setup. This is important in
case the issue is not reproducible except for under certain conditions.

- Project Version:
- Operating System:
- Toolchain:
- Toolchain version:

## Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not
a bug, please remove the rest of this template.

### Steps to Reproduce

Please provide detailed steps for reproducing the issue.

1. step 1
2. step 2
3. you get it...

### Failure Logs

Please include any relevant log snippets or files here.

## Checklist

- [ ] I am running the latest version
- [ ] I checked the documentation and found no answer
- [ ] I checked to make sure that this issue has not already been filed
- [ ] I'm reporting the issue to the correct repository (for multi-repository
projects)
- [ ] I have provided sufficient information for the team
16 changes: 16 additions & 0 deletions react-shopping-cart/.github/ISSUE_TEMPLATE/QUESTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Question
about: Use this template to ask a question about the project
title: "[QUESTION SUMMARY]"
labels:
assignees:
---

## Question

State your question

## Sample Code

Please include relevant code snippets or files that provide context for your
question.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Pull Request Template

## Description

Please include a summary of the change and which issue is fixed. Please also
include relevant motivation and context. List any dependencies that are required
for this change.

Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to
not work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details for your
test configuration

- [ ] Test A
- [ ] Test B

**Test Configuration(s)**:

- Firmware version:
- Hardware:
- Toolchain:
- SDK:

## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
- [ ] I have checked my code and corrected any misspellings
30 changes: 30 additions & 0 deletions react-shopping-cart/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: react-app-ci

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

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 ci
- run: npm run lint:js
- run: npm run lint:format:check
- run: npm run test:ci:all
Loading