Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsimao committed Jun 11, 2024
0 parents commit af04494
Show file tree
Hide file tree
Showing 884 changed files with 60,061 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const conventional = require('@commitlint/config-conventional');

module.exports = {
extends: ['@commitlint/config-conventional'],
plugins: ['commitlint-plugin-function-rules'],
helpUrl: 'https://github.com/bob-collective/bob-ui/blob/main/CONTRIBUTING.MD#commit-convention',
rules: {
...conventional.rules,
'type-enum': [2, 'always', ['feat', 'feature', 'fix', 'refactor', 'docs', 'build', 'test', 'ci', 'chore']],
'function-rules/header-max-length': [0]
}
};
14 changes: 14 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*.css
.changeset
dist
*.config.js
.DS_Store
node_modules
coverage
build
!.storybook
!.commitlintrc.cjs
!.lintstagedrc
!jest.config.js
!knip.config.js
!tsup.config.ts
84 changes: 84 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"env": {
"browser": false,
"es2021": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"plugin:testing-library/react"
],
"plugins": ["react", "unused-imports", "import", "@typescript-eslint", "jsx-a11y", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"no-console": "warn",
"react/prop-types": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/interactive-supports-focus": "warn",
"prettier/prettier": "warn",
"no-unused-vars": "off",
"unused-imports/no-unused-vars": "off",
"unused-imports/no-unused-imports": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "after-used",
"ignoreRestSiblings": false,
"argsIgnorePattern": "^_.*?$"
}
],
"import/order": [
"warn",
{
"groups": ["type", "builtin", "object", "external", "internal", "parent", "sibling", "index"],
"pathGroups": [
{
"pattern": "~/**",
"group": "external",
"position": "after"
}
],
"newlines-between": "always"
}
],
"react/self-closing-comp": "warn",
"react/jsx-sort-props": [
"warn",
{
"callbacksLast": true,
"shorthandFirst": true,
"noSortAlphabetically": false,
"reservedFirst": true
}
],
"padding-line-between-statements": [
"warn",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{
"blankLine": "any",
"prev": ["const", "let", "var"],
"next": ["const", "let", "var"]
}
]
}
}
61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: 'Bug Report'
description: 'File a bug report'
body:
- type: 'markdown'
attributes:
value: |
Thanks for creating an issue 😄!
Please search open/closed issues before submitting. Someone
might have asked the same thing before 😉!
Help us by taking the time to accurately fill out this template. ❤️
- type: 'textarea'
id: 'description'
attributes:
label: 'Description'
description: 'A brief description of the issue.'
placeholder: |
When I ____, I expected ____ to happen but ____ happened instead.
validations:
required: true
- type: 'input'
id: 'reproduction'
attributes:
label: 'Link to Reproduction'
placeholder: 'https://codesandbox.io/'
validations:
required: false
- type: 'textarea'
id: 'steps'
attributes:
label: 'Steps to reproduce'
description: |
Explain how to cause the issue in the provided reproduction.
value: |
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error
- type: 'input'
id: 'browser'
attributes:
label: 'Browser'
description: 'The browser(s) this issue occurred with.'
placeholder: 'Google Chrome 93'
- type: 'checkboxes'
id: 'operating-system'
attributes:
label: 'Operating System'
description: 'The operating system(s) this issue occurred with.'
options:
- label: 'macOS'
- label: 'Windows'
- label: 'Linux'
- type: 'textarea'
id: 'additional-information'
attributes:
label: 'Additional Information'
description: |
Use this section to provide any additional information you might have
like screenshots, notes, or links to ideas.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Chat with other community members
url: https://discord.gg/2WuDM9G5
about: The official BOB Discord community
52 changes: 52 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 'Feature Request'
description: 'Request a feature or enhancement'
labels: ['needs triage']
body:
- type: 'markdown'
attributes:
value: |
Thanks for filing an issue 😄!
Please search open/closed issues before submitting. Someone
might have asked the same thing before 😉!
- type: 'textarea'
id: 'description'
attributes:
label: 'Description'
description: 'Please describe your request in one or two sentences.'
validations:
required: true
- type: 'textarea'
id: 'justification'
attributes:
label: 'Problem Statement/Justification'
description: |
Please provide valid reason(s) why this should be added to BOB
If this feature is related to a problem you've noticed, mention it as
well.
validations:
required: true
- type: 'textarea'
id: 'proposed-solution'
attributes:
label: 'Proposed Solution or API'
description: |
Please provide code snippets, gists, or links to the ideal
design or API.
validations:
required: true
- type: 'textarea'
id: 'alternatives'
attributes:
label: 'Alternatives'
description: |
What alternative solutions have you considered before making this
request?
- type: 'textarea'
id: 'additional-information'
attributes:
label: 'Additional Information'
description: |
What resources (links, screenshots, etc.) do you have to assist this
effort?
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: "Task"
description: "Add a task"
body:
- type: "textarea"
id: "description"
attributes:
label: "Description"
validations:
required: true
25 changes: 25 additions & 0 deletions .github/common-actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Install'
description: 'Sets up Node.js and runs install'

runs:
using: composite
steps:
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- name: Setup Git User
shell: bash
run: |
git config --global user.email "[email protected]"
git config --global user.name "gobob-xyz"
- name: Install dependencies
shell: bash
run: pnpm install
23 changes: 23 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!---
Thanks for creating a Pull Request ❤️!
-->

Closes # <!-- Github issue # here -->

## 📝 Description

> Add a brief description
## ⛳️ Current behavior (updates)

> Please describe the current behavior that you are modifying
## 🚀 New behavior

> Please describe the behavior or changes this PR adds
## 💣 Is this a breaking change (Yes/No):

<!-- If Yes, please describe the impact and migration path -->

## 📝 Additional Information
Loading

0 comments on commit af04494

Please sign in to comment.