Skip to content

Commit

Permalink
Merge branch 'master' into antd-empty-errors-array
Browse files Browse the repository at this point in the history
  • Loading branch information
ChocolateLoverRaj committed Aug 29, 2022
2 parents 1872dc2 + 9c9488b commit a33d9d8
Show file tree
Hide file tree
Showing 815 changed files with 828,835 additions and 118,948 deletions.
34 changes: 34 additions & 0 deletions .eslintrc-javascript
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": "eslint:recommended",
"parser": "@babel/eslint-parser",
"parserOptions": {
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"rules": {
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-tag-spacing": [1, {
"beforeSelfClosing": "always"
}],
"curly": [2],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"comma-dangle": [0],
"no-unused-vars": [2, {
"vars": "all",
"args": "none",
"ignoreRestSiblings": true
}],
"no-console": [0],
"object-curly-spacing": [2, "always"],
"keyword-spacing": ["error"]
},
"env": {
"es6": true,
"browser": true,
"node": true
}
}
42 changes: 42 additions & 0 deletions .eslintrc-typescript
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"react/prop-types": 0,
"react/no-find-dom-node": 0,
"react/display-name": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-tag-spacing": [1, {
"beforeSelfClosing": "always"
}],
"curly": [2],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"comma-dangle": [0],
"@typescript-eslint/no-unused-vars": [2, {
"vars": "all",
"args": "none",
"ignoreRestSiblings": true
}],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-console": [0],
"object-curly-spacing": [2, "always"],
"keyword-spacing": ["error"],
"no-prototype-builtins": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-var-requires": "warn"
},
"env": {
"es6": true,
"browser": true,
"node": true
}
}
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: react-jsonschema-form
90 changes: 90 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: 🐛 Bug
description: File a bug/issue
title: "<title>"
labels: [bug, needs triage]
assignees:
- epicfaace
- jacqueswho
- heath-freenome
body:
- type: checkboxes
attributes:
label: Prerequisites
options:
- label: I have searched the existing issues
required: true
- label: I understand that providing a [SSCCE](http://sscce.org/) example is tremendously useful to the maintainers.
required: true
- label: I have read the [documentation](https://react-jsonschema-form.readthedocs.io/)
required: true
- label: Ideally, I'm providing a [sample JSFiddle](https://jsfiddle.net/n1k0/f2y3fq7L/6/) or a [shared playground link](https://rjsf-team.github.io/react-jsonschema-form/) demonstrating the issue.
required: false
- type: dropdown
id: theme
attributes:
label: What theme are you using?
options:
- core
- antd
- bootstrap-4
- chakra-ui
- fluent-ui
- material-ui
- semantic-ui
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: You can usually get this information in your `package.json` or in the file URL if you're using the unpkg one.
value: 4.1.1
validations:
required: true
- type: textarea
attributes:
label: Current Behavior
description: A concise description of what you're experiencing.
validations:
required: false
- type: textarea
attributes:
label: Expected Behavior
description: A concise description of what you expected to happen.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: false
- type: textarea
attributes:
label: Environment
description: |
examples:
- **OS**: Ubuntu 20.04
- **Node**: 13.14.0
- **npm**: 7.6.3
value: |
- OS:
- Node:
- npm:
render: markdown
validations:
required: false
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 🚀 Feature
description: File a Feature
title: "<title>"
labels: [feature, needs triage]
assignees:
- epicfaace
- jacqueswho
- heath-freenome
body:
- type: checkboxes
attributes:
label: Prerequisites
options:
- label: I have read the [documentation](https://react-jsonschema-form.readthedocs.io/)
required: true
- type: dropdown
id: theme
attributes:
label: What theme are you using?
options:
- core
- antd
- bootstrap-4
- chakra-ui
- fluent-ui
- material-ui
- semantic-ui
validations:
required: true
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is.
placeholder: |
Ex. I'm always frustrated when [...]
validations:
required: false
- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: false
- type: textarea
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/question_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ❔ Question
description: Ask a Question
title: "<title>"
labels: [question, needs triage]
assignees:
- epicfaace
- jacqueswho
- heath-freenome
body:
- type: checkboxes
attributes:
label: Prerequisites
options:
- label: I have read the [documentation](https://react-jsonschema-form.readthedocs.io/)
required: true
- type: dropdown
id: theme
attributes:
label: What theme are you using?
options:
- core
- antd
- bootstrap-4
- chakra-ui
- fluent-ui
- material-ui
- semantic-ui
validations:
required: true
- type: textarea
attributes:
label: What is your question?
validations:
required: false
17 changes: 17 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 639 # 1.75 years
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 14
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Please
leave a comment if this is still an issue for you. Thank you.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.4.0
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm run cs-check

- name: Build with Netlify badge
if: github.ref != 'refs/heads/master'
run: npm run build
Expand All @@ -31,22 +31,22 @@ jobs:
- name: Build
if: github.ref == 'refs/heads/master'
run: npm run build
- if: matrix.node-version == '14.x'
uses: actions/upload-artifact@v2

- if: matrix.node-version == '16.x'
uses: actions/upload-artifact@v3
with:
name: dist
path: packages/playground/build
- run: npm test

deploy_preview:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master'
name: "Deploy preview (https://deploy-preview-${{ github.event.pull_request.number }}--rjsf.netlify.app/)"
needs: [build]
steps:
- name: Download built files
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist
path: dist
Expand All @@ -58,36 +58,36 @@ jobs:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}

deploy_playground:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
name: Deploy playground to GitHub Pages
needs: [build]
steps:
- name: Download built files
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Deploy playground
uses: crazy-max/ghaction-github-pages@v2.5.0
uses: crazy-max/ghaction-github-pages@v3.0.0
with:
keep_history: true
target-branch: gh-pages
target_branch: gh-pages
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# deploy_canary:
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/master'
# name: Deploy canary version of packages to npm
# needs: [build]
# steps:
# - uses: actions/checkout@v2
# - uses: actions/checkout@v3
# - name: Use Node.js 14.x
# uses: actions/setup-node@v2.4.0
# uses: actions/setup-node@v3
# with:
# node-version: 14.x
# - run: npm ci
Expand All @@ -101,9 +101,9 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4
with:
python-version: 3.6
- run: pip install -r requirements.docs.txt
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/issue-triage-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: issue-triage-automation

on:
issues:
types: [opened]

jobs:
automate-issues-labels:
runs-on: ubuntu-latest
steps:
- uses: andymckay/labeler@1.0.4
with:
add-labels: "needs triage"
ignore-if-labeled: true
Loading

0 comments on commit a33d9d8

Please sign in to comment.