Skip to content

Commit db81eb3

Browse files
committed
vscode: Update eslint
1 parent 09ab79a commit db81eb3

4 files changed

Lines changed: 553 additions & 1028 deletions

File tree

ggsql-vscode/eslint.config.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { defineConfig } from "eslint/config";
2+
import tseslint from "@typescript-eslint/eslint-plugin";
3+
import tsparser from "@typescript-eslint/parser";
4+
5+
export default defineConfig([
6+
{
7+
files: ["src/**/*.ts"],
8+
languageOptions: {
9+
parser: tsparser,
10+
parserOptions: {
11+
projectService: true,
12+
},
13+
},
14+
plugins: {
15+
"@typescript-eslint": tseslint,
16+
},
17+
rules: {
18+
semi: "error",
19+
"prefer-const": "error",
20+
},
21+
},
22+
]);

0 commit comments

Comments
 (0)