Socket
Socket
Sign inDemoInstall

eslint-plugin-etc

Package Overview
Dependencies
148
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1-beta.40 to 0.0.1-beta.41

docs/rules/ban-imports.md

2

dist/rules/ban-imports.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc