UNPKG

@noxfly/noxus

Version:

Simulate lightweight HTTP-like requests between renderer and main process in Electron applications with MessagePort, with structured and modular design.

110 lines (104 loc) 4.02 kB
// @ts-nocheck const eslint = require("@eslint/js"); const tseslint = require("typescript-eslint"); const stylistic = require("@stylistic/eslint-plugin"); module.exports = tseslint.config( { files: ["src/**/*.ts"], extends: [ eslint.configs.recommended, ...tseslint.configs.recommended, ...tseslint.configs.stylistic, ], languageOptions: { parserOptions: { ecmaVersion: 2020, sourceType: "module", project: ["./tsconfig.json"], tsconfigRootDir: __dirname, } }, plugins: { "@stylistic": stylistic, }, rules: { "@typescript-eslint/no-empty-object-type": "off", "@typescript-eslint/no-require-imports": "off", "@typescript-eslint/explicit-member-accessibility": [ "error", { "overrides": { "constructors": "no-public", } } ], "@typescript-eslint/explicit-function-return-type": [ "error", { "allowExpressions": true, "allowHigherOrderFunctions": true, "allowIIFEs": true, } ], "@typescript-eslint/consistent-type-definitions": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-inferrable-types": "off", "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-namespace": "off", "@typescript-eslint/no-unsafe-function-type": "off", "@typescript-eslint/prefer-readonly": "warn", "@stylistic/object-curly-spacing": ["warn", "always"], "@stylistic/no-whitespace-before-property": "error", "@stylistic/space-before-blocks": ["warn", "always"], "@stylistic/comma-spacing": [ "warn", { "before": false, "after": true } ], "@stylistic/block-spacing": ["warn", "always"], "@stylistic/brace-style": [ "error", "stroustrup", { "allowSingleLine": true } ], "@stylistic/function-call-spacing": ["error", "never"], "@stylistic/arrow-spacing": "error", "@stylistic/computed-property-spacing": "warn", "@stylistic/generator-star-spacing": "error", "@stylistic/indent": ["error", 4, { "SwitchCase": 1 }], "@stylistic/semi": [2, "always"], "@stylistic/no-extra-semi": "warn", "@stylistic/semi-spacing": "warn", "@stylistic/quotes": "off", "@stylistic/keyword-spacing": [ "warn", { "overrides": { "if": { "after": false }, "for": { "after": false }, "catch": { "after": false }, "while": { "after": false }, "as": { "after": false }, "switch": { "after": false } } } ], "eqeqeq": "error", "no-duplicate-imports": "error", "no-empty": "off", "no-empty-function": "off", "no-extra-boolean-cast": "off", "no-inner-declarations": "off", "no-unsafe-finally": "off", "no-unsafe-optional-chaining": "error", "no-unused-vars": "off", "no-var": "error", "no-useless-catch": "off", }, }, );