https://github.com/Microsoft/TypeScript
Raw File
Tip revision: be939452d269dbb624c046993385dda37617ed76 authored by Nathan Shively-Sanders on 02 August 2022, 21:59:59 UTC
restrict check to es modules
Tip revision: be93945
.eslintrc.json
{
    "extends": "../.eslintrc.json",
    "parserOptions": {
        "tsconfigRootDir": "src",
        "project": "./tsconfig-base.json"
    },
    "rules": {
        "@typescript-eslint/no-unnecessary-qualifier": "error",
        "@typescript-eslint/no-unnecessary-type-assertion": "error"
    },
    "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
                "no-keywords": "off",

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