Skip to content

Commit

Permalink
Merge pull request #333 from csandman/v5
Browse files Browse the repository at this point in the history
V5
  • Loading branch information
csandman authored Oct 11, 2024
2 parents b49461f + dbb3c77 commit 55ececd
Show file tree
Hide file tree
Showing 57 changed files with 5,836 additions and 477 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Core files
node_modules/
dist/
tmp/

# Codemod generated files
codemod/**/*.js
codemod/**/*.d.ts
50 changes: 31 additions & 19 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,20 @@
"@typescript-eslint"
],
"rules": {
"deprecation/deprecation": "warn",
"no-console": "error",
"curly": [
"error",
"all"
],
"no-underscore-dangle": "off",
"deprecation/deprecation": "warn",
"import/prefer-default-export": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-key": "error",
"no-console": "error",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/jsx-filename-extension": [
"error",
{
Expand All @@ -49,29 +52,38 @@
]
}
],
"react/function-component-definition": [
"react/jsx-key": "error",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/ban-types": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
"types": {
"{}": false
}
}
],
"react/react-in-jsx-scope": "off",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/consistent-type-imports": [
"warn",
{
"prefer": "type-imports",
"disallowTypeAnnotations": true
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"{}": false
}
}
]
}
},
"overrides": [
{
"files": [
"codemod/**/*.ts"
],
"rules": {
"no-console": "off",
"@typescript-eslint/no-var-requires": "off",
"import/no-dynamic-require": "off",
"global-require": "off"
}
}
]
}
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ body:
- label: "Linux"
- label: "iOS/iPadOS"
- label: "Android"
- type: dropdown
id: package-manager
attributes:
label: Package Manager
description: What package manager is your project set up with?
options:
- NPM
- Yarn
- PNPM
- Other/I don't know
default: 0
- type: "textarea"
id: "additional-information"
attributes:
Expand Down
Binary file added .github/images/check-selected-option.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/color-selected-option.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/custom-borders.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/demo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/demo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/filled-variant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/invalid-disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/purple-selected-option-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/purple-selected-option-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/sizes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/tag-color-schemes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/tag-variants.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/variant-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/variant-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 0 additions & 29 deletions .github/workflows/build.yml

This file was deleted.

21 changes: 12 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Lint

on:
Expand All @@ -14,16 +11,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- name: Use Node.js v20.x
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: "npm"

- name: Install Dependencies
run: npm ci

- name: Lint code and types
run: npm run lint --if-present
- name: Lint code
run: npm run lint:src

- name: Lint types
run: npm run lint:types

- name: Build and lint exports
run: npm run build && npm run lint:exports
10 changes: 4 additions & 6 deletions .github/workflows/package-size-report.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Package Size Report

on:
pull_request:
branches: [main]
on: pull_request

jobs:
pkg-size-report:
Expand All @@ -11,12 +9,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "16" # ⬅ Specify a version of Node.js to build your app
node-version: 20

- name: Package size report
uses: pkg-size/action@v1
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Chris Sandvik
Copyright (c) 2024 Chris Sandvik

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
Loading

0 comments on commit 55ececd

Please sign in to comment.