Skip to content

Commit f5fa525

Browse files
committed
update the whole repository setup
1 parent 3c0cdd3 commit f5fa525

File tree

30 files changed

+8507
-18714
lines changed

30 files changed

+8507
-18714
lines changed

.babelrc

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

.eslintrc.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
{
22
"extends": [
33
"plugin:@typescript-eslint/recommended",
4-
"react-app",
5-
"prettier",
6-
"prettier/@typescript-eslint",
7-
"prettier/react"
4+
"plugin:react/recommended",
5+
"plugin:react-hooks/recommended",
6+
"prettier"
87
],
9-
"plugins": ["@typescript-eslint/eslint-plugin"],
8+
"plugins": ["@typescript-eslint"],
9+
"parser": "@typescript-eslint/parser",
10+
"parserOptions": {
11+
"ecmaVersion": 2020,
12+
"sourceType": "module",
13+
"ecmaFeatures": {
14+
"jsx": true
15+
}
16+
},
17+
"settings": {
18+
"react": {
19+
"version": "detect"
20+
}
21+
},
1022
"rules": {
1123
"@typescript-eslint/explicit-function-return-type": 0,
12-
"@typescript-eslint/ban-ts-ignore": 0,
24+
"@typescript-eslint/ban-ts-comment": 0,
1325
"@typescript-eslint/explicit-module-boundary-types": 0,
1426
"@typescript-eslint/ban-types": 0
1527
}

.github/workflows/github-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16-
- name: Use Node.js 18.x
16+
- name: Use Node.js 22.x
1717
uses: actions/setup-node@v1
1818
with:
19-
node-version: 18.x
19+
node-version: 22.x
2020

2121
# setup cache
2222
- name: Get yarn cache directory path

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22

.storybook/custom-theme.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { create } from 'storybook/theming'
2+
3+
export default create({
4+
base: 'light',
5+
brandTitle: 'react-easy-sort',
6+
brandUrl: 'https://valentinh.github.io/react-easy-sort',
7+
brandTarget: '_self',
8+
})

.storybook/main.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
module.exports = {
1+
import type { StorybookConfig } from '@storybook/nextjs-vite'
2+
3+
const config: StorybookConfig = {
4+
framework: '@storybook/nextjs-vite',
25
stories: ['../stories/**/*.stories.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
3-
addons: ['@storybook/addon-essentials', '@storybook/addon-links'],
6+
addons: ['@storybook/addon-links', '@storybook/addon-docs'],
47
}
8+
9+
export default config

.storybook/manager.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
import { addons } from '@storybook/addons'
2-
import { create } from '@storybook/theming'
3-
4-
const theme = create({
5-
base: 'light',
6-
brandTitle: 'react-easy-sort',
7-
})
1+
import { addons } from 'storybook/manager-api'
2+
import customTheme from './custom-theme'
83

94
addons.setConfig({
10-
theme,
5+
theme: customTheme,
116
})

.storybook/preview.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import './tailwind.css'
2+
3+
import type { Preview } from '@storybook/react'
4+
5+
const preview: Preview = {
6+
parameters: {
7+
controls: {
8+
matchers: {
9+
color: /(background|color)$/i,
10+
date: /Date$/,
11+
},
12+
},
13+
},
14+
}
15+
16+
export default preview

.storybook/tailwind.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "tailwindcss";

next.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
// This is only needed for Storybook
4+
}
5+
6+
module.exports = nextConfig

0 commit comments

Comments
 (0)