tasmota-esp-web-tools
Version:
Web tools for ESP devices
38 lines (36 loc) • 1.02 kB
JavaScript
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";
import eslintPluginPrettier from "eslint-plugin-prettier";
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
{
plugins: {
prettier: eslintPluginPrettier,
},
rules: {
"no-console": "warn",
"prettier/prettier": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
"@typescript-eslint/ban-ts-comment": "off",
"no-control-regex": "off",
"prefer-const": "warn",
"no-var": "warn",
"no-fallthrough": "error",
},
},
{
ignores: ["dist/", "node_modules/", "js/", "src/wasm/"],
},
);