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