1{ 2 "extends": "../.eslintrc.json", 3 "parserOptions": { 4 "tsconfigRootDir": "src", 5 "project": "./tsconfig-base.json" 6 }, 7 "rules": { 8 "@typescript-eslint/no-unnecessary-qualifier": "error", 9 "@typescript-eslint/no-unnecessary-type-assertion": "error", 10 "no-restricted-globals": ["error", 11 { "name": "setTimeout" }, 12 { "name": "clearTimeout" }, 13 { "name": "setInterval" }, 14 { "name": "clearInterval" }, 15 { "name": "setImmediate" }, 16 { "name": "clearImmediate" }, 17 { "name": "performance" }, 18 { "name": "Iterator" }, 19 { "name": "Map" }, 20 { "name": "ReadonlyMap" }, 21 { "name": "Set" }, 22 { "name": "ReadonlySet" } 23 ] 24 }, 25 "overrides": [ 26 { 27 "files": ["lib/*.d.ts"], 28 "rules": { 29 "@typescript-eslint/interface-name-prefix": "off", 30 "@typescript-eslint/prefer-function-type": "off", 31 "@typescript-eslint/unified-signatures": "off", 32 33 // scripts/eslint/rules 34 "local/no-keywords": "off", 35 36 // eslint 37 "no-var": "off", 38 "no-restricted-globals": "off" 39 } 40 }, 41 { 42 "files": ["lib/es2019.array.d.ts"], 43 "rules": { 44 "@typescript-eslint/array-type": "off" 45 } 46 }, 47 { 48 "files": ["debug/**", "harness/**", "testRunner/**"], 49 "rules": { 50 "no-restricted-globals": "off" 51 } 52 } 53 ] 54} 55