Skip to content

Commit 4704e02

Browse files
authored
Add parsing of partials and imports (#8)
* chore: move types to devdeps * chore: refactor to get rid of as and wrap blocks * chore: add tests for partial defs * chore: Fix tests * chore: Migrate to use types * feat: Implement import syntax
1 parent 921e3ee commit 4704e02

6 files changed

Lines changed: 968 additions & 718 deletions

File tree

eslint.config.mts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ export default tseslint.config(
3737
"@typescript-eslint/no-empty-object-type": "off",
3838
"@typescript-eslint/no-explicit-any": "warn",
3939
"@typescript-eslint/only-throw-error": "off",
40+
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
41+
"@typescript-eslint/no-unused-vars": [
42+
"error",
43+
{
44+
args: "all",
45+
argsIgnorePattern: "^_",
46+
caughtErrors: "all",
47+
caughtErrorsIgnorePattern: "^_",
48+
destructuredArrayIgnorePattern: "^_",
49+
varsIgnorePattern: "^_",
50+
ignoreRestSiblings: true,
51+
},
52+
],
4053
"@typescript-eslint/restrict-template-expressions": [
4154
"error",
4255
{ allowNumber: true },

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
"dts": true
5858
},
5959
"dependencies": {
60-
"@types/parsimmon": "^1.10.9",
6160
"parsimmon": "^1.18.1"
6261
},
6362
"devDependencies": {
6463
"@arethetypeswrong/cli": "^0.18.2",
6564
"@eslint/js": "^9.39.1",
6665
"@types/node": "^24.10.1",
66+
"@types/parsimmon": "^1.10.9",
6767
"@typescript-eslint/parser": "^8.48.1",
6868
"eslint": "^9.39.1",
6969
"eslint-import-resolver-typescript": "^4.4.4",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)