@swisspost/design-system-eslint 10.0.0-next.71 → 10.0.0-next.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.messageId = exports.name = void 0;
|
|
4
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
4
5
|
const create_rule_1 = require("../utils/create-rule");
|
|
5
6
|
const stencil_helpers_1 = require("../utils/stencil-helpers");
|
|
6
|
-
const utils_1 = require("@typescript-eslint/utils");
|
|
7
7
|
exports.name = 'stencil-no-unreflected-required-props';
|
|
8
8
|
exports.messageId = 'stencilNoUnreflectedRequiredProps';
|
|
9
9
|
exports.default = (0, create_rule_1.createRule)({
|
|
@@ -27,7 +27,7 @@ exports.default = (0, create_rule_1.createRule)({
|
|
|
27
27
|
if (isRequired) {
|
|
28
28
|
node.decorators
|
|
29
29
|
// Find property nodes with a "@Prop()" decorator
|
|
30
|
-
.filter(decorator => (0, stencil_helpers_1.isCallExpressionWithName)(decorator, 'Prop')
|
|
30
|
+
.filter(decorator => (0, stencil_helpers_1.isCallExpressionWithName)(decorator, 'Prop'))
|
|
31
31
|
// Find property nodes without the `{ reflect: true }` argument in their "@Prop()" decorator
|
|
32
32
|
.filter(decorator => !(decorator.expression.type === utils_1.AST_NODE_TYPES.CallExpression &&
|
|
33
33
|
decorator.expression.arguments.some(arg => arg.type === utils_1.AST_NODE_TYPES.ObjectExpression &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stencil-no-unreflected-required-props.js","sourceRoot":"","sources":["../../src/rules/stencil-no-unreflected-required-props.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAClD,8DAAoE;
|
|
1
|
+
{"version":3,"file":"stencil-no-unreflected-required-props.js","sourceRoot":"","sources":["../../src/rules/stencil-no-unreflected-required-props.ts"],"names":[],"m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CAAC,OAAO;gCAC1C,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,CAC5B,CACJ,CACF,CACJ;yBACA,OAAO,CAAC,GAAG,EAAE;wBACZ,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAT,iBAAS;4BACT,IAAI,EAAE;gCACJ,YAAY,EAAE,gBAAQ,CAAC,eAAe,CAAC,IAAI,CAAC;6BAC7C;yBACF,CAAC,CAAC;oBACL,CAAC,CAAC,CAAC;gBACP,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-eslint",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "10.0.0-next.
|
|
4
|
+
"version": "10.0.0-next.75",
|
|
5
5
|
"description": "A set of custom ESLint rules to help keeping projects using the Swiss Post Design System up-to-date.",
|
|
6
6
|
"author": "Swiss Post <design-system@post.ch>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@types/eslint-scope": "3.7.7",
|
|
38
38
|
"@types/jest": "30.0.0",
|
|
39
39
|
"@typescript-eslint/rule-tester": "8.49.0",
|
|
40
|
-
"concurrently": "
|
|
40
|
+
"concurrently": "10.0.3",
|
|
41
41
|
"domhandler": "5.0.3",
|
|
42
42
|
"eslint": "9.26.0",
|
|
43
43
|
"globals": "17.3.0",
|