Skip to content

Commit

Permalink
Merge pull request #120 from zardoy/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy authored Apr 5, 2023
2 parents 8f884d1 + b23baeb commit fcc38d1
Show file tree
Hide file tree
Showing 68 changed files with 1,844 additions and 1,559 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# ignore files that have typescript import
typescript/**
src/configurationType.ts
src/configurationTypeCache.jsonc
playground.ts
Expand Down
59 changes: 57 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,61 @@
{
"extends": "zardoy",
"rules": {
"curly": "off"
}
"curly": "off",
"import/no-deprecated": "off",
// investigate why it is soooo slow...
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"default-case": "off",
"sonarjs/no-duplicate-string": "off",
"@typescript-eslint/naming-convention": "off",
"no-empty-function": "off",
"no-useless-return": "off",
"no-template-curly-in-string": "off",
"@typescript-eslint/no-explicit-any": "off",
// better to fix rule
"unicorn/consistent-destructuring": "off",
"@typescript-eslint/no-restricted-imports": [
"error",
{
"patterns": [
{
"group": [
"typescript*",
"!../*"
],
"message": "Use global ts type and variable instead"
// "allowTypeImports": true
}
]
}
]
},
"overrides": [
{
"files": "typescript/**",
"parserOptions": {
"project": "typescript/tsconfig.json"
},
"rules": {
"@typescript-eslint/padding-line-between-statements": "off",
"arrow-body-style": "off",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/no-loop-func": "off",
// always used intentionally as workaround for possibly undefined types (to not declare super complex types - cases)
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
// todo configure instead
"complexity": "off",
"max-params": "off",
"max-depth": "off",
"@typescript-eslint/dot-notation": "off",
"no-bitwise": "off",
// todo just not sure
"@typescript-eslint/prefer-regexp-exec": "off",
"no-negated-condition": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"unicorn/prefer-set-has": "off"
}
}
]
}
19 changes: 2 additions & 17 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,8 @@
}
},
"tsEssentialPlugins.suggestions.ignoreAutoImports": [
"typescript-full"
],
"betterSnippets.customSnippets": [
{
"name": "SyntaxKind",
"body": "ts.SyntaxKind",
"when": {}
},
{
"name": "logKind",
"body": "console.log(ts.SyntaxKind[${1:node}!.kind])",
"when": {
"locations": [
"lineStart"
],
}
}
"typescript-full",
"@volar/language-service/*"
],
"githubPullRequests.ignoredPullRequestBranches": [
"develop"
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
"command": "goToNodeBySyntaxKindWithinSelection",
"title": "Go to Node by Syntax Kind Within Selection",
"category": "TS Essentials"
},
{
"command": "insertNameOfCompletion",
"title": "Insert Name of Completion",
"category": "TS Essentials"
}
],
"keybindings": [
Expand Down Expand Up @@ -98,7 +103,7 @@
"watch-plugin": "node buildTsPlugin.mjs --watch",
"build": "tsc && tsc -p typescript --noEmit && vscode-framework build && pnpm build-plugin",
"build-plugin": "node buildTsPlugin.mjs && node buildTsPlugin.mjs --browser",
"lint": "eslint src/**",
"lint": "eslint {src/**,typescript/src/**}",
"test": "pnpm test-plugin --run && pnpm integration-test",
"test-plugin": "vitest --globals --dir typescript/test/ --environment ts-plugin",
"integration-test": "node integration/prerun.mjs && tsc -p tsconfig.test.json && node testsOut/runTests.js",
Expand All @@ -119,7 +124,7 @@
"tsm": "^2.3.0",
"type-fest": "^2.13.1",
"typed-jsonfile": "^0.2.1",
"typescript": "^4.9.3",
"typescript": "^5.0.2",
"vite": "^4.1.1",
"vitest": "^0.26.0",
"vitest-environment-ts-plugin": "./vitest-environment-ts-plugin",
Expand Down
Loading

0 comments on commit fcc38d1

Please sign in to comment.