Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hereisadi authored Mar 6, 2024
0 parents commit dc342be
Show file tree
Hide file tree
Showing 29 changed files with 4,732 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
build
node_modules
docs
99 changes: 99 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"root": true,
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"es2021": true
},
"extends": ["airbnb", "prettier", "plugin:react-hooks/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2021,
"sourceType": "module"
},
"plugins": ["prettier", "react", "react-hooks", "jsx-a11y", "check-file"],
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": [
"node_modules/",
"routes.jsx",
"dist/",
"src/main.jsx",
"src/**/index.jsx"
],
"rules": {
"arrow-body-style": 0,
"class-methods-use-this": 0,
"import/imports-first": 0,
"import/newline-after-import": 0,
"import/no-dynamic-require": 0,
"import/no-named-as-default": 0,
"import/no-unresolved": 0,
"import/no-webpack-loader-syntax": 0,
"import/prefer-default-export": 0,
"max-len": 0,
"newline-per-chained-call": 0,
"no-confusing-arrow": 0,
"no-console": 1,
"no-unused-vars": 2,
"no-use-before-define": 0,
"no-restricted-syntax": 0,
"no-nested-ternary": 0,
"prefer-template": 2,
"react/destructuring-assignment": 0,
"react/require-default-props": 0,
"react/require-extension": 0,
"react/self-closing-comp": 0,
"react/sort-comp": 0,
"react/prop-types": 0,
"react/jsx-closing-tag-location": 0,
"react/jsx-first-prop-new-line": [2, "multiline"],
// "react/jsx-filename-extension": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-no-target-blank": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-uses-vars": 2,
"react/function-component-definition": [1, { "namedComponents": "arrow-function" }],
"react/button-has-type": 0,
"jsx-a11y/aria-props": 2,
"jsx-a11y/heading-has-content": 0,
"jsx-a11y/label-has-associated-control": [
2,
{
"controlComponents": ["Input"]
}
],
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/mouse-events-have-key-events": 2,
"jsx-a11y/role-has-required-aria-props": 2,
"jsx-a11y/role-supports-aria-props": 2,
"react-hooks/rules-of-hooks": 2,
"check-file/filename-naming-convention": [
2,
{
"src/**/*.jsx": "PASCAL_CASE",
"src/**/*.js": "CAMEL_CASE"
}
],
"check-file/folder-naming-convention": [
2,
{
"src/**/": "PASCAL_CASE"
}
]
}
}

59 changes: 59 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# This is a comment.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @hereisadi @Himangshu-101

# Order is important; the last matching pattern takes the most
# precedence. When someone opens a pull request that only
# modifies JS files, only @js-owner and not the global
# owner(s) will be requested for a review.
# *.js @js-owner #This is an inline comment.

# You can also use email addresses if you prefer. They'll be
# used to look up users just like we do for commit author
# emails.
# *.go docs@example.com

# Teams can be specified as code owners as well. Teams should
# be identified in the format @org/team-name. Teams must have
# explicit write access to the repository. In this example,
# the octocats team in the octo-org organization owns all .txt files.
# *.txt @octo-org/octocats

# In this example, @doctocat owns any files in the build/logs
# directory at the root of the repository and any of its
# subdirectories.
# /build/logs/ @doctocat

# The `docs/*` pattern will match files like
# `docs/getting-started.md` but not further nested files like
# `docs/build-app/troubleshooting.md`.
# docs/* docs@example.com

# In this example, @octocat owns any file in an apps directory
# anywhere in your repository.
# apps/ @octocat

# In this example, @doctocat owns any file in the `/docs`
# directory in the root of your repository and any of its
# subdirectories.
# /docs/ @doctocat

# In this example, any change inside the `/scripts` directory
# will require approval from @doctocat or @octocat.
# /scripts/ @doctocat @octocat

# In this example, @octocat owns any file in a `/logs` directory such as
# `/build/logs`, `/scripts/logs`, and `/deeply/nested/logs`. Any changes
# in a `/logs` directory will require approval from @octocat.
# **/logs @octocat

# In this example, @octocat owns any file in the `/apps`
# directory in the root of your repository except for the `/apps/github`
# subdirectory, as its owners are left empty.
# /apps/ @octocat
# /apps/github
37 changes: 37 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches:
- dev
- master

pull_request:
types: [opened, synchronize, reopened]

issues:
types: [opened, edited, milestoned, demilestoned, closed, reopened]

issue_comment:
types: [created, edited, deleted]

jobs:
eslint:
name: ESLint Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18.12.1

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Run ESLint
run: pnpm run lint
37 changes: 37 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches:
- dev
- master

pull_request:
types: [opened, synchronize, reopened]

issues:
types: [opened, edited, milestoned, demilestoned, closed, reopened]

issue_comment:
types: [created, edited, deleted]

jobs:
prettier:
name: Prettier Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18.12.1

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Run ESLint
run: pnpm pretty
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
dist
*.md
pnpm-lock.yaml
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 90,
"semi": true,
"singleQuote": false,
"trailingComma": "es5",
"bracketSameLine": false
}

Loading

0 comments on commit dc342be

Please sign in to comment.