chore(pre-commit): fix tests failing to quickly, added eslint for typings
parent
f6706fdcd3
commit
6f64fe7c7a
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
pnpm run test && pnpm exec lint-staged
|
||||
pnpm run test && pnpm run lint-staged
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
test: {}
|
||||
test: { testTimeout: 30 * 1000 }
|
||||
});
|
||||
|
@ -0,0 +1,19 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": false,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 12,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": ["@typescript-eslint", "prettier"],
|
||||
"rules": {
|
||||
"prettier/prettier": "error",
|
||||
"linebreak-style": ["error", "unix"],
|
||||
"no-mixed-spaces-and-tabs": "off",
|
||||
"no-case-declarations": 0
|
||||
}
|
||||
}
|
Loading…
Reference in new issue