Skip to content

Commit ab11915

Browse files
committed
upgrade package
1 parent d617f0e commit ab11915

File tree

15 files changed

+5556
-2912
lines changed

15 files changed

+5556
-2912
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Config helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
# We recommend you to keep these unchanged
9+
indent_style = space
10+
indent_size = 4
11+
end_of_line = lf
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
quote_type = single
16+
max_line_length = 120
17+
18+
[*.md]
19+
trim_trailing_whitespace = false

.eslintignore

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

.eslintrc

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
2+
3+
The best way to propose a feature is to open an issue first and discuss your ideas there before implementing them.
4+
5+
Always follow the [contribution guidelines](https://github.com/imagine10255/acrool-react-table/blob/master/CONTRIBUTING.md) when submitting a pull request.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/test-on-release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test on Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
tags:
9+
- 'v[0-9]+.[0-9]+.[0-9]+'
10+
pull_request:
11+
branches:
12+
- main
13+
- develop
14+
15+
jobs:
16+
test:
17+
if: github.event_name == 'push' || github.event_name == 'pull_request'
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: '20'
27+
cache: 'yarn'
28+
29+
- name: Install dependencies
30+
run: yarn install --frozen-lockfile
31+
32+
- name: Run tests
33+
run: yarn test
34+
35+

__tests__/utils.spec.ts

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

eslint.config.mjs

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import simpleImportSort from 'eslint-plugin-simple-import-sort';
2+
import react from 'eslint-plugin-react';
3+
import tsparser from '@typescript-eslint/parser';
4+
import stylisticTs from '@stylistic/eslint-plugin-ts';
5+
6+
7+
export default [
8+
{
9+
ignores: [
10+
],
11+
},
12+
{
13+
files: ["**/*.ts", "**/*.tsx"],
14+
15+
languageOptions: {
16+
parser: tsparser,
17+
},
18+
19+
plugins: {
20+
"simple-import-sort": simpleImportSort,
21+
'@stylistic/ts': stylisticTs,
22+
react
23+
},
24+
25+
rules: {
26+
quotes: ["warn", "single"],
27+
"simple-import-sort/imports": "warn",
28+
semi: ["warn", "always"],
29+
indent: ["warn", 4],
30+
"object-curly-spacing": ["warn", "never"],
31+
"jsx-a11y/alt-text": "off",
32+
"jsx-a11y/anchor-is-valid": "off",
33+
"import/first": "off",
34+
"import/no-anonymous-default-export": "off",
35+
"react-hooks/exhaustive-deps": "off",
36+
"no-useless-escape": "off",
37+
"react/jsx-boolean-value": "warn",
38+
"@typescript-eslint/no-unused-vars": "off",
39+
"@stylistic/ts/member-delimiter-style": ["warn", {
40+
multiline: {
41+
delimiter: "comma",
42+
requireLast: true,
43+
},
44+
singleline: {
45+
delimiter: "comma",
46+
requireLast: false,
47+
},
48+
overrides: {
49+
interface: {
50+
multiline: {
51+
delimiter: "none",
52+
requireLast: false,
53+
},
54+
},
55+
},
56+
}],
57+
},
58+
},
59+
];

example/package.json

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,40 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
8-
"build": "tsc && vite build",
9-
"preview": "vite preview",
10-
"pages:dev": "wrangler pages dev --proxy 3000 -- yarn dev",
11-
"pages:deploy": "NODE_VERSION=18 yarn build && wrangler pages deploy ./dist"
7+
"dev": "vite"
128
},
139
"resolutions": {
1410
"styled-components": "6.1.17"
1511
},
1612
"dependencies": {
17-
"@acrool/react-grid": "6.0.2",
18-
"@acrool/react-providers": "link:..",
19-
"@acrool/react-table": "5.1.12",
20-
"@types/dom-to-image": "^2.6.7",
21-
"@types/styled-components": "^5.1.26",
22-
"@swc/plugin-styled-components": "6.8.2",
23-
"dom-to-image": "^2.6.0",
24-
"react": "^19.1.0",
25-
"react-dom": "^19.1.0",
26-
"styled-components": "6.1.17"
27-
},
28-
"devDependencies": {
29-
"@emotion/is-prop-valid": "^1.2.2",
30-
"@types/react": "^19.1.2",
31-
"@types/react-dom": "^19.1.2",
32-
"@vitejs/plugin-react-swc": "^3.0.0",
33-
"typescript": "^4.9.3",
34-
"vite": "^4.5.3",
35-
"vite-plugin-svgr": "^4.2.0",
36-
"wrangler": "3.26.0"
13+
"@acrool/js-utils": "^3.2.20",
14+
"@acrool/react-grid": "^6.0.5",
15+
"@acrool/react-providers": "link:..",
16+
"@chromatic-com/storybook": "^1.5.0",
17+
"@emotion/is-prop-valid": "^1.2.2",
18+
"@storybook/addon-essentials": "^8.1.10",
19+
"@storybook/addon-interactions": "^8.1.10",
20+
"@storybook/addon-links": "^8.1.10",
21+
"@storybook/addon-onboarding": "^8.1.10",
22+
"@storybook/blocks": "^8.1.10",
23+
"@storybook/react": "^8.1.10",
24+
"@storybook/react-vite": "^8.1.10",
25+
"@storybook/test": "^8.1.10",
26+
"@swc/core": "^1.3.68",
27+
"@swc/plugin-styled-components": "^6.8.2",
28+
"@types/dom-to-image": "^2.6.7",
29+
"@types/react": "^19.1.2",
30+
"@types/react-dom": "^19.1.2",
31+
"@vitejs/plugin-react-swc": "^3.0.0",
32+
"dom-to-image": "^2.6.0",
33+
"react": "link:../node_modules/react",
34+
"react-dom": "link:../node_modules/react-dom",
35+
"sass": "^1.77.1",
36+
"storybook": "^8.1.10",
37+
"storybook-dark-mode": "^4.0.2",
38+
"styled-components": "6.1.17",
39+
"typescript": "^5.2.2",
40+
"vite": "^6.3.4",
41+
"vite-plugin-svgr": "^4.2.0"
3742
}
3843
}

example/src/main.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import App from './App';
44
import './index.css';
5-
import '@acrool/react-table/dist/index.css';
6-
import '@acrool/react-table/dist/themes/acrool.css';
75
import '@acrool/react-grid/dist/index.css';
86

97
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(

0 commit comments

Comments
 (0)