Unverified Commit 016b3d45 authored by daz's avatar daz
Browse files

Upgrade to latest eslint

parent e1fcfa43
Loading
Loading
Loading
Loading
−3

File deleted.

−57

File deleted.

+70
Changes for sources/eslint.config.mjs: 70 added lines, 0 removed lines.
Original line number Diff line number Diff line
import globals from "globals";
import typescriptParser from "@typescript-eslint/parser";
import typescriptPlugin from "@typescript-eslint/eslint-plugin";

export default {

    plugins: {
        "@typescript-eslint": typescriptPlugin,
    },

    languageOptions: {
        globals: {
            ...globals.node,
        },

        ecmaVersion: 9,
        sourceType: "module",

        parser: typescriptParser,
        parserOptions: {
            project: "./tsconfig.json",
        },
    },

    files: ['**/*.ts', '**/*.tsx'],

    rules: {
        camelcase: "off",
        semi: "off",

        "@typescript-eslint/explicit-member-accessibility": ["error", {
            accessibility: "no-public",
        }],

        "@typescript-eslint/no-require-imports": "error",
        "@typescript-eslint/array-type": "error",
        "@typescript-eslint/await-thenable": "error",

        "@typescript-eslint/explicit-function-return-type": ["error", {
            allowExpressions: true,
        }],

        "@typescript-eslint/no-array-constructor": "error",
        "@typescript-eslint/no-empty-interface": "error",
        "@typescript-eslint/no-explicit-any": "error",
        "@typescript-eslint/no-extraneous-class": "error",
        "@typescript-eslint/no-for-in-array": "error",
        "@typescript-eslint/no-inferrable-types": "error",
        "@typescript-eslint/no-misused-new": "error",
        "@typescript-eslint/no-namespace": "error",
        "@typescript-eslint/no-non-null-assertion": "off",
        "@typescript-eslint/no-shadow": "error",
        "@typescript-eslint/no-unnecessary-qualifier": "error",
        "@typescript-eslint/no-unnecessary-type-assertion": "error",
        "@typescript-eslint/no-useless-constructor": "error",
        "@typescript-eslint/no-var-requires": "error",
        "@typescript-eslint/prefer-for-of": "warn",
        "@typescript-eslint/prefer-function-type": "warn",
        "@typescript-eslint/prefer-includes": "error",
        "@typescript-eslint/prefer-string-starts-ends-with": "error",
        "@typescript-eslint/promise-function-async": "error",

        "@typescript-eslint/require-array-sort-compare": ["error", {
            ignoreStringArrays: true,
        }],

        "@typescript-eslint/restrict-plus-operands": "error",
        "@typescript-eslint/unbound-method": "error",
    },
};
 No newline at end of file
+1593 −4050

File changed.

Preview size limit exceeded, changes collapsed.

+5 −4
Changes for sources/package.json: 5 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -54,14 +54,15 @@
    "@jest/globals": "29.7.0",
    "@types/jest": "29.5.14",
    "@types/node": "20.17.30",
    "@types/semver": "7.7.0",
    "@types/unzipper": "0.10.11",
    "@types/which": "3.0.4",
    "@typescript-eslint/parser": "7.18.0",
    "@typescript-eslint/eslint-plugin": "8.29.1",
    "@typescript-eslint/parser": "8.29.1",
    "@vercel/ncc": "0.38.3",
    "dedent": "1.5.3",
    "eslint": "8.57.1",
    "eslint-plugin-github": "5.1.8",
    "eslint-plugin-jest": "28.11.0",
    "eslint": "9.24.0",
    "globals": "16.0.0",
    "jest": "29.7.0",
    "nock": "13.5.6",
    "npm-run-all": "4.1.5",
Loading