diff --git a/.editorConfig b/.editorConfig index c05d0021..ff6c8395 100644 --- a/.editorConfig +++ b/.editorConfig @@ -14,4 +14,9 @@ indent_size = 2 # Markdown files [*.md] -trim_trailing_whitespace = false \ No newline at end of file +trim_trailing_whitespace = false + +# Style files +[*.css] +indent_size = 4 + \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..302c3994 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,34 @@ +version: 2 +updates: + - package-ecosystem: "composer" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "monthly" + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "bundler" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "terraform" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 5e2b1429..f2b7945d 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -19,13 +19,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 + + - name: Install pnpm + uses: pnpm/action-setup@v4 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' - cache: 'npm' + cache: 'pnpm' - name: Install dependencies run: | @@ -33,16 +36,16 @@ jobs: pwd rm -rf **/node_modules rm -rf package-lock.json - npm install || true + pnpm install || true - name: Build Storybook - run: npm run build-storybook + run: pnpm build-storybook - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v4 with: path: './storybook-static' diff --git a/.husky/pre-commit b/.husky/pre-commit index 2718a1de..e3456b22 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx lint-staged --relative diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..c42da845 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict = true diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..eb858cce --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +.github +pnpm-lock.yaml +storybook-static diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..757fd64c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + "trailingComma": "es5" +} diff --git a/.storybook/main.ts b/.storybook/main.ts index dc8f6a7d..1371a1cc 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -11,11 +11,10 @@ const config: StorybookConfig = { "../**/src/**/*.stories.@(js|jsx|mjs|ts|tsx)", ], addons: [ - getAbsolutePath("@chromatic-com/storybook"), getAbsolutePath("@storybook/addon-docs"), - getAbsolutePath("@storybook/addon-onboarding"), getAbsolutePath("@storybook/addon-a11y"), getAbsolutePath("@storybook/addon-themes"), + getAbsolutePath("@storybook/addon-vitest"), ], framework: { name: getAbsolutePath("@storybook/react-vite"), @@ -40,7 +39,8 @@ const config: StorybookConfig = { check: true, skipCompiler: true, reactDocgenTypescriptOptions: { - propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true), + propFilter: (prop) => + prop.parent ? !/node_modules/.test(prop.parent.fileName) : true, }, }, }; diff --git a/.storybook/manager.ts b/.storybook/manager.ts index 5ae11ce7..3f85f86b 100644 --- a/.storybook/manager.ts +++ b/.storybook/manager.ts @@ -5,17 +5,17 @@ addons.setConfig({ theme: create({ base: "light", brandTitle: - '