-
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.
- Loading branch information
Showing
88 changed files
with
1,898 additions
and
971 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
# some (*)nix distros dont have /bin/bash | ||
|
||
echo "Frontend linting" | ||
(cd vinvoor && pnpm --silent run precommit:lint) | ||
if [ $? -ne 0 ]; then | ||
echo "Frontend linting failed. Please fix the errors before committing." | ||
exit 1 | ||
fi | ||
|
||
echo "Frontend typecheck" | ||
(cd vinvoor && pnpm --silent run precommit:typecheck) | ||
if [ $? -ne 0 ]; then | ||
echo "Frontend type checking failed. Please fix the errors before committing." | ||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,28 +1,24 @@ | ||
import { includeIgnoreFile } from "@eslint/compat"; | ||
import eslint from "@eslint/js"; | ||
import eslintConfigPrettier from "eslint-config-prettier"; | ||
import path, { dirname } from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import tseslint from "typescript-eslint"; | ||
import antfu from "@antfu/eslint-config"; | ||
|
||
const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
const gitignorePath = path.resolve(__dirname, ".gitignore"); | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommendedTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
includeIgnoreFile(gitignorePath), | ||
export default antfu( | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: true, | ||
tsconfigRootDir: __dirname, | ||
}, | ||
stylistic: { | ||
quotes: "double", | ||
semi: true, | ||
}, | ||
|
||
react: true, | ||
|
||
typescript: { | ||
tsconfigPath: "./tsconfig.json", | ||
}, | ||
|
||
formatters: true, | ||
|
||
rules: { | ||
"react-hooks/exhaustive-deps": "off", | ||
"ts/switch-exhaustiveness-check": "off", | ||
"ts/strict-boolean-expressions": "off", | ||
}, | ||
}, | ||
{ | ||
ignores: ["eslint.config.mjs", ".eslintrc.cjs"], | ||
}, | ||
eslintConfigPrettier, | ||
); |
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
Oops, something went wrong.