Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
farisashai committed Apr 4, 2023
0 parents commit e05d436
Show file tree
Hide file tree
Showing 154 changed files with 9,846 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
version: 2
jobs:
lint:
docker:
- image: cimg/node:18.1.0
steps:
- checkout
- restore_cache:
key: package-cache-{{checksum "package.json"}}
- run:
command: yarn install
- save_cache:
key: package-cache-{{checksum "package.json"}}
paths:
- node_modules
- run:
command: yarn run lint

workflows:
version: 2
weekly_rebase:
jobs:
- lint:
filters:
tags:
only: /^(v\d*\.\d*\.\d*)(?:-(\w*\d*))?/
branches:
ignore: /.*/

test_and_deploy:
jobs:
- lint
Binary file added .corepack.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEXT_PUBLIC_ACM_API_URL="https://api.acmucsd.com/api/v2"
NEXT_PUBLIC_NOTION_API_TOKEN="""
63 changes: 63 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"prettier",
"next",
"next/core-web-vitals"
],
"plugins": [
"prettier",
"node",
"@typescript-eslint",
"import",
"jsdoc"
],
"rules": {
"prettier/prettier": "error",
"no-unused-vars": "warn",
"no-console": "warn",
"func-names": "off",
"no-process-exit": "off",
"object-shorthand": "off",
"class-methods-use-this": "off",
"arrow-body-style": "off",
"react/jsx-props-no-spreading": "off",
"import/extensions": "off",
"no-shadow": "off",
"react/require-default-props": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": [
"Link"
],
"specialLink": [
"to"
]
}
],
"react/jsx-filename-extension": [
2,
{
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
],
"react/function-component-definition": [
2,
{
"namedComponents": [
"arrow-function",
"function-declaration"
],
"unnamedComponents": "arrow-function"
}
]
},
"ignorePatterns": "src/**/*.d.ts"
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- @farisashai
13 changes: 13 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: author

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- farisashai

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 0
14 changes: 14 additions & 0 deletions .github/workflows/assign_reviewers_to_new_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Auto-Assign Reviewers and Label to New PR'
on:
pull_request:
types: [opened, ready_for_review]

jobs:
add-reviews-and-labels:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/[email protected]
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: 'PR: Needs Review'
github_token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/label_ready_pr_to_merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'Add Label to Fully-Reviewed PR'
on: pull_request_review
jobs:
labelWhenApproved:
runs-on: ubuntu-latest
steps:
- name: Add approval label
uses: pullreminders/label-when-approved-action@master
env:
APPROVALS: 2
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ADD_LABEL: 'PR: Good to Merge'
REMOVE_LABEL: |
"PR: Needs Review"
"PR: Reviewed w/ Comments"
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local
.env.development
.env.production

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.10.0
15 changes: 15 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"quoteProps": "as-needed",
"singleQuote": true,
"arrowParens": "avoid",
"tabWidth": 2,
"useTabs": false,
"printWidth": 100,
"proseWrap": "always",
"bracketSpacing": true,
"trailingComma": "es5",
"semi": true,
"jsxSingleQuote": false,
"bracketSameLine": false,
"endOfLine": "auto"
}
19 changes: 19 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": "stylelint-config-sass-guidelines",
"plugins": ["stylelint-order"],
"rules": {
"order/order": ["custom-properties", "declarations"],
"max-nesting-depth": null,
"selector-max-compound-selectors": null,
"function-parentheses-space-inside": null,
"order/properties-alphabetical-order": true,
"font-family-no-missing-generic-family-keyword": [
true,
{
"ignoreFontFamilies": ["Nunito", "Roboto"]
}
],
"selector-class-pattern": "^[a-z][a-zA-Z0-9]+$",
"unit-allowed-list": ["px", "rem", "em", "%", "vh", "vw", "fr", "s", "deg"]
}
}
20 changes: 20 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"esbenp.prettier-vscode",
"rvest.vs-code-prettier-eslint",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"hex-ci.stylelint-plus",
"formulahendry.auto-rename-tag",
"formulahendry.auto-close-tag",
"vincaslt.highlight-matching-tag",
"christian-kohler.npm-intellisense",
"christian-kohler.path-intellisense",
"burkeholland.simple-react-snippets"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
19 changes: 19 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"typescript.preferences.importModuleSpecifier": "non-relative",
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
},
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"stylelint.validate": [
"scss"
],
"files.associations": {
"*.env.development": "env",
"*.env.production": "env"
}
}
Loading

0 comments on commit e05d436

Please sign in to comment.