diff --git a/.editorconfig b/.editorconfig
deleted file mode 100644
index 8752ce2..0000000
--- a/.editorconfig
+++ /dev/null
@@ -1,12 +0,0 @@
-# EditorConfig is awesome: https://EditorConfig.org
-
-# top-most EditorConfig file
-root = true
-
-[*]
-indent_style = tab
-indent_size = 2
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
diff --git a/.eslintignore b/.eslintignore
deleted file mode 100644
index 2209080..0000000
--- a/.eslintignore
+++ /dev/null
@@ -1,13 +0,0 @@
-dist/
-node_modules/
-tests/**/*
-types/
-webpack.config.js
-jestTestFile.js
-BackupCopia
-.eslintrc.js
-jest.config.js
-*.js
-*.mjs
-*.html
-*.cjs
diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100644
index e99524b..0000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1,48 +0,0 @@
-module.exports = {
- extends: [
- "eslint:recommended",
- "plugin:@typescript-eslint/strict-type-checked",
- "plugin:prettier/recommended",
- ],
- parser: "@typescript-eslint/parser",
- parserOptions: {
- project: true,
- tsconfigRootDir: __dirname,
- },
- plugins: ["@typescript-eslint"],
- root: true,
- rules: {
- "no-else-return": ["error", { allowElseIf: false }],
- "consistent-return": "error",
- "no-console": ["warn", { allow: ["warn", "error"] }], // Here you are allowing console.warn and console.error
- "@typescript-eslint/typedef": [
- "error",
- {
- variableDeclaration: true,
- memberVariableDeclaration: true,
- },
- ],
- "@typescript-eslint/explicit-module-boundary-types": "error",
- "@typescript-eslint/naming-convention": [
- "error",
- {
- selector: "class",
- format: ["PascalCase"],
- },
- ],
- "@typescript-eslint/prefer-readonly": "error",
- "@typescript-eslint/explicit-member-accessibility": [
- "error",
- {
- accessibility: "explicit",
- overrides: {
- accessors: "explicit",
- constructors: "no-public",
- methods: "explicit",
- properties: "explicit",
- parameterProperties: "explicit",
- },
- },
- ],
- },
-};
diff --git a/.github/workflows/typescript-pr-check.yml b/.github/workflows/typescript-pr-check.yml
index ea0b2e3..b4e8d92 100644
--- a/.github/workflows/typescript-pr-check.yml
+++ b/.github/workflows/typescript-pr-check.yml
@@ -31,6 +31,6 @@ jobs:
- name: Run lint
run: yarn lint
- name: Run test
- run: yarn test
+ run: yarn test:full
- name: Run build
run: yarn build
diff --git a/.gitignore b/.gitignore
index b81ef61..4d61d91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@ test.js
test.mjs
test.html
test.cjs
+internalTests/
diff --git a/.npmignore b/.npmignore
deleted file mode 100644
index 3b24b8e..0000000
--- a/.npmignore
+++ /dev/null
@@ -1,59 +0,0 @@
-# Ignora o .gitignore
-.gitignore
-
-# Ignora o .eslintrc.js
-.eslintrc.js
-
-# Ignora o .editorconfig
-.editorconfig
-
-# Ignora todos os arquivos de código-fonte, exceto .js e ts
-*.java
-*.py
-*.cpp
-*.c
-*.h
-*.php
-*.html
-*.htm
-*.xml
-*.css
-*.scss
-*.sass
-# Adicione aqui outros tipos de arquivos de código-fonte que você queira ignorar
-.htaccess
-srcPage/
-Backup/
-BackupCopia/
-tsconfig.json
-pythonVersion/
-javaVersion/
-phpVersion/
-cSharpVersion/
-tester.js
-/src
-index.ts
-.vscode/
-composer.json
-tests/
-jest.config.js
-images/
-.npmignore
-package-lock.json
-coverage/
-tsconfig.types.json
-.eslintignore
-.prettierrc.js
-.prettierrc
-.prettierignore
-todo.txt
-webpack.config.js
-gitpush
-gitpush.exe
-jestTestFile.js
-.github/
-dist/types/
-CONTRIBUTING.md
-test.*
-.yarnrc.yml
-.yarn/
diff --git a/.prettierignore b/.prettierignore
deleted file mode 100644
index bd9ee87..0000000
--- a/.prettierignore
+++ /dev/null
@@ -1,3 +0,0 @@
-dist
-node_modules
-coverage
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..0081bf7
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,3 @@
+{
+ "trailingComma": "all"
+}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 60a0d79..230e499 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,5 +1,7 @@
{
"code-runner.executorMap": {
"typescript": "npx ts-node"
- }
+ },
+ "editor.indentSize": "tabSize",
+ "editor.tabSize": 2
}
diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz
index 4ce802f..fdc7630 100644
Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e6642c0..81b1bfc 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -18,7 +18,7 @@ The multiform-validator is a powerful Multilanguage library for validating form
- Commit your changes and push them to the forked repository:
```
git add .
- git commit -m "Concise description of the changes"
+ git commit -m "feat: concise description of the changes"
git push origin my-feature
```
@@ -27,36 +27,36 @@ The multiform-validator is a powerful Multilanguage library for validating form
## Contribution Guidelines
-feat: Adds a new feature to the project. For example:
+feat: adds a new feature to the project. For example:
-feat: Add controller for user management
-fix: Fixes an existing bug or issue. For example:
+feat: add controller for user management
+fix: fixes an existing bug or issue. For example:
-fix: Fix validation error in the controller
-refactor: Restructures existing code without changing its functionality. For example:
+fix: fix validation error in the controller
+refactor: restructures existing code without changing its functionality. For example:
-refactor: Rearrange methods in the controller for better readability
-docs: Updates the project's documentation. For example:
+refactor: rearrange methods in the controller for better readability
+docs: updates the project's documentation. For example:
-docs: Update documentation for the user controller
-style: Makes code style-related changes, such as formatting, indentation, etc. For example:
+docs: update documentation for the user controller
+style: makes code style-related changes, such as formatting, indentation, etc. For example:
-style: Format code in the controller according to project guidelines
-test: Adds or modifies tests in the project. For example:
+style: format code in the controller according to project guidelines
+test: adds or modifies tests in the project. For example:
-test: Add tests for the user controller
-chore: Performs maintenance tasks or other activities not directly related to code. For example:
+test: add tests for the user controller
+chore: performs maintenance tasks or other activities not directly related to code. For example:
-chore: Update project dependencies for compatibility with new versions
-perf: Makes performance improvements in the code. For example:
+chore: update project dependencies for compatibility with new versions
+perf: makes performance improvements in the code. For example:
-perf: Optimize data query in the controller
-revert: Reverts a previous change. For example:
+perf: optimize data query in the controller
+revert: reverts a previous change. For example:
-revert: Revert changes in the controller due to implementation issues
-ci: Makes modifications related to continuous integration (CI) and deployment. For example:
+revert: revert changes in the controller due to implementation issues
+ci: makes modifications related to continuous integration (CI) and deployment. For example:
-ci: Configure CI pipeline to automatically test the controller
+ci: configure CI pipeline to automatically test the controller
- Follow the coding standards of the language you're contributing to (JavaScript, TypeScript, Java, etc.).
- Keep the code clean and readable.
diff --git a/README.md b/README.md
index 56de027..a693f0f 100644
--- a/README.md
+++ b/README.md
@@ -20,12 +20,12 @@ Feel free to find bugs and report them to me. Your feedback is highly appreciate
jsDelivr:
```bash
-https://cdn.jsdelivr.net/npm/multiform-validator@2.4.1/+esm
+https://cdn.jsdelivr.net/npm/multiform-validator@2.5.0/+esm
```
```html
```
@@ -34,11 +34,11 @@ https://cdn.jsdelivr.net/npm/multiform-validator@2.4.1/+esm
unpkg:
```bash
-https://unpkg.com/multiform-validator@2.4.1/dist/cjs/index.cjs
+https://unpkg.com/multiform-validator@2.5.0/dist/cjs/index.cjs
```
```html
-
+
```
### Example of use with CDN
@@ -46,7 +46,7 @@ https://unpkg.com/multiform-validator@2.4.1/dist/cjs/index.cjs
using cjs:
```html
-
+