Skip to content

Commit

Permalink
Chore: init the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhannedNoman committed Mar 21, 2022
1 parent 8bd57c4 commit 13e462d
Show file tree
Hide file tree
Showing 15 changed files with 27,078 additions and 8,977 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build
coverage
public
node_modules
33 changes: 33 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"react-app",
"react-app/jest",
"airbnb",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"prettier"
],
"rules": {
"quotes":["error","single",{"avoidEscape": true}],
"react/jsx-uses-react":["off"],
"react/react-in-jsx-scope":["off"],
"react/jsx-props-no-spreading":["warn"],
"no-param-reassign":["off"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"testing-library/prefer-screen-queries":["off"]
}
}
32 changes: 32 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Node.js CI

on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 15.x]

steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }}
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: echo "💻 Installing dependencies."
- run: npm ci
- run: echo "💅 Running linting."
- run: npm run lint
- run: echo "🧪 Running all the tests."
- run: npm test --passWithNoTests
- run: echo "🍏 This job's status is ${{ job.status }}."
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Ignore artifacts:
build
coverage
public
node_modules
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80
}
Loading

0 comments on commit 13e462d

Please sign in to comment.