Skip to content

Commit

Permalink
patch dtslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jul 17, 2024
1 parent 33e41a8 commit b9b2b18
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/dist/lint.js b/dist/lint.js
index ae29f2a0936fe8e4dee9b4a607ed5c611872d30d..96746c55f2df24c6d09ee30ff85e404138ad0fbe 100644
--- a/dist/lint.js
+++ b/dist/lint.js
@@ -107,9 +107,9 @@ function startsWithDirectory(filePath, dirPath) {
return normalFilePath.startsWith(normalDirPath + "/") || normalFilePath.startsWith(normalDirPath + "\\");
}
function testNoTsIgnore(text) {
- const tsIgnore = "ts-ignore";
- const pos = text.indexOf(tsIgnore);
- return pos === -1 ? undefined : { pos, message: "'ts-ignore' is forbidden." };
+ // const tsIgnore = "ts-ignore";
+ // const pos = text.indexOf(tsIgnore);
+ // return pos === -1 ? undefined : { pos, message: "'ts-ignore' is forbidden." };
}
function testNoTslintDisables(text) {
const tslintDisable = "tslint:disable";
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,8 @@
"unified": "^6.1.6",
"webpack-bundle-analyzer": "3.3.2"
},
"packageManager": "yarn@3.2.3"
"packageManager": "yarn@3.2.3",
"resolutions": {
"@definitelytyped/dtslint@0.0.112": "patch:@definitelytyped/dtslint@npm%3A0.0.112#./.yarn/patches/@definitelytyped-dtslint-npm-0.0.112-1e6b842976.patch"
}
}
21 changes: 21 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2546,6 +2546,27 @@ __metadata:
languageName: node
linkType: hard

"@definitelytyped/dtslint@patch:@definitelytyped/dtslint@npm%3A0.0.112#./.yarn/patches/@definitelytyped-dtslint-npm-0.0.112-1e6b842976.patch::locator=emotion-monorepo%40workspace%3A.":
version: 0.0.112
resolution: "@definitelytyped/dtslint@patch:@definitelytyped/dtslint@npm%3A0.0.112#./.yarn/patches/@definitelytyped-dtslint-npm-0.0.112-1e6b842976.patch::version=0.0.112&hash=753776&locator=emotion-monorepo%40workspace%3A."
dependencies:
"@definitelytyped/dts-critic": ^0.0.112
"@definitelytyped/header-parser": ^0.0.112
"@definitelytyped/typescript-versions": ^0.0.112
"@definitelytyped/utils": ^0.0.112
fs-extra: ^6.0.1
json-stable-stringify: ^1.0.1
strip-json-comments: ^2.0.1
tslint: 5.14.0
yargs: ^15.1.0
peerDependencies:
typescript: ">= 3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.7.0-dev || >= 3.8.0-dev || >= 3.9.0-dev || >= 4.0.0-dev"
bin:
dtslint: dist/index.js
checksum: 531e55134c34b4be44bd5aedb193b5dd99c098a374d1725e53bfc567a6bad8da6d314a7446f1480b2502afc6ed579555b4a8b31c40513f68dc7e679b51784c5f
languageName: node
linkType: hard

"@definitelytyped/header-parser@npm:^0.0.112":
version: 0.0.112
resolution: "@definitelytyped/header-parser@npm:0.0.112"
Expand Down

0 comments on commit b9b2b18

Please sign in to comment.