https://github.com/Microsoft/TypeScript
Raw File
Tip revision: 24373d80eca53cb2c973c09d2e3e78db1c24ee4d authored by TypeScript Bot on 24 March 2023, 06:19:39 UTC
Update package-lock.json
Tip revision: 24373d8
.eslintrc.json
{
    "extends": "../.eslintrc.json",
    "parserOptions": {
        "tsconfigRootDir": "src",
        "project": "./tsconfig-eslint.json"
    },
    "rules": {
        "@typescript-eslint/no-unnecessary-type-assertion": "error",
        "no-restricted-globals": ["error",
            { "name": "setTimeout" },
            { "name": "clearTimeout" },
            { "name": "setInterval" },
            { "name": "clearInterval" },
            { "name": "setImmediate" },
            { "name": "clearImmediate" },
            { "name": "performance" }
        ]
    },
    "overrides": [
        {
            "files": ["lib/*.d.ts"],
            "rules": {
                "@typescript-eslint/interface-name-prefix": "off",
                "@typescript-eslint/prefer-function-type": "off",
                "@typescript-eslint/unified-signatures": "off",

                // scripts/eslint/rules
                "local/no-keywords": "off",

                // eslint
                "no-var": "off",
                "no-restricted-globals": "off"
            }
        },
        {
            "files": ["lib/es2019.array.d.ts"],
            "rules": {
                "@typescript-eslint/array-type": "off"
            }
        },
        {
            "files": ["debug/**", "harness/**", "testRunner/**"],
            "rules": {
                "no-restricted-globals": "off"
            }
        }
    ]
}
back to top