Files
web-app/WebApplication1/Source/eslint.config.js
T
lchen 5c81ed18b2 initial version.
feat: automatically run vite dev server when in Debugger mode.
feat: supports hotreload on both js frontend and .net backend.
2026-10-21 14:11:15 +08:00

53 lines
1.6 KiB
JavaScript

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",
},
},
]);