Skip to content

Commit cb92677

Browse files
authored
Merge pull request tisoap#53 from tisoap/chore/update-deps
Chore: Update devDependencies
2 parents 298c7b2 + 4029674 commit cb92677

File tree

10 files changed

+6411
-9439
lines changed

10 files changed

+6411
-9439
lines changed

.babelrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"sourceType": "unambiguous",
3+
"presets": [
4+
[
5+
"@babel/preset-env",
6+
{
7+
"targets": {
8+
"chrome": 100,
9+
"safari": 15,
10+
"firefox": 91
11+
}
12+
}
13+
],
14+
"@babel/preset-typescript",
15+
"@babel/preset-react"
16+
],
17+
"plugins": []
18+
}

.cspell.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"version": "0.2",
3+
"language": "en,lorem",
4+
"dictionaries": ["en_US", "en-gb", "fonts", "npm", "html", "css"],
5+
"ignorePaths": [".cspell.json", ".eslintrc.js", "package.json", "yarn.lock"],
6+
"allowCompoundWords": true,
7+
"words": [],
8+
"flagWords": []
9+
}

.eslintrc.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

.eslintrc.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parserOptions": {
3+
"project": ["./tsconfig.json"]
4+
},
5+
"plugins": ["prettier", "storybook"],
6+
"extends": [
7+
"@tisoap/eslint-config-ts-react",
8+
"plugin:prettier/recommended",
9+
"plugin:storybook/recommended"
10+
],
11+
"rules": {
12+
"react/no-multi-comp": "off",
13+
"prettier/prettier": ["error", {}, { "usePrettierrc": true }]
14+
},
15+
"overrides": [
16+
{
17+
"files": ["*.stories.tsx"],
18+
"rules": {
19+
"@typescript-eslint/await-thenable": "off"
20+
}
21+
}
22+
]
23+
}

.github/workflows/main.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,28 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout repo
14-
uses: actions/checkout@v3
13+
- name: Checkout
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
17+
cache: "yarn"
1718

18-
- name: Install Node 16
19+
- name: Install Node
1920
uses: actions/setup-node@v3
2021
with:
21-
node-version: "16"
22+
node-version: "18"
2223

23-
- name: Install dependencies
24-
uses: bahmutov/npm-install@v1
25-
with:
26-
install-command: yarn --frozen-lockfile --silent
24+
- name: Install Dependencies
25+
run: yarn --frozen-lockfile --silent
2726

28-
- name: Lint and Build
29-
run: yarn build
27+
- name: Check Types
28+
run: yarn check-types
3029

31-
- name: Run Storybook tests
32-
run: yarn test-storybook-ci
30+
- name: Lint
31+
run: yarn lint
32+
33+
- name: Build
34+
run: yarn build
3335

3436
- name: Publish to Chromatic
3537
uses: chromaui/action@v1

.github/workflows/stale.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Close inactive issues
22
on:
33
schedule:
4-
- cron: "30 1 * * *"
4+
- cron: '30 1 * * *'
55
workflow_dispatch:
66
jobs:
77
close-issues:
@@ -10,14 +10,14 @@ jobs:
1010
issues: write
1111
pull-requests: write
1212
steps:
13-
- uses: actions/stale@v5
13+
- uses: actions/stale@v8
1414
with:
1515
operations-per-run: 60
1616
days-before-issue-stale: 7
1717
days-before-issue-close: 7
18-
stale-issue-label: "stale"
19-
stale-issue-message: "This issue is stale because it has been open for 7 days with no activity."
20-
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
18+
stale-issue-label: 'stale'
19+
stale-issue-message: 'This issue is stale because it has been open for 7 days with no activity.'
20+
close-issue-message: 'This issue was closed because it has been inactive for 7 days since being marked as stale.'
2121
days-before-pr-stale: 7
2222
days-before-pr-close: 7
2323
exempt-issue-labels: pinned,security

.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

.storybook/main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ module.exports = {
44
typescript: {
55
check: true
66
},
7+
docs: {
8+
autodocs: true
9+
},
10+
framework: {
11+
name: "@storybook/react-webpack5",
12+
options: {}
13+
},
714
core: {
8-
builder: 'webpack5'
15+
disableWhatsNewNotifications: true
916
}
1017
}

package.json

Lines changed: 73 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"license": "MIT",
2121
"author": "Tiso Alvarez Puccinelli",
22+
"type": "module",
2223
"main": "dist/index.js",
2324
"module": "dist/react-flow-smart-edge.esm.js",
2425
"typings": "dist/index.d.ts",
@@ -29,7 +30,7 @@
2930
"scripts": {
3031
"build": "yarn build-storybook && yarn build-component",
3132
"build-component": "dts build",
32-
"build-storybook": "build-storybook",
33+
"build-storybook": "storybook build",
3334
"check-types": "tsc --noEmit",
3435
"chromatic": "chromatic --exit-zero-on-changes --project-token f5598c842f1a",
3536
"deploy-component": "np --any-branch",
@@ -40,78 +41,87 @@
4041
"predeploy": "yarn build",
4142
"prepare": "dts build",
4243
"start": "dts watch",
43-
"storybook": "start-storybook -p 6006 --ci",
44+
"storybook": "storybook dev -p 6006 --ci",
4445
"test": "yarn check-types && yarn lint && yarn test-storybook-ci",
4546
"test-storybook": "test-storybook",
46-
"test-storybook-ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"yarn build-storybook --quiet && http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && yarn test-storybook\"",
47+
"test-storybook-ci": "concurrently -k -s first -n 'SB,TEST' -c 'magenta,blue' 'http-server storybook-static --port 6006 --silent' 'wait-on tcp:6006 && yarn test-storybook --maxWorkers=2'",
4748
"ui": "yarn upgrade-interactive --latest"
4849
},
4950
"husky": {
5051
"hooks": {
5152
"pre-commit": "dts lint"
5253
}
5354
},
55+
"resolutions": {
56+
"string-width": "^4.2.3",
57+
"strip-ansi": "^6.0.1"
58+
},
5459
"dependencies": {
55-
"pathfinding": "0.4.18"
60+
"pathfinding": "^0.4.18"
5661
},
5762
"devDependencies": {
58-
"@babel/core": "7.20.2",
59-
"@babel/plugin-syntax-flow": "7.18.6",
60-
"@babel/plugin-transform-react-jsx": "7.19.0",
61-
"@babel/preset-typescript": "7.18.6",
62-
"@shopify/eslint-plugin": "42.0.1",
63-
"@storybook/addon-essentials": "6.5.13",
64-
"@storybook/addon-interactions": "6.5.13",
65-
"@storybook/addons": "6.5.13",
66-
"@storybook/builder-webpack5": "6.5.13",
67-
"@storybook/components": "6.5.13",
68-
"@storybook/core-events": "6.5.13",
69-
"@storybook/jest": "0.0.10",
70-
"@storybook/manager-webpack5": "6.5.13",
71-
"@storybook/react": "6.5.13",
72-
"@storybook/test-runner": "0.9.0",
73-
"@storybook/testing-library": "0.0.13",
74-
"@storybook/theming": "6.5.13",
75-
"@tisoap/eslint-config-ts-react": "7.0.0",
76-
"@types/node": "18.11.9",
77-
"@types/pathfinding": "0.0.6",
78-
"@types/react": "18.0.25",
79-
"@types/react-dom": "18.0.9",
80-
"@typescript-eslint/eslint-plugin": "5.43.0",
81-
"@typescript-eslint/parser": "5.43.0",
82-
"chromatic": "6.11.4",
83-
"concurrently": "7.5.0",
84-
"dts-cli": "1.6.0",
85-
"eslint": "8.28.0",
86-
"eslint-config-prettier": "8.5.0",
87-
"eslint-plugin-flowtype": "8.0.3",
88-
"eslint-plugin-import": "2.26.0",
89-
"eslint-plugin-jest-dom": "4.0.3",
90-
"eslint-plugin-jsx-a11y": "6.6.1",
91-
"eslint-plugin-prettier": "4.2.1",
92-
"eslint-plugin-react": "7.31.11",
93-
"eslint-plugin-react-hooks": "4.6.0",
94-
"eslint-plugin-react-prefer-function-component": "3.1.0",
95-
"eslint-plugin-sonarjs": "0.16.0",
96-
"eslint-plugin-storybook": "0.6.7",
97-
"eslint-plugin-testing-library": "5.9.1",
98-
"eslint-plugin-unicorn": "44.0.2",
99-
"gh-pages": "4.0.0",
100-
"http-server": "14.1.1",
101-
"husky": "8.0.2",
102-
"jest": "29.3.1",
103-
"jest-circus": "29.3.1",
104-
"jest-environment-node": "29.3.1",
105-
"np": "7.6.2",
106-
"playwright": "1.28.0",
107-
"prettier": "2.7.1",
108-
"react": "18.2.0",
109-
"react-dom": "18.2.0",
110-
"reactflow": "11.2.0",
111-
"require-from-string": "2.0.2",
112-
"typescript": "4.9.3",
113-
"wait-on": "6.0.1",
114-
"webpack": "5.75.0"
63+
"@babel/core": "^7.20.2",
64+
"@babel/plugin-syntax-flow": "^7.18.6",
65+
"@babel/plugin-transform-react-jsx": "^7.19.0",
66+
"@babel/preset-env": "^7.22.15",
67+
"@babel/preset-react": "^7.22.15",
68+
"@babel/preset-typescript": "^7.22.15",
69+
"@shopify/eslint-plugin": "^43.0.0",
70+
"@storybook/addon-essentials": "^7.4.0",
71+
"@storybook/addon-interactions": "^7.4.0",
72+
"@storybook/addons": "^7.4.0",
73+
"@storybook/components": "^7.4.0",
74+
"@storybook/core-events": "^7.4.0",
75+
"@storybook/jest": "^0.2.2",
76+
"@storybook/react": "^7.4.0",
77+
"@storybook/react-webpack5": "^7.4.0",
78+
"@storybook/test-runner": "^0.13.0",
79+
"@storybook/testing-library": "^0.2.0",
80+
"@storybook/theming": "^7.4.0",
81+
"@tisoap/eslint-config-ts-react": "^7.0.0",
82+
"@types/minimist": "^1.2.2",
83+
"@types/node": "^20.6.0",
84+
"@types/pathfinding": "^0.0.6",
85+
"@types/react": "^18.0.25",
86+
"@types/react-dom": "^18.0.9",
87+
"@typescript-eslint/eslint-plugin": "^6.6.0",
88+
"@typescript-eslint/parser": "^6.6.0",
89+
"chromatic": "^7.1.0",
90+
"concurrently": "^8.2.1",
91+
"dts-cli": "^2.0.3",
92+
"eslint": "^8.28.0",
93+
"eslint-config-prettier": "^9.0.0",
94+
"eslint-plugin-flowtype": "^8.0.3",
95+
"eslint-plugin-import": "^2.26.0",
96+
"eslint-plugin-jest-dom": "^5.1.0",
97+
"eslint-plugin-jsx-a11y": "^6.6.1",
98+
"eslint-plugin-prettier": "^5.0.0",
99+
"eslint-plugin-react": "^7.31.11",
100+
"eslint-plugin-react-hooks": "^4.6.0",
101+
"eslint-plugin-react-prefer-function-component": "^3.1.0",
102+
"eslint-plugin-sonarjs": "^0.21.0",
103+
"eslint-plugin-storybook": "^0.6.13",
104+
"eslint-plugin-testing-library": "^6.0.1",
105+
"eslint-plugin-unicorn": "^48.0.1",
106+
"gh-pages": "^6.0.0",
107+
"http-server": "^14.1.1",
108+
"husky": "^8.0.2",
109+
"jest": "^29.3.1",
110+
"jest-circus": "^29.3.1",
111+
"jest-environment-node": "^29.3.1",
112+
"np": "^8.0.4",
113+
"playwright": "^1.28.0",
114+
"prettier": "^3.0.3",
115+
"react": "^18.2.0",
116+
"react-dom": "^18.2.0",
117+
"reactflow": "^11.2.0",
118+
"require-from-string": "^2.0.2",
119+
"storybook": "^7.4.0",
120+
"string-width": "^4.2.3",
121+
"strip-ansi": "^6.0.1",
122+
"typescript": "^5.2.2",
123+
"wait-on": "^7.0.1",
124+
"webpack": "^5.75.0"
115125
},
116126
"peerDependencies": {
117127
"react": ">=17",
@@ -120,7 +130,7 @@
120130
"typescript": ">=4.6"
121131
},
122132
"engines": {
123-
"node": ">=16",
124-
"npm": "^8.0.0"
133+
"node": ">=18",
134+
"npm": ">=8"
125135
}
126136
}

0 commit comments

Comments
 (0)