Skip to content

Commit c8eb66a

Browse files
author
Your Name
committed
Disable TSC autodetection, print stack on exceptions, fix lint and dependencies
1 parent 5430975 commit c8eb66a

File tree

23 files changed

+536
-482
lines changed

23 files changed

+536
-482
lines changed

.eslintrc.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"editor.defaultFormatter": "ms-vscode.cpptools"
77
},
88
"cmake.configureOnOpen": false,
9-
"makefile.configureOnOpen": false
9+
"makefile.configureOnOpen": false,
10+
"typescript.tsc.autoDetect": "off",
1011
}

eslint.config.mjs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
6+
export default [
7+
{files: ["**/*.{js,mjs,cjs,ts}"]},
8+
{languageOptions: { globals: globals.browser }},
9+
pluginJs.configs.recommended,
10+
...tseslint.configs.recommended,
11+
{
12+
rules: {
13+
"no-unused-vars": "off",
14+
"@typescript-eslint/no-unused-vars": [
15+
"error", // or "error"
16+
{
17+
"argsIgnorePattern": "^_",
18+
"varsIgnorePattern": "^_",
19+
"caughtErrorsIgnorePattern": "^_"
20+
}
21+
]
22+
}
23+
}
24+
];

0 commit comments

Comments
 (0)