Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 0 additions & 138 deletions .eslintrc.js

This file was deleted.

6 changes: 3 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create NPM Release
name: Create Release (NPM & GitHub)

on:
workflow_dispatch:
Expand Down Expand Up @@ -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' || '' }}

Empty file modified cypress/fixtures/binary1
100644 → 100755
Empty file.
Empty file modified cypress/fixtures/flower.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions cypress/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<button id="submitForm">Send Form Data</button>
<button id="submitFormJs">Send Form Data With JS</button>
<button id="submitJsonField">Send Form Data With JSON field</button>

<script>

Expand Down Expand Up @@ -61,6 +62,12 @@
// body: fd,
// });
});

document.getElementById("submitJsonField")
.addEventListener("click", () => {


});
</script>
</body>
</html>
99 changes: 99 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
const js = require("@eslint/js");
const { FlatCompat } = require("@eslint/eslintrc");

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

module.exports = [
...compat.config({
parser: "@babel/eslint-parser",
env: {
es6: true,
node: true,
jest: true,
browser: true,
commonjs: true,
},
extends: ["eslint:recommended"],
plugins: ["import"],
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/legacy-recommended"],
plugins: ["@vitest"],
rules: {
"@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,
},
},
],
}),
];

61 changes: 30 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"build": "pnpm clean; rollup -c",
"watch": "pnpm build -w",
"start": "pnpm watch",
"release:prep": "pnpm build",
"release": "np --no-cleanup --test-script=\"release:prep\"",
"release": "release-it",
"serve": "http-server -p 9991",
"cy:open": "CYPRESS_BASE_URL=http://localhost:9991 cypress open --e2e --browser chrome",
"cy:run": "wait-on http://localhost:9991 -d 1000 && CYPRESS_BASE_URL=http://localhost:9991 cypress run --e2e ",
Expand All @@ -30,7 +29,7 @@
},
"types": "./types/index.d.ts",
"engines": {
"node": ">=14"
"node": ">=20"
},
"repository": {
"type": "git",
Expand All @@ -54,38 +53,38 @@
"cypress": ">=6.3.0"
},
"devDependencies": {
"@babel/core": "^7.23.0",
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-proposal-export-default-from": "^7.22.17",
"@babel/plugin-transform-runtime": "^7.22.15",
"@babel/preset-env": "^7.22.20",
"@babel/register": "^7.22.15",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.2.1",
"@testing-library/jest-dom": "^6.1.3",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@vitest/coverage-v8": "^0.34.6",
"concurrently": "^7.6.0",
"cypress": "^13.2.0",
"eslint": "^8.50.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-vitest": "^0.3.1",
"@babel/core": "^7.29.0",
"@babel/eslint-parser": "^7.28.6",
"@babel/plugin-proposal-export-default-from": "^7.27.1",
"@babel/plugin-transform-runtime": "^7.29.0",
"@babel/preset-env": "^7.29.0",
"@babel/register": "^7.28.6",
"@eslint/js": "^9.39.2",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@testing-library/jest-dom": "^6.9.1",
"@typescript-eslint/eslint-plugin": "^8.54.0",
"@typescript-eslint/parser": "^8.54.0",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/eslint-plugin": "^1.6.6",
"concurrently": "^9.2.1",
"cypress": "^15.9.0",
"eslint": "^9.39.2",
"eslint-plugin-import": "^2.32.0",
"http-server": "^14.1.1",
"jest-environment-jsdom": "^29.7.0",
"jest-environment-jsdom": "^30.2.0",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi-reporters": "^1.5.1",
"np": "^7.7.0",
"nyc": "^15.1.0",
"nyc": "^17.1.0",
"object-to-formdata": "^4.5.1",
"release-it": "^16.2.1",
"rimraf": "^5.0.5",
"rollup": "^3.29.3",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite-plugin-babel": "^1.1.3",
"vitest": "^0.34.6",
"wait-on": "^5.3.0",
"release-it": "^19.2.4",
"rimraf": "^6.1.2",
"rollup": "^4.57.1",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vite-plugin-babel": "^1.4.1",
"vitest": "^4.0.18",
"wait-on": "^9.0.3",
"xml2js": "^0.6.2"
},
"publishConfig": {
Expand Down
Loading