Skip to content

Commit a3147cc

Browse files
authored
feat: add extension / ts-plugin / LSP (#3)
2 parents 291ae55 + 2042dc4 commit a3147cc

File tree

111 files changed

+16847
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+16847
-0
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.d.ts
2+
*.js
3+
*.cjs

.eslintrc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"root": true,
3+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
4+
"env": {
5+
"node": true,
6+
"browser": true
7+
},
8+
"rules": {
9+
"no-prototype-builtins": "off",
10+
"@typescript-eslint/no-explicit-any": "off",
11+
"@typescript-eslint/explicit-module-boundary-types": "off",
12+
"@typescript-eslint/no-non-null-assertion": "off",
13+
"@typescript-eslint/ban-ts-comment": "off",
14+
"@typescript-eslint/no-var-requires": "off",
15+
"@typescript-eslint/ban-types": "off",
16+
"@typescript-eslint/no-unused-vars": [
17+
"error",
18+
{
19+
"varsIgnorePattern": "^_",
20+
"argsIgnorePattern": "^_",
21+
"ignoreRestSiblings": true
22+
}
23+
]
24+
}
25+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: "Bug Report"
2+
description: "File a bug report"
3+
body:
4+
- type: "markdown"
5+
attributes:
6+
value: |
7+
Thanks for creating an issue 😄!
8+
9+
Please search open/closed issues before submitting. Someone
10+
might have asked the same thing before 😉!
11+
12+
We're all volunteers here, so help us help you by taking the time to
13+
accurately fill out this template. ❤️
14+
- type: "textarea"
15+
id: "description"
16+
attributes:
17+
label: "Description"
18+
description: "A brief description of the issue."
19+
placeholder: |
20+
When I ____, I expected ____ to happen but ____ happened instead.
21+
validations:
22+
required: true
23+
- type: "input"
24+
id: "reproduction"
25+
attributes:
26+
label: "Link to Reproduction"
27+
description: |
28+
A link to a Stackblitz reproduction which demonstrates the bug
29+
placeholder: "https://stackblitz.com/edit/vitejs-vite-lfwyue?file=src%2FApp.tsx&terminal=dev"
30+
validations:
31+
required: true
32+
- type: "textarea"
33+
id: "steps"
34+
attributes:
35+
label: "Steps to reproduce"
36+
description: |
37+
Explain how to cause the issue in the provided reproduction.
38+
value: |
39+
1. Go to '...'
40+
2. Click on '...'
41+
3. Scroll down to '...'
42+
4. See error
43+
- type: "input"
44+
id: "framework"
45+
attributes:
46+
label: "JS Framework"
47+
description: "The JS framework used in your project. Specify JS/TS."
48+
placeholder: "React (TS)"
49+
- type: "input"
50+
id: "panda-version"
51+
attributes:
52+
label: "Panda CSS Version"
53+
description: "The version of Panda CSS you use."
54+
placeholder: "x.x.x"
55+
validations:
56+
required: true
57+
- type: "input"
58+
id: "browser"
59+
attributes:
60+
label: "Browser"
61+
description: "The browser(s) this issue occurred with."
62+
placeholder: "Google Chrome 93"
63+
- type: "checkboxes"
64+
id: "operating-system"
65+
attributes:
66+
label: "Operating System"
67+
description: "The operating system(s) this issue occurred with."
68+
options:
69+
- label: "macOS"
70+
- label: "Windows"
71+
- label: "Linux"
72+
- type: "textarea"
73+
id: "additional-information"
74+
attributes:
75+
label: "Additional Information"
76+
description: |
77+
Use this section to provide any additional information you might have
78+
like screenshots, notes, or links to ideas.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask a question
4+
url: https://github.com/chakra-ui/panda/discussions
5+
about: Ask questions and discuss topics with other community members
6+
- name: Chat with other community members
7+
url: https://discord.gg/VQrkpsgSx7
8+
about: The official Panda CSS Discord community
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Documentation Request"
2+
description: "Request for documentation to be added/altered"
3+
labels: ["needs triage", "Topic: Documentation 📚"]
4+
body:
5+
- type: "markdown"
6+
attributes:
7+
value: |
8+
Thanks for filing a documentation request!
9+
10+
If you have an idea for a new documentation topic, noticed that
11+
something is not properly documented, or feel that something is
12+
incorrect with the current documentation, you're in the right place!
13+
- type: "input"
14+
id: "subject"
15+
attributes:
16+
label: "Subject"
17+
description: "What is the subject (component, function, topic) of this request?"
18+
placeholder: "Presets"
19+
validations:
20+
required: true
21+
- type: "textarea"
22+
id: "description"
23+
attributes:
24+
label: "Description"
25+
description: "What about the subject's documentation should be added or changed?"
26+
placeholder: "Add a usage example of RadioGroup in action"
27+
validations:
28+
required: true
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "Feature Request"
2+
description: "Request a feature or enhancement"
3+
labels: ["needs triage"]
4+
body:
5+
- type: "markdown"
6+
attributes:
7+
value: |
8+
Thanks for filing an issue 😄!
9+
10+
Please search open/closed issues before submitting. Someone
11+
might have asked the same thing before 😉!
12+
- type: "textarea"
13+
id: "description"
14+
attributes:
15+
label: "Description"
16+
description: "Please describe your request in one or two sentences."
17+
validations:
18+
required: true
19+
- type: "textarea"
20+
id: "justification"
21+
attributes:
22+
label: "Problem Statement/Justification"
23+
description: |
24+
Please provide valid reason(s) why this should be added to Chakra UI
25+
26+
If this feature is related to a problem you've noticed, mention it as
27+
well.
28+
validations:
29+
required: true
30+
- type: "textarea"
31+
id: "proposed-solution"
32+
attributes:
33+
label: "Proposed Solution or API"
34+
description: |
35+
Please provide code snippets, gists, or links to the ideal
36+
design or API.
37+
validations:
38+
required: true
39+
- type: "textarea"
40+
id: "alternatives"
41+
attributes:
42+
label: "Alternatives"
43+
description: |
44+
What alternative solutions have you considered before making this
45+
request?
46+
- type: "textarea"
47+
id: "additional-information"
48+
attributes:
49+
label: "Additional Information"
50+
description: |
51+
What resources (links, screenshots, etc.) do you have to assist this
52+
effort?
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Install'
2+
description: 'Sets up Node.js and runs install'
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: pnpm/[email protected]
8+
with:
9+
version: 7
10+
11+
- name: Setup Node.js
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: 16.x
15+
registry-url: 'https://registry.npmjs.org'
16+
cache: 'pnpm'
17+
18+
- name: Setup Git User
19+
shell: bash
20+
run: |
21+
git config --global user.email "[email protected]"
22+
git config --global user.name "Segun Adebayo"
23+
24+
- name: Install dependencies
25+
shell: bash
26+
run: pnpm install

.github/pull_request_template.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!---
2+
Thanks for creating a Pull Request 💖!
3+
4+
Please read the following before submitting:
5+
- PRs that adds new external dependencies might take a while to review.
6+
- Keep your PR as small as possible.
7+
- Limit your PR to one type (docs, feature, refactoring, ci, or bugfix)
8+
-->
9+
10+
Closes # <!-- Github issue # here -->
11+
12+
## 📝 Description
13+
14+
> Add a brief description
15+
16+
## ⛳️ Current behavior (updates)
17+
18+
> Please describe the current behavior that you are modifying
19+
20+
## 🚀 New behavior
21+
22+
> Please describe the behavior or changes this PR adds
23+
24+
## 💣 Is this a breaking change (Yes/No):
25+
26+
<!-- If Yes, please describe the impact and migration path for existing Panda users. -->
27+
28+
## 📝 Additional Information

.github/workflows/quality.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Quality
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
14+
15+
jobs:
16+
prettier:
17+
name: Prettier
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Install
24+
uses: ./.github/composite-actions/install
25+
26+
- name: Run Prettier
27+
run: pnpm fmt
28+
29+
# tests:
30+
# name: Unit Tests
31+
# runs-on: ubuntu-latest
32+
# steps:
33+
# - name: Checkout
34+
# uses: actions/checkout@v3
35+
36+
# - name: Install
37+
# uses: ./.github/composite-actions/install
38+
39+
# - name: Run tests
40+
# run: pnpm test
41+
42+
eslint:
43+
name: ESLint
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v3
48+
49+
- name: Install
50+
uses: ./.github/composite-actions/install
51+
52+
- name: Run ESLint
53+
run: pnpm lint
54+
env:
55+
NODE_OPTIONS: "--max-old-space-size=4096"
56+
57+
types:
58+
name: TypeScript
59+
runs-on: ubuntu-latest
60+
steps:
61+
- name: Checkout
62+
uses: actions/checkout@v3
63+
64+
- name: Install
65+
uses: ./.github/composite-actions/install
66+
67+
- name: Run TypeScript type check
68+
run: pnpm typecheck

0 commit comments

Comments
 (0)