Skip to content

Commit 92add6f

Browse files
committed
feat: Drop preact-shim and bump versions
Signed-off-by: Gordon Smith <[email protected]>
1 parent 1c01a39 commit 92add6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2128
-6748
lines changed

.eslintrc.cjs

-100
This file was deleted.

.github/workflows/ossar-analysis.yml

-46
This file was deleted.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.eclcc
22
.env
33
.nx
4+
.vite-inspect/
45
node_modules
56
dist/
67
dist-test/

demos/gallery/.vscode/launch.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
{
2+
"version": "0.2.0",
23
"configurations": [
34
{
4-
"name": "Launch Edge",
5+
"name": "index.html",
56
"request": "launch",
67
"type": "msedge",
7-
"url": "http://localhost:5173",
8-
"webRoot": "${workspaceFolder}"
8+
"url": "http://localhost:5173/index.html",
9+
"runtimeArgs": [
10+
"--disable-web-security"
11+
],
12+
"webRoot": "${workspaceFolder}",
13+
"outFiles": [
14+
"${workspaceFolder}/**/*.js",
15+
"!**/node_modules/**"
16+
]
917
}
1018
]
1119
}

demos/gallery/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<title>Gallery</title>
9+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@hpcc-js/common/font-awesome/css/font-awesome.min.css">
910
<script src="https://cdn.jsdelivr.net/npm/@hpcc-js/[email protected]/dist/index.min.js"></script>
1011
</head>
1112

demos/gallery/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"devDependencies": {
2828
"@types/react": "18.3.12",
2929
"@types/react-dom": "18.3.1",
30-
"@vitejs/plugin-react-swc": "3.7.1",
30+
"@vitejs/plugin-react-swc": "3.7.2",
3131
"react": "18.3.1",
3232
"react-dom": "18.3.1"
3333
},

demos/imdb/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"update": "npx --yes npm-check-updates -u -t minor"
1111
},
1212
"dependencies": {
13-
"@hpcc-js/common": "^3.1.0",
14-
"@hpcc-js/dgrid": "^3.0.0",
15-
"@hpcc-js/dgrid-shim": "^3.0.0",
16-
"@hpcc-js/graph": "^3.0.0",
17-
"@hpcc-js/layout": "^3.0.0",
18-
"@hpcc-js/phosphor": "^3.0.0",
19-
"@hpcc-js/util": "^3.1.0",
13+
"@hpcc-js/common": "^3.2.0",
14+
"@hpcc-js/dgrid": "^3.1.0",
15+
"@hpcc-js/dgrid-shim": "^3.1.0",
16+
"@hpcc-js/graph": "^3.1.1",
17+
"@hpcc-js/layout": "^3.1.1",
18+
"@hpcc-js/phosphor": "^3.1.0",
19+
"@hpcc-js/util": "^3.2.0",
2020
"d3-fetch": "^1"
2121
},
2222
"devDependencies": {}

eslint.config.js

+117
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
// import pluginReact from "eslint-plugin-react";
5+
// import pluginReactHooks from "eslint-plugin-react-hooks";
6+
7+
/** @type {import('eslint').Linter.Config[]} */
8+
export default [
9+
{
10+
files: [
11+
"**/*.{js,mjs,cjs,ts,jsx,tsx}"
12+
]
13+
},
14+
{
15+
languageOptions: {
16+
globals: {
17+
...globals.browser,
18+
...globals.node,
19+
"dojo": "readonly",
20+
"dijit": "readonly",
21+
"dojoConfig": "readonly"
22+
}
23+
}
24+
},
25+
pluginJs.configs.recommended,
26+
...tseslint.configs.recommended,
27+
// pluginReact.configs.flat.recommended,
28+
{
29+
plugins: {
30+
// "react-hooks": pluginReactHooks,
31+
},
32+
settings: {
33+
react: {
34+
version: "17"
35+
}
36+
},
37+
rules: {
38+
// ...pluginReactHooks.configs.recommended.rules,
39+
"no-redeclare": "off",
40+
"no-empty": "off",
41+
"no-empty-pattern": "off",
42+
"no-constant-condition": "off",
43+
"no-case-declarations": "off",
44+
"no-prototype-builtins": "off",
45+
"no-unused-vars": "off",
46+
"no-useless-escape": "off",
47+
"no-unexpected-multiline": "off",
48+
"no-extra-boolean-cast": "off",
49+
"no-self-assign": "off",
50+
"no-multiple-empty-lines": [
51+
"error", {
52+
max: 1
53+
}
54+
],
55+
"no-console": [1, {
56+
"allow": ["info", "warn", "error"]
57+
}],
58+
"func-call-spacing": ["error", "never"],
59+
"space-before-function-paren": ["error", {
60+
"anonymous": "always",
61+
"named": "never",
62+
"asyncArrow": "always"
63+
}],
64+
"comma-spacing": [
65+
"error", {
66+
"before": false,
67+
"after": true
68+
}
69+
],
70+
71+
"prefer-rest-params": "off",
72+
"prefer-spread": "off",
73+
74+
"semi": ["error", "always"],
75+
"quotes": [
76+
"error",
77+
"double", {
78+
"avoidEscape": true
79+
}
80+
],
81+
82+
"@typescript-eslint/explicit-module-boundary-types": "off",
83+
"@typescript-eslint/no-unused-vars": "off",
84+
"@typescript-eslint/ban-ts-comment": "off",
85+
"@typescript-eslint/no-inferrable-types": "off",
86+
"@typescript-eslint/no-empty-function": "off",
87+
"@typescript-eslint/no-explicit-any": "off",
88+
"@typescript-eslint/no-empty-interface": "off",
89+
"@typescript-eslint/no-this-alias": "off",
90+
// "@typescript-eslint/ban-types": [
91+
// "error",
92+
// {
93+
// "types": {
94+
// // add a custom message, AND tell the plugin how to fix it
95+
// "String": {
96+
// "message": "Use string instead",
97+
// "fixWith": "string"
98+
// },
99+
100+
// "{}": {
101+
// "message": "Use object instead",
102+
// "fixWith": "object"
103+
// },
104+
105+
// "object": false
106+
// }
107+
// }
108+
// ],
109+
"@typescript-eslint/no-non-null-assertion": "off",
110+
"@typescript-eslint/no-namespace": "off",
111+
"@typescript-eslint/no-var-require": "off",
112+
"@typescript-eslint/no-unsafe-declaration-merging": "off",
113+
"@typescript-eslint/no-empty-object-type": "off",
114+
// "react-hooks/exhaustive-deps": "warn"
115+
}
116+
}
117+
];

0 commit comments

Comments
 (0)