Skip to content

Commit 5af9481

Browse files
committed
chore: fix eslint errors, unset stylint rule selector-id-pattern, update node version for CI, downgrade typescript version (for eslint compatibility)
1 parent 46d0ed1 commit 5af9481

File tree

11 files changed

+17
-17
lines changed

11 files changed

+17
-17
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup node env
1717
uses: actions/setup-node@v3
1818
with:
19-
node-version: 16
19+
node-version: 20
2020

2121
- name: Install dependencies
2222
run: npm ci

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest]
15-
node: [16]
15+
node: [20]
1616

1717
steps:
1818
- name: Checkout

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup Node
1111
uses: actions/setup-node@v3
1212
with:
13-
node-version: 16
13+
node-version: 20
1414

1515
- name: Lint scss
1616
run: npm ci && npm run scss-lint
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node
2424
uses: actions/setup-node@v3
2525
with:
26-
node-version: 16
26+
node-version: 20
2727

2828
- name: Lint js
2929
run: touch ./webpack/.env && npm ci && npm run lint

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
name: Run unit tests
77
strategy:
88
matrix:
9-
js: [ '16' ]
9+
js: [ '20' ]
1010
steps:
1111
- name: Setup Node
1212
uses: actions/setup-node@v3

.github/workflows/typecheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup Node
1111
uses: actions/setup-node@v3
1212
with:
13-
node-version: 16
13+
node-version: 20
1414

1515
- name: Build and check types
1616
run: touch ./webpack/.env && npm ci && npm run build

.stylelintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
],
55
"customSyntax": "postcss-scss",
66
"rules": {
7+
"selector-id-pattern": null,
78
"selector-max-id": null,
89
"selector-max-class": null,
910
"selector-max-type": null,
1011
"selector-max-compound-selectors": null,
1112
"selector-no-qualifying-type": null,
1213
"selector-max-combinators": null,
1314
"selector-class-pattern": null,
14-
"selector-descendant-combinator-no-non-space": null,
1515
"function-disallowed-list": null,
1616
"scss/dollar-variable-default": null,
1717
"property-disallowed-list": null

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"stylelint": "^14.16.1",
6969
"stylelint-config-prestashop": "^1.0.7",
7070
"ts-jest": "^29.2.5",
71-
"typescript": "^5.6.2",
71+
"typescript": "~5.5.4",
7272
"webpack": "^5.95.0",
7373
"webpack-bundle-analyzer": "^4.10.2",
7474
"webpack-cli": "^5.1.4",

src/js/components/usePasswordPolicy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ const usePasswordPolicy = (selector: string): PasswordPolicyReturn => {
165165
try {
166166
return JSON.parse(content);
167167
} catch (error) {
168+
console.error(error);
168169
return false;
169170
}
170171
})(hintElement.innerHTML);

src/js/components/useQuantityInput.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const mockedResponse = (ok: boolean, hasError?: boolean, qty?: string): jest.Moc
217217
return mockedFetch;
218218
};
219219

220-
const debounceTimeout = async () => new Promise((fn) => setTimeout(fn, Quantify.delay));
220+
const debounceTimeout = async () => new Promise((fn) => { setTimeout(fn, Quantify.delay); });
221221

222222
const getHTMLElement = <Type extends HTMLElement>(selector: string, parent?: Type): Type => {
223223
const parentElement = parent ?? document;

0 commit comments

Comments
 (0)