initial version.
feat: automatically run vite dev server when in Debugger mode. feat: supports hotreload on both js frontend and .net backend.
This commit is contained in:
1 parent
f925e00540
commit
5c81ed18b2
25 files changed
+743
No files matched your search
@@ -0,0 +1,52 @@
|
||||
import js from "@eslint/js";
|
||||
import globals from "globals";
|
||||
import tseslint from "typescript-eslint";
|
||||
import { defineConfig } from "eslint/config";
|
||||
|
||||
export default defineConfig([
|
||||
tseslint.configs.recommended,
|
||||
{
|
||||
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
|
||||
plugins: { js },
|
||||
extends: ["js/recommended"],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
__SITE_PATH__: 'readonly',
|
||||
__SERVER_DATA__: 'readonly'
|
||||
}
|
||||
},
|
||||
// add your custom rules here
|
||||
rules: {
|
||||
// 'indent': ['error', 4, {
|
||||
// 'SwitchCase': 1
|
||||
// }],
|
||||
"indent": "off",
|
||||
"linebreak-style": "off",
|
||||
"max-len": "off",
|
||||
//"no-console": [
|
||||
// "error",
|
||||
// { "allow": ["warn", "error"] }
|
||||
//],
|
||||
"no-console": "warn",
|
||||
"no-continue": "off",
|
||||
"no-debugger": "error",
|
||||
"no-empty": "off",
|
||||
"no-undef": "off",
|
||||
"no-unused-vars": "off",
|
||||
"no-redeclare": "off",
|
||||
"no-mixed-operators": [
|
||||
"error",
|
||||
{
|
||||
"groups": [["&&", "||"]]
|
||||
}
|
||||
],
|
||||
//"no-nested-ternary": "off",
|
||||
//"no-param-reassign": "off",
|
||||
//"no-underscore-dangle": "off",
|
||||
//"no-void": "off",
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"@typescript-eslint/triple-slash-reference": "off",
|
||||
},
|
||||
},
|
||||
]);
|
||||
Reference in new issue
Block a user