Skip to content

Commit

Permalink
feat(typescript): remove deprecated no-untyped-public-signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Feb 7, 2020
1 parent 7ea433f commit b161b88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion rules/plugins/typescript.js
Expand Up @@ -37,7 +37,6 @@ module.exports = {
"@typescript-eslint/no-unnecessary-qualifier": "off",
"@typescript-eslint/no-unnecessary-type-arguments": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/no-untyped-public-signature": "warn",
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": "error", // eslint-disable-line sort-keys
"@typescript-eslint/no-unused-vars-experimental": "off",
Expand Down
9 changes: 5 additions & 4 deletions test/check-rules.test.js
Expand Up @@ -38,11 +38,12 @@ test("deprecated rules", t => {
checkRules(file, "--deprecated", { ESLINT_CONFIG_PRETTIER_NO_DEPRECATED: "true" });
} catch (err) {
if (typeof err.stdout === "string") {
const msgs = ignoredRules
const msg = ignoredRules
.filter(rule => err.stdout.includes(rule))
.map(rule => ` => "${rule}" is deprecated but included in the recommended config${EOL}`);
if (msgs.length !== -1) {
process.stderr.write(msgs.join(""));
.map(rule => ` => "${rule}" is deprecated but included in the recommended config${EOL}`)
.join("");
if (msg) {
process.stderr.write(msg);
return;
}
}
Expand Down

0 comments on commit b161b88

Please sign in to comment.