Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular-eslint/eslint-plugin-template

Package Overview
Dependencies
Maintainers
1
Versions
775
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-eslint/eslint-plugin-template - npm Package Compare versions

Comparing version 18.1.1-alpha.1 to 18.1.1-alpha.2

48

dist/index.d.ts

@@ -97,27 +97,27 @@ declare const _default: {

"elements-content": import("@typescript-eslint/utils/ts-eslint").RuleModule<"elementsContent", [{
readonly allowList?: readonly string[] | undefined;
readonly allowList?: readonly string[];
}], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
eqeqeq: import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/eqeqeq").MessageIds, [{
readonly allowNullOrUndefined?: boolean | undefined;
readonly allowNullOrUndefined?: boolean;
}], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
i18n: import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/i18n").MessageIds, [{
readonly allowMarkupInContent?: boolean | undefined;
readonly boundTextAllowedPattern?: string | undefined;
readonly checkAttributes?: boolean | undefined;
readonly checkDuplicateId?: boolean | undefined;
readonly checkId?: boolean | undefined;
readonly checkText?: boolean | undefined;
readonly ignoreAttributes?: readonly string[] | undefined;
readonly ignoreTags?: readonly string[] | undefined;
readonly requireDescription?: boolean | undefined;
readonly requireMeaning?: boolean | undefined;
readonly allowMarkupInContent?: boolean;
readonly boundTextAllowedPattern?: string;
readonly checkAttributes?: boolean;
readonly checkDuplicateId?: boolean;
readonly checkId?: boolean;
readonly checkText?: boolean;
readonly ignoreAttributes?: readonly string[];
readonly ignoreTags?: readonly string[];
readonly requireDescription?: boolean;
readonly requireMeaning?: boolean;
}], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
"interactive-supports-focus": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactiveSupportsFocus", [], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
"label-has-associated-control": import("@typescript-eslint/utils/ts-eslint").RuleModule<"labelHasAssociatedControl", [{
readonly controlComponents?: readonly string[] | undefined;
readonly controlComponents?: readonly string[];
readonly labelComponents?: readonly {
readonly inputs?: readonly string[] | undefined;
readonly inputs?: readonly string[];
readonly selector: string;
}[] | undefined;
readonly checkIds?: boolean | undefined;
}[];
readonly checkIds?: boolean;
}], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;

@@ -128,15 +128,15 @@ "mouse-events-have-key-events": import("@typescript-eslint/utils/ts-eslint").RuleModule<"mouseEventsHaveKeyEvents", [], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;

"no-call-expression": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noCallExpression", [{
readonly allowList?: readonly string[] | undefined;
readonly allowPrefix?: string | undefined;
readonly allowSuffix?: string | undefined;
readonly allowList?: readonly string[];
readonly allowPrefix?: string;
readonly allowSuffix?: string;
}], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
"no-distracting-elements": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noDistractingElements", [], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
"no-duplicate-attributes": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-duplicate-attributes").MessageIds, [{
readonly allowTwoWayDataBinding?: boolean | undefined;
readonly allowStylePrecedenceDuplicates?: boolean | undefined;
readonly ignore?: readonly string[] | undefined;
readonly allowTwoWayDataBinding?: boolean;
readonly allowStylePrecedenceDuplicates?: boolean;
readonly ignore?: readonly string[];
}], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
"no-inline-styles": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInlineStyles", [{
readonly allowNgStyle?: boolean | undefined;
readonly allowBindToStyle?: boolean | undefined;
readonly allowNgStyle?: boolean;
readonly allowBindToStyle?: boolean;
}], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;

@@ -143,0 +143,0 @@ "no-interpolation-in-attributes": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInterpolationInAttributes", [], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;

@@ -6,3 +6,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.postprocessComponentFile = exports.preprocessComponentFile = exports.isFileLikelyToContainComponentDeclarations = void 0;
exports.isFileLikelyToContainComponentDeclarations = isFileLikelyToContainComponentDeclarations;
exports.preprocessComponentFile = preprocessComponentFile;
exports.postprocessComponentFile = postprocessComponentFile;
const path_1 = require("path");

@@ -43,3 +45,2 @@ const typescript_1 = __importDefault(require("typescript"));

}
exports.isFileLikelyToContainComponentDeclarations = isFileLikelyToContainComponentDeclarations;
function preprocessComponentFile(text, filename) {

@@ -157,3 +158,2 @@ // This effectively instructs ESLint that there were no code blocks to extract for the current file

}
exports.preprocessComponentFile = preprocessComponentFile;
function postprocessComponentFile(multiDimensionalMessages, filename) {

@@ -204,3 +204,2 @@ const messagesFromComponentSource = multiDimensionalMessages[0];

}
exports.postprocessComponentFile = postprocessComponentFile;
exports.default = {

@@ -207,0 +206,0 @@ 'extract-inline-html': {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.attributesComparator = void 0;
exports.attributesComparator = attributesComparator;
const get_attribute_value_1 = require("./get-attribute-value");

@@ -19,2 +19,1 @@ function attributesComparator(ariaRoleRelationConceptAttributes, node) {

}
exports.attributesComparator = attributesComparator;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAttributeValue = void 0;
exports.getAttributeValue = getAttributeValue;
const bundled_angular_compiler_1 = require("@angular-eslint/bundled-angular-compiler");

@@ -39,2 +39,1 @@ const constants_1 = require("./constants");

}
exports.getAttributeValue = getAttributeValue;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDomElements = void 0;
exports.getDomElements = getDomElements;
const aria_query_1 = require("aria-query");

@@ -9,2 +9,1 @@ let domElements = null;

}
exports.getDomElements = getDomElements;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNearestNodeFrom = void 0;
exports.getNearestNodeFrom = getNearestNodeFrom;
const types_1 = require("@typescript-eslint/types");

@@ -17,2 +17,1 @@ function isProgram(node) {

}
exports.getNearestNodeFrom = getNearestNodeFrom;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOriginalAttributeName = void 0;
exports.getOriginalAttributeName = getOriginalAttributeName;
const bundled_angular_compiler_1 = require("@angular-eslint/bundled-angular-compiler");

@@ -25,5 +25,4 @@ /**

}
exports.getOriginalAttributeName = getOriginalAttributeName;
function isTwoWayDataBinding({ keySpan: { details }, name, }) {
return name === `${details}Change`;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isChildNodeOf = void 0;
exports.isChildNodeOf = isChildNodeOf;
const bundled_angular_compiler_1 = require("@angular-eslint/bundled-angular-compiler");

@@ -12,2 +12,1 @@ function isChildNodeOf(ast, childNodeName) {

}
exports.isChildNodeOf = isChildNodeOf;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isContentEditable = void 0;
exports.isContentEditable = isContentEditable;
const get_original_attribute_name_1 = require("./get-original-attribute-name");

@@ -14,2 +14,1 @@ const get_attribute_value_1 = require("./get-attribute-value");

}
exports.isContentEditable = isContentEditable;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDisabledElement = void 0;
exports.isDisabledElement = isDisabledElement;
const get_original_attribute_name_1 = require("./get-original-attribute-name");

@@ -20,2 +20,1 @@ const get_attribute_value_1 = require("./get-attribute-value");

}
exports.isDisabledElement = isDisabledElement;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isHiddenFromScreenReader = void 0;
exports.isHiddenFromScreenReader = isHiddenFromScreenReader;
const bundled_angular_compiler_1 = require("@angular-eslint/bundled-angular-compiler");

@@ -34,3 +34,2 @@ const get_attribute_value_1 = require("./get-attribute-value");

}
exports.isHiddenFromScreenReader = isHiddenFromScreenReader;
/**

@@ -37,0 +36,0 @@ * Whether an element has hidden static styles.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInteractiveElementAXObjectSchemas = void 0;
exports.getInteractiveElementAXObjectSchemas = getInteractiveElementAXObjectSchemas;
let interactiveElementAXObjectSchemas = null;

@@ -30,2 +30,1 @@ // This function follows the lazy initialization pattern.

}
exports.getInteractiveElementAXObjectSchemas = getInteractiveElementAXObjectSchemas;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInteractiveElementRoleSchemas = void 0;
exports.getInteractiveElementRoleSchemas = getInteractiveElementRoleSchemas;
const aria_query_1 = require("aria-query");

@@ -38,2 +38,1 @@ let interactiveElementRoleSchemas = null;

}
exports.getInteractiveElementRoleSchemas = getInteractiveElementRoleSchemas;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNonInteractiveRoles = exports.getNonInteractiveElementRoleSchemas = void 0;
exports.getNonInteractiveElementRoleSchemas = getNonInteractiveElementRoleSchemas;
exports.getNonInteractiveRoles = getNonInteractiveRoles;
const aria_query_1 = require("aria-query");

@@ -23,3 +24,2 @@ let nonInteractiveElementRoleSchemas = null;

}
exports.getNonInteractiveElementRoleSchemas = getNonInteractiveElementRoleSchemas;
function getNonInteractiveRoles() {

@@ -45,2 +45,1 @@ if (nonInteractiveRoles === null) {

}
exports.getNonInteractiveRoles = getNonInteractiveRoles;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNonInteractiveRole = exports.isInteractiveElement = void 0;
exports.isInteractiveElement = isInteractiveElement;
exports.isNonInteractiveRole = isNonInteractiveRole;
const attributes_comparator_1 = require("../attributes-comparator");

@@ -41,6 +42,4 @@ const get_attribute_value_1 = require("../get-attribute-value");

}
exports.isInteractiveElement = isInteractiveElement;
function isNonInteractiveRole(node) {
return checkIsNonInteractiveRole(node);
}
exports.isNonInteractiveRole = isNonInteractiveRole;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPresentationRole = void 0;
exports.isPresentationRole = isPresentationRole;
const get_attribute_value_1 = require("./get-attribute-value");

@@ -14,2 +14,1 @@ const presentationRoles = new Set([

}
exports.isPresentationRole = isPresentationRole;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSemanticRoleElement = void 0;
exports.isSemanticRoleElement = isSemanticRoleElement;
// The axobject-query package doesn't have type definitions, but this is what we're using from it here

@@ -31,2 +31,1 @@ let axElements = null;

}
exports.isSemanticRoleElement = isSemanticRoleElement;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toPattern = void 0;
exports.toPattern = toPattern;
function toPattern(value) {
return RegExp(`^(${value.join('|')})$`);
}
exports.toPattern = toPattern;
{
"name": "@angular-eslint/eslint-plugin-template",
"version": "18.1.1-alpha.1",
"version": "18.1.1-alpha.2",
"description": "ESLint plugin for Angular Templates",

@@ -21,4 +21,4 @@ "license": "MIT",

"dependencies": {
"@angular-eslint/bundled-angular-compiler": "18.1.1-alpha.1",
"@angular-eslint/utils": "18.1.1-alpha.1",
"@angular-eslint/bundled-angular-compiler": "18.1.1-alpha.2",
"@angular-eslint/utils": "18.1.1-alpha.2",
"aria-query": "5.3.0",

@@ -28,3 +28,3 @@ "axobject-query": "4.0.0"

"devDependencies": {
"@angular-eslint/test-utils": "18.1.1-alpha.1",
"@angular-eslint/test-utils": "18.1.1-alpha.2",
"@types/aria-query": "5.0.4"

@@ -31,0 +31,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc