diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100644
index 395c3e127..000000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1,30 +0,0 @@
-module.exports = {
- root: true,
- env: {
- browser: true,
- node: true,
- es2021: true
- },
- extends: [
- 'plugin:vue/vue3-recommended',
- 'eslint:recommended'
- ],
- parserOptions: {
- ecmaVersion: 2021,
- sourceType: 'module'
- },
- rules: {
- 'vue/multi-word-component-names': 'off',
- 'vue/singleline-html-element-content-newline': 'off',
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
- },
- overrides: [
- {
- files: [
- '**/__tests__/*.{j,t}s?(x)',
- '**/tests/unit/**/*.spec.{j,t}s?(x)'
- ],
- env: { jest: true }
- }
- ]
-};
diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml
index be030711f..913f87865 100644
--- a/.github/workflows/documentation.yml
+++ b/.github/workflows/documentation.yml
@@ -21,6 +21,9 @@ jobs:
runs-on: ubuntu-latest
name: Build and deploy
+ env:
+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
+
steps:
- name: Check actor permission level
# Only allow admin to deploy on release
diff --git a/eslint.config.js b/eslint.config.js
index f566ff566..471af3164 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -18,6 +18,8 @@ module.exports = [
// Build output
'dist/*',
'node_modules/*',
+ // Polyfills
+ 'src/polyfills/*',
],
},
{
@@ -27,6 +29,10 @@ module.exports = [
ecmaVersion: 2022,
sourceType: 'module',
parser: vueParser,
+ parserOptions: {
+ ecmaVersion: 2022,
+ sourceType: 'module',
+ },
globals: {
document: 'readonly',
window: 'readonly',
@@ -49,7 +55,7 @@ module.exports = [
},
{
name: 'cad-viewer/javascript',
- files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
+ files: ['**/*.js', '**/*.jsx'],
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
diff --git a/psalm.xml b/psalm.xml
index 59b4f9062..ea84a159c 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -8,7 +8,6 @@
findUnusedCode="false"
findUnusedIssueHandlerSuppression="false"
phpVersion="8.2"
->