-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add pre-commit config including biome and biome.json
- Loading branch information
Showing
10 changed files
with
197 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: mixed-line-ending | ||
- id: check-toml | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.7.4 | ||
hooks: | ||
- id: ruff | ||
types_or: [python, pyi, jupyter] | ||
args: [--fix] | ||
- id: ruff-format | ||
types_or: [python, pyi, jupyter] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.13.0 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: ["sqlmodel"] | ||
args: | ||
[ | ||
--ignore-missing-imports, | ||
--warn-redundant-casts, | ||
--no-namespace-packages, | ||
] | ||
|
||
- repo: https://github.com/rhysd/actionlint | ||
rev: "v1.7.4" | ||
hooks: | ||
- id: actionlint | ||
|
||
- repo: https://github.com/biomejs/pre-commit | ||
rev: "v0.5.0" | ||
hooks: | ||
- id: biome-check | ||
additional_dependencies: ["@biomejs/[email protected]"] | ||
|
||
exclude: "mondey_backend/openapi.json|frontend/src/lib/client" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"overrides": [ | ||
{ | ||
"include": ["*.svelte", "*.astro", "*.vue"], | ||
"linter": { | ||
"rules": { | ||
"style": { | ||
"useConst": "off", | ||
"useImportType": "off" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"linter": { | ||
"rules": { | ||
"suspicious": { | ||
"all": true, | ||
"noConsole": "off", | ||
"noConsoleLog": "off", | ||
"noExplicitAny": "off" | ||
}, | ||
"style": { | ||
"recommended": true | ||
}, | ||
"complexity": { | ||
"recommended": true, | ||
"noForEach": "off" | ||
}, | ||
"correctness": { | ||
"recommended": true | ||
}, | ||
"performance": { | ||
"recommended": true | ||
}, | ||
"security": { | ||
"all": true | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
const tailwindcss = require('tailwindcss'); | ||
const autoprefixer = require('autoprefixer'); | ||
const tailwindcss = require("tailwindcss"); | ||
const autoprefixer = require("autoprefixer"); | ||
|
||
const config = { | ||
plugins: [ | ||
//Some plugins, like tailwindcss/nesting, need to run before Tailwind, | ||
tailwindcss(), | ||
//But others, like autoprefixer, need to run after, | ||
autoprefixer | ||
] | ||
autoprefixer, | ||
], | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<script> | ||
import '../app.pcss'; | ||
import "../app.pcss"; | ||
</script> | ||
|
||
<slot /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; | ||
import adapter from '@sveltejs/adapter-static'; | ||
import adapter from "@sveltejs/adapter-static"; | ||
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; | ||
|
||
/** @type {import('@sveltejs/kit').Config} */ | ||
const config = { | ||
kit: { | ||
adapter: adapter(), | ||
paths: { | ||
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH | ||
} | ||
base: process.argv.includes("dev") ? "" : process.env.BASE_PATH, | ||
}, | ||
}, | ||
|
||
preprocess: [vitePreprocess({})] | ||
preprocess: [vitePreprocess({})], | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
/** @type {import('tailwindcss').Config}*/ | ||
const config = { | ||
content: [ | ||
'./src/**/*.{html,js,svelte,ts}', | ||
'./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}', | ||
'./node_modules/flowbite-svelte-icons/**/*.{html,js,svelte,ts}' | ||
"./src/**/*.{html,js,svelte,ts}", | ||
"./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}", | ||
"./node_modules/flowbite-svelte-icons/**/*.{html,js,svelte,ts}", | ||
], | ||
plugins: [require('flowbite/plugin')], | ||
darkMode: 'class', | ||
plugins: [require("flowbite/plugin")], | ||
darkMode: "class", | ||
theme: { | ||
extend: { | ||
colors: { | ||
primary: { | ||
50: '#f8fafc', | ||
100: '#f1f5f9', | ||
200: '#e2e8f0', | ||
300: '#cbd5e1', | ||
400: '#94a3b8', | ||
500: '#64748b', | ||
600: '#475569', | ||
700: '#334155', | ||
800: '#1e293b', | ||
900: '#0f172a' | ||
} | ||
} | ||
} | ||
} | ||
50: "#f8fafc", | ||
100: "#f1f5f9", | ||
200: "#e2e8f0", | ||
300: "#cbd5e1", | ||
400: "#94a3b8", | ||
500: "#64748b", | ||
600: "#475569", | ||
700: "#334155", | ||
800: "#1e293b", | ||
900: "#0f172a", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { defineConfig } from 'vite' | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
import { sveltekit } from "@sveltejs/kit/vite"; | ||
import { defineConfig } from "vite"; | ||
|
||
export default defineConfig({ | ||
plugins: [sveltekit()] | ||
plugins: [sveltekit()], | ||
}); |