eslint-plugin-etc
Advanced tools
Comparing version 0.0.1-beta.40 to 0.0.1-beta.41
@@ -13,3 +13,3 @@ "use strict"; | ||
}, | ||
fixable: null, | ||
fixable: undefined, | ||
messages: { | ||
@@ -16,0 +16,0 @@ forbidden: "{{message}}", |
@@ -17,3 +17,3 @@ "use strict"; | ||
}, | ||
fixable: null, | ||
fixable: undefined, | ||
messages: { | ||
@@ -20,0 +20,0 @@ forbidden: `"{{name}}" is deprecated: {{comment}}`, |
@@ -12,7 +12,7 @@ "use strict"; | ||
}, | ||
fixable: null, | ||
fixable: undefined, | ||
messages: { | ||
forbidden: "Calling `forEach` on arrays is forbidden.", | ||
}, | ||
schema: null, | ||
schema: [], | ||
type: "problem", | ||
@@ -19,0 +19,0 @@ }, |
@@ -14,7 +14,7 @@ "use strict"; | ||
}, | ||
fixable: null, | ||
fixable: undefined, | ||
messages: { | ||
forbidden: "Assignment of mutated arrays is forbidden.", | ||
}, | ||
schema: null, | ||
schema: [], | ||
type: "problem", | ||
@@ -21,0 +21,0 @@ }, |
@@ -15,3 +15,3 @@ "use strict"; | ||
}, | ||
fixable: null, | ||
fixable: undefined, | ||
messages: { | ||
@@ -18,0 +18,0 @@ forbidden: "`const enum` is forbidden.", |
@@ -12,7 +12,7 @@ "use strict"; | ||
}, | ||
fixable: null, | ||
fixable: undefined, | ||
messages: { | ||
forbidden: "`enum` is forbidden.", | ||
}, | ||
schema: null, | ||
schema: [], | ||
type: "problem", | ||
@@ -19,0 +19,0 @@ }, |
@@ -13,3 +13,3 @@ "use strict"; | ||
}, | ||
fixable: null, | ||
fixable: undefined, | ||
messages: { | ||
@@ -19,3 +19,3 @@ canReplace: "Type parameter '{{name}}' is not used to enforce a constraint between types and can be replaced with '{{replacement}}'.", | ||
}, | ||
schema: null, | ||
schema: [], | ||
type: "problem", | ||
@@ -71,3 +71,3 @@ }, | ||
? typeParameter.constraint.getText(signature.getSourceFile()) | ||
: "any", | ||
: "unknown", | ||
}, | ||
@@ -108,15 +108,15 @@ loc: eslint_etc_1.getLoc(typeParameter), | ||
return { | ||
ArrowFunctionExpression: (node) => checkSignature(node), | ||
FunctionDeclaration: (node) => checkSignature(node), | ||
FunctionExpression: (node) => checkSignature(node), | ||
MethodDefinition: (node) => checkSignature(node), | ||
ArrowFunctionExpression: checkSignature, | ||
FunctionDeclaration: checkSignature, | ||
FunctionExpression: checkSignature, | ||
MethodDefinition: checkSignature, | ||
"Program:exit": () => (usage = undefined), | ||
TSCallSignatureDeclaration: (node) => checkSignature(node), | ||
TSConstructorType: (node) => checkSignature(node), | ||
TSConstructSignatureDeclaration: (node) => checkSignature(node), | ||
TSDeclareFunction: (node) => checkSignature(node), | ||
TSFunctionType: (node) => checkSignature(node), | ||
TSIndexSignature: (node) => checkSignature(node), | ||
TSMethodSignature: (node) => checkSignature(node), | ||
TSPropertySignature: (node) => checkSignature(node), | ||
TSCallSignatureDeclaration: checkSignature, | ||
TSConstructorType: checkSignature, | ||
TSConstructSignatureDeclaration: checkSignature, | ||
TSDeclareFunction: checkSignature, | ||
TSFunctionType: checkSignature, | ||
TSIndexSignature: checkSignature, | ||
TSMethodSignature: checkSignature, | ||
TSPropertySignature: checkSignature, | ||
}; | ||
@@ -123,0 +123,0 @@ }, |
@@ -12,3 +12,3 @@ "use strict"; | ||
}, | ||
fixable: null, | ||
fixable: undefined, | ||
messages: { | ||
@@ -15,0 +15,0 @@ forbidden: `Single-character type parameters are forbidden. Choose a more descriptive name for "{{name}}"`, |
@@ -16,3 +16,3 @@ "use strict"; | ||
}, | ||
fixable: null, | ||
fixable: undefined, | ||
messages: { | ||
@@ -19,0 +19,0 @@ forbidden: `"{{name}}" is not used; unused declarations are forbidden.`, |
@@ -12,7 +12,7 @@ "use strict"; | ||
}, | ||
fixable: null, | ||
fixable: undefined, | ||
messages: { | ||
forbidden: "{{usage}} non-`Error` values is forbidden.", | ||
}, | ||
schema: null, | ||
schema: [], | ||
type: "problem", | ||
@@ -19,0 +19,0 @@ }, |
@@ -5,2 +5,2 @@ "use strict"; | ||
const experimental_utils_1 = require("@typescript-eslint/experimental-utils"); | ||
exports.ruleCreator = experimental_utils_1.ESLintUtils.RuleCreator((name) => "https://github/cartant/eslint-plugin-etc"); | ||
exports.ruleCreator = experimental_utils_1.ESLintUtils.RuleCreator((name) => `https://github/cartant/eslint-plugin-etc/tree/main/docs/rules/${name}.md`); |
@@ -76,3 +76,3 @@ { | ||
}, | ||
"version": "0.0.1-beta.40" | ||
"version": "0.0.1-beta.41" | ||
} |
54796
34