diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100755
index 869cb43..0000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1,138 +0,0 @@
-module.exports = {
- "parser": "@babel/eslint-parser",
- "env": {
- "es6": true,
- "node": true,
- "jest": true,
- "browser": true,
- "commonjs": true,
- },
- "extends": [
- "eslint:recommended",
- ],
- "plugins": [],
- "globals": {
- "ENV": true,
- },
- "settings": {
- "import/core-modules": [
- "fs",
- "path",
- "os",
- ],
- },
- "rules": {
- "quotes": [
- 2,
- "double",
- {
- "allowTemplateLiterals": true,
- },
- ],
- "strict": 0,
- "no-unused-vars": [
- 2,
- {
- "vars": "all",
- "args": "none",
- },
- ],
- "eqeqeq": 2,
- "no-var": 2,
- "no-process-exit": 0,
- "no-underscore-dangle": 0,
- "no-loop-func": 0,
- "no-console": 2,
- "key-spacing": 0,
- "no-mixed-spaces-and-tabs": [
- 2,
- "smart-tabs",
- ],
- "semi": [
- 2,
- "always",
- ],
- "no-trailing-spaces": [
- 2,
- {
- "skipBlankLines": false,
- },
- ],
- "camelcase": [
- 1,
- {
- "properties": "never",
- },
- ],
- "curly": 2,
- "object-curly-spacing": [
- 2,
- "always",
- ],
- "no-duplicate-imports": 0,
- "import/no-unresolved": 0,
- "import/no-named-as-default": 0,
- "import/extensions": 0,
- "import/no-dynamic-require": 0,
- "import/prefer-default-export": 0,
- "import/no-webpack-loader-syntax": 0,
- "max-len": [
- 2,
- 155,
- ],
- },
- "overrides": [
- {
- "files": ["*.test.js"],
- "globals": {
- "vi": false,
- },
- "extends": [
- "plugin:vitest/recommended",
- ],
- "plugins": [
- "vitest",
- ],
- "rules": {
- //TODO: bring back when fixed: https://github.com/veritem/eslint-plugin-vitest/issues/237
- "vitest/valid-expect": 1,
- "vitest/assertion-type": 0,
- },
- },
- {
- "files": ["*.spec.js", "src/index.js"],
- "globals": {
- "Cypress": false,
- "cy": false,
- },
- },
- {
- "files": [
- "*.ts",
- "*.tsx",
- ],
- "parser": "@typescript-eslint/parser",
- "parserOptions": {
- "ecmaFeatures": {
- "jsx": true,
- },
- "project": "tsconfig.json",
- "tsconfigRootDir": ".",
- },
- "plugins": [
- "@typescript-eslint",
- ],
- "extends": [
- "eslint:recommended",
- "plugin:@typescript-eslint/eslint-recommended",
- "plugin:@typescript-eslint/recommended",
- ],
- "rules": {
- "import/no-extraneous-dependencies": 0,
- "@typescript-eslint/no-explicit-any": 0,
- "no-console": 0,
- "no-async/no-async": 0,
- },
- },
- ],
-};
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 1ed01ba..122e890 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -6,11 +6,11 @@ runs:
steps:
- uses: pnpm/action-setup@v2
with:
- version: 8
+ version: 9
- - uses: actions/setup-node@v3
+ - uses: actions/setup-node@v4
with:
- node-version: "16.17"
+ node-version: "20"
cache: "pnpm"
cache-dependency-path: "./pnpm-lock.yaml"
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index dad6b7b..0c8d2b4 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,4 +1,4 @@
-name: Create NPM Release
+name: Create Release (NPM & GitHub)
on:
workflow_dispatch:
@@ -51,5 +51,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
- pnpm release-it ${{ inputs.releaseType }} ${{ inputs.dry && ' --dry-run' || '' }}
+ pnpm exec release-it --ci ${{ inputs.releaseType }} ${{ inputs.dry && ' --dry-run' || '' }}
diff --git a/cypress/fixtures/binary1 b/cypress/fixtures/binary1
old mode 100644
new mode 100755
diff --git a/cypress/fixtures/flower.jpg b/cypress/fixtures/flower.jpg
old mode 100644
new mode 100755
diff --git a/cypress/test.html b/cypress/test.html
index 7462b3d..1edc955 100644
--- a/cypress/test.html
+++ b/cypress/test.html
@@ -18,6 +18,7 @@
+