-
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.
build: fixed eslint and types issues
- Loading branch information
1 parent
8dbfe54
commit 1e2f4a3
Showing
10 changed files
with
247 additions
and
66 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -52,12 +52,12 @@ | |
}, | ||
"scripts": { | ||
"debug": "ts-node -r tsconfig-paths/register -T --esm", | ||
"build": "vite build", | ||
"build": "vite build && pnpm build:types", | ||
"build:dev": "vite build --mode development", | ||
"build:watch": "vite build --watch --mode production", | ||
"build:types": "tsc -p tsconfig.types.json --emitDeclarationOnly && npm run build:types:fix", | ||
"build:types": "tsc -p tsconfig.types.json --emitDeclarationOnly && pnpm build:types:fix", | ||
"build:types:fix": "tsc-alias -p tsconfig.types.json --debug", | ||
"lint:eslint": "eslint \"{src,tests,demo/src}/**/*.{cjs,js,ts,vue}\" \"*.{cjs,js,ts}\" --max-warnings=1 --report-unused-disable-directives", | ||
"lint:eslint": "eslint \"src/**/*.{cjs,js,ts,vue}\" \"*.{cjs,js,ts}\" --max-warnings=1 --report-unused-disable-directives", | ||
"lint:types": "tsc --noEmit --pretty -p tsconfig.types.json", | ||
"lint:commits": "commitlint --from $(git rev-list --max-parents=0 HEAD) --to HEAD --verbose", | ||
"lint:imports": "madge --circular --extensions ts ./src", | ||
|
@@ -114,7 +114,8 @@ | |
}, | ||
"pnpm": { | ||
"overrides": { | ||
"vue": "^3.4.26" | ||
"vue": "^3.4.26", | ||
"eslint":"=9.12.0" | ||
} | ||
}, | ||
"author": "Alan <[email protected]>", | ||
|
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
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,12 +1,11 @@ | ||
{ | ||
// Here partly because eslint tends to think vue files aren't included even when they explicitly are | ||
// also here because I want to lint configs as well, but including them in the regular tsconfig can cause problems | ||
"extends": "./tsconfig.json", | ||
"extends": "@alanscodelog/tsconfigs", | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
}, | ||
"include": [ | ||
"**/*", | ||
"*" | ||
"demo/**/*.ts", | ||
"demo/**/*.vue", | ||
"tests/**/*.ts", | ||
] | ||
} |
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.