Skip to content

Commit 1fd9fe1

Browse files
committed
AP-25341: Update linting dependencies
Necessary because of a version mismatch between "stylelint-config-standard" and "stylelint", which caused configured rules not to be found. AP-25341 (Add a new state to "Ask K-AI" for unlicensed users (e.g. consumers))
1 parent 8f50900 commit 1fd9fe1

File tree

13 files changed

+485
-435
lines changed

13 files changed

+485
-435
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
module.exports = {
22
extends: ["@knime/eslint-config/stylelint/vue"],
3+
rules: {
4+
"csstools/value-no-unknown-custom-properties": [
5+
true,
6+
{
7+
importFrom: ["node_modules/@knime/styles/css/variables/index.css"],
8+
},
9+
],
10+
},
311
};

org.knime.python3.scripting.nodes/js-src/eslint-suppressions.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,31 @@
99
"count": 1
1010
}
1111
},
12+
"src/__tests__/init.test.ts": {
13+
"vitest/no-mocks-import": {
14+
"count": 1
15+
}
16+
},
1217
"src/components/PythonWorkspaceHeader.vue": {
1318
"@typescript-eslint/no-explicit-any": {
1419
"count": 4
1520
}
1621
},
22+
"src/components/__tests__/App.test.ts": {
23+
"vitest/no-mocks-import": {
24+
"count": 2
25+
}
26+
},
27+
"src/components/__tests__/EnvironmentSettings.test.ts": {
28+
"vitest/no-mocks-import": {
29+
"count": 2
30+
}
31+
},
32+
"src/components/__tests__/PythonWorkspace.test.ts": {
33+
"vitest/no-mocks-import": {
34+
"count": 1
35+
}
36+
},
1737
"src/python-scripting-service.ts": {
1838
"@typescript-eslint/no-explicit-any": {
1939
"count": 1

org.knime.python3.scripting.nodes/js-src/eslint.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export default [
88
...knimeVitest,
99
{
1010
plugins: { vitest },
11-
rules: { "vitest/no-import-node-test": "error" },
11+
rules: {
12+
"vitest/no-import-node-test": "error",
13+
// TODO enable this rule when updating to vitest >= 3.x
14+
"vitest/prefer-called-exactly-once-with": "off",
15+
},
1216
},
1317
];

0 commit comments

Comments
 (0)