Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsimao committed Sep 15, 2023
0 parents commit 39f10d2
Show file tree
Hide file tree
Showing 408 changed files with 28,318 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "interlay/ui" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
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/interlay/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
scripts/*
*.config.js
.DS_Store
node_modules
coverage
build
!.storybook
!.commitlintrc.cjs
!.lintstagedrc
!jest.config.js
!tsup.config.ts
92 changes: 92 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"$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"
],
"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": "off",
"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"]
}
]
}
}
69 changes: 69 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
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: "interlay-version"
attributes:
label: "Interlay UI Version"
description: "The version of Interlay UI you use."
placeholder: "0.1.0"
validations:
required: true
- 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 Interlay 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 Interlay UI
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?
27 changes: 27 additions & 0 deletions .github/common-actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Install"
description: "Sets up Node.js and runs install"

runs:
using: composite
steps:
- name: Install dependencies
uses: pnpm/[email protected]
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v3
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
72 changes: 72 additions & 0 deletions .github/workflows/QA.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: QA

on:
pull_request:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Install
uses: ./.github/common-actions/install

- name: Build packages
run: pnpm build

tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Install
uses: ./.github/common-actions/install

- name: Run tests
run: pnpm test

eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Install
uses: ./.github/common-actions/install

- name: Run ESLint
run: pnpm lint

types:
name: TypeScript
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Install
uses: ./.github/common-actions/install

- name: Run typecheck
run: pnpm typecheck

prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Install
uses: ./.github/common-actions/install

- name: Run prettier
run: pnpm format:check
Loading

0 comments on commit 39f10d2

Please sign in to comment.