Fixed some lint
This commit is contained in:
parent
1a790a597d
commit
bb42e2a56f
|
@ -18,7 +18,7 @@ on:
|
|||
# The branches below must be a subset of the branches above
|
||||
branches: ["main"]
|
||||
schedule:
|
||||
- cron: '42 0 * * 6'
|
||||
- cron: "42 0 * * 6"
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'javascript' ]
|
||||
language: ["javascript"]
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
||||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
||||
|
||||
|
@ -52,7 +52,6 @@ jobs:
|
|||
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
||||
# queries: security-extended,security-and-quality
|
||||
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -p 12499",
|
||||
"precommit": "npm run prettier && npm run unused-exports && npm run eslint && npm run tsc && npm run generate && echo ALL PRECOMMIT CHECKS PASSED SUCCESSFULLY, LET\\'S FUCKING GO!",
|
||||
"precommit": "npm run generate && npm run prettier && npm run unused-exports && npm run eslint && npm run tsc && echo ALL PRECOMMIT CHECKS PASSED SUCCESSFULLY, LET\\'S FUCKING GO!",
|
||||
"unused-exports": "ts-unused-exports ./tsconfig.json --excludePathsFromReport=src/pages --ignoreFiles=generated",
|
||||
"prebuild": "npm run generate",
|
||||
"build": "next build",
|
||||
|
|
|
@ -34,11 +34,11 @@ type Recursive<T, Path extends unknown[]> = PathHead<Path> extends keyof T
|
|||
|
||||
type Split<
|
||||
Str,
|
||||
Cache extends string[] = []
|
||||
> = Str extends `${infer Method}.${infer PathRest}`
|
||||
? Split<PathRest, [...Cache, Method]>
|
||||
: Str extends `${infer PathLast}`
|
||||
? [...Cache, PathLast]
|
||||
Acc extends string[] = []
|
||||
> = Str extends `${infer Head}.${infer Rest}`
|
||||
? Split<Rest, [...Acc, Head]>
|
||||
: Str extends `${infer Last}`
|
||||
? [...Acc, Last]
|
||||
: never;
|
||||
|
||||
export type SelectiveNonNullable<T, P extends PathDot<T>> = Recursive<
|
||||
|
|
Loading…
Reference in New Issue