Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/publish.yaml
#	yarn.lock
  • Loading branch information
alampros committed Dec 27, 2024
2 parents 510e1fd + 9c84a99 commit 01aa6bc
Show file tree
Hide file tree
Showing 40 changed files with 13,326 additions and 14,054 deletions.
Binary file added .DS_Store
Binary file not shown.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

65 changes: 0 additions & 65 deletions .eslintrc.js

This file was deleted.

21 changes: 13 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/checkout@v4

- name: Setup Biome
uses: biomejs/setup-biome@v2
- name: Lint
run: biome ci

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 16
cache: 'yarn'
- run: yarn
- run: yarn semantic-release
node-version: 20
- run: npm ci
- run: npm run semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn build-storybook
- run: npm run build-storybook
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
Expand Down
4 changes: 0 additions & 4 deletions .storybook/addons.js

This file was deleted.

26 changes: 0 additions & 26 deletions .storybook/config.js

This file was deleted.

12 changes: 12 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: ["@storybook/addon-essentials"],
framework: {
name: "@storybook/react-vite",
options: {},
},
staticDirs: ["./public"],
};
export default config;
16 changes: 0 additions & 16 deletions .storybook/webpack.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ npm install react-confetti

```jsx
import React from 'react'
import useWindowSize from 'react-use/lib/useWindowSize'
import { useWindowSize } from 'react-use'
import Confetti from 'react-confetti'

export default () => {
Expand Down Expand Up @@ -58,6 +58,7 @@ export default () => {
| `opacity` | `Number` | 1.0 | |
| `recycle` | `Bool` | true | Keep spawning confetti after `numberOfPieces` pieces have been shown. |
| `run` | `Bool` | true | Run the animation loop |
| `frameRate` | `Number \| undefined` | undefined | The capped frame rate of the animation. |
| `tweenDuration` | `Number` | 5000 | How fast the confetti is added |
| `tweenFunction` | `(currentTime: number, currentValue: number, targetValue: number, duration: number, s?: number) => number` | easeInOutQuad | See [tween-functions](https://github.com/chenglou/tween-functions) |
| `drawShape` | `(context: CanvasRenderingContext2D) => void` | `undefined` | See below |
Expand Down
14 changes: 0 additions & 14 deletions babel.config.js

This file was deleted.

64 changes: 64 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"ignore": [
"node_modules",
"dist",
"build",
".vscode",
"package.json",
"package-lock.json"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"formatWithErrors": true,
"lineWidth": 100
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"useImportType": "off",
"noNonNullAssertion": "off"
},
"suspicious": {
"noExplicitAny": "off"
},
"performance": {
"noDelete": "off",
"noAccumulatingSpread": "off"
},
"complexity": {
"noForEach": "off"
},
"correctness": {
"noUnusedImports": "warn"
}
}
},
"javascript": {
"formatter": {
"enabled": true,
"semicolons": "asNeeded",
"quoteStyle": "single",
"indentStyle": "space",
"lineWidth": 100,
"trailingCommas": "all"
},
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
},
"json": {
"formatter": {
"enabled": true
}
}
}
1 change: 0 additions & 1 deletion index.js

This file was deleted.

Loading

0 comments on commit 01aa6bc

Please sign in to comment.