Skip to content

Commit

Permalink
refactor: rebase with new config
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriskk committed Dec 18, 2024
2 parents a2ffa03 + ea584e3 commit 3c5ddee
Show file tree
Hide file tree
Showing 46 changed files with 6,757 additions and 3,040 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
extends: ["@solvro/config/commitlint"],
};
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-name: "@solvro/config"
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: ["main"]
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Check commit name
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

- name: Format check
run: npm run format:check
if: always()

- name: Build
run: npm run build
if: always()
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx commitlint --edit "$1"
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
16 changes: 0 additions & 16 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
}
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { solvro } from "@solvro/config/eslint";

export default solvro();
10 changes: 5 additions & 5 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { NextConfig } from 'next';
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'cms.juwenalia.solvro.pl',
port: '',
pathname: '/assets/**',
protocol: "https",
hostname: "cms.juwenalia.solvro.pl",
port: "",
pathname: "/assets/**",
},
{
// Facebook CDN for posted images
Expand Down
Loading

0 comments on commit 3c5ddee

Please sign in to comment.