8000 feat: plugin · astahmer/ts-plugin-filter-suggestions@281b8da · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 281b8da

Browse files
committed
feat: plugin
1 parent 763ac60 commit 281b8da

16 files changed

+10610
-104
lines changed

biome.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"files": {
4+
"ignoreUnknown": false,
5+
"ignore": [
6+
"**/node_modules/**",
7+
"**/dist/**",
8+
"**/migrations/**",
9+
"**/routeTree.gen.ts"
10+
]
11+
},
12+
"organizeImports": {
13+
"enabled": true
14+
},
15+
"formatter": {
16+
"enabled": true
17+
},
18+
"linter": {
19+
"enabled": false
20+
}
21+
}

example/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
2+
"typescript.tsdk": "node_modules/typescript/lib"
33
}

example/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Edit this file to trigger the TSServer commands.
22

3-
const anExampleVariable = "Hello World"
4-
console.log(anExampleVariable)
5-
a
3+
const anExampleVariable = "Hello World";
4+
console.log(anExampleVariable);
5+
a;

example/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "example-tsc-codebase",
3-
"dependencies": {
4-
"ts-plugin-filter-suggestions": "link:..",
5-
"typescript": "*"
6-
}
2+
"name": "example-tsc-codebase",
3+
"dependencies": {
4+
"ts-plugin-filter-suggestions": "link:..",
5+
"typescript": "*"
6+
}
77
}

example/tsconfig.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"compilerOptions": {
3-
// This matches the package name given in this package.json
4-
"plugins": [
5-
{
6-
"name": "ts-plugin-filter-suggestions"
7-
}
8-
],
9-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
10-
/* Projects */
11-
/* Language and Environment */
12-
"target": "es2017", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
13-
/* Modules */
14-
"module": "commonjs", /* Specify what module code is generated. */
15-
/* Interop Constraints */
16-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
17-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
18-
/* Type Checking */
19-
"strict": true, /* Enable all strict type-checking options. */
20-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
21-
}
2+
"compilerOptions": {
3+
// This matches the package name given in this package.json
4+
"plugins": [
5+
{
6+
"name": "ts-plugin-filter-suggestions"
7+
}
8+
],
9+
/* Visit https://aka.ms/tsconfig.json to read more about this file */
10+
/* Projects */
11+
/* Language and Environment */
12+
"target": "es2017" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
13+
/* Modules */
14+
"module": "commonjs" /* Specify what module code is generated. */,
15+
/* Interop Constraints */
16+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
17+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
18+
/* Type Checking */
19+
"strict": true /* Enable all strict type-checking options. */,
20+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
21+
}
2222
}

package.json

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
{
2-
"name": "ts-plugin-filter-suggestions",
3-
"description": "A TypeScript Language Service Plugin that allows configuring filters for suggestions",
4-
"version": "0.0.1",
5-
"main": "./out/index.js",
6-
"scripts": {
7-
"build": "tsc",
8-
"watch": "tsc --watch",
9-
"test": "echo \"Error: no test specified\" && exit 1"
10-
},
11-
"dependencies": {
12-
"typescript": "^5.7.3"
13-
},
14-
"contributes": {
15-
"typescriptServerPlugins": [
16-
{
17-
"name": "ts-plugin-filter-suggestions"
18-
}
19-
]
20-
},
21-
"files": [
22-
"out"
23-
]
2+
"name": "ts-plugin-filter-suggestions",
3+
"description": "A TypeScript Language Service Plugin that allows configuring filters for suggestions",
4+
"version": "0.0.1",
5+
"main": "./out/index.js",
6+
"scripts": {
7+
"build": "tsc",
8+
"watch": "tsc --watch",
9+
"test": "vitest",
10+
"fmt": "pnpm biome check --fix --unsafe"
11+
},
12+
"dependencies": {
13+
"typescript": "^5.7.3"
14+
},
15+
"devDependencies": {
16+
"@biomejs/biome": "1.9.4",
17+
"vitest": "3.0.5"
18+
},
19+
"files": ["out"],
20+
"contributes": {
21+
"typescriptServerPlugins": [
22+
{
23+
"name": "ts-plugin-filter-suggestions"
24+
}
25+
]
26+
}
2427
}

0 commit comments

Comments
 (0)
0