react-mui-form-validator 1.2.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "react-mui-form-validator",
3
- "version": "1.2.0",
3
+ "version": "1.5.0",
4
4
  "description": "Validator for forms designed with material-ui components.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "scripts": {
8
- "build": "tsup src/index.ts --dts --outDir=lib"
8
+ "prod": "rimraf ./lib && tsup src/index.ts --dts --outDir=lib",
9
+ "test": "jest",
10
+ "test:watch": "jest --watch"
9
11
  },
10
12
  "repository": {
11
13
  "type": "git",
12
- "url": "git+https://github.com/Blencm/react-mui-form-validator.git"
14
+ "url": "git+https://github.com/blencm/react-mui-form-validator.git"
13
15
  },
14
16
  "keywords": [
15
17
  "react",
@@ -22,43 +24,27 @@
22
24
  "author": "Blencm",
23
25
  "license": "MIT",
24
26
  "bugs": {
25
- "url": "https://github.com/Blencm/react-mui-form-validator/issues"
27
+ "url": "https://github.com/blencm/react-mui-form-validator/issues"
26
28
  },
27
- "homepage": "https://github.com/Blencm/react-mui-form-validator#readme",
29
+ "homepage": "https://github.com/blencm/react-mui-form-validator#readme",
28
30
  "dependencies": {
29
- "@types/lodash": "^4.14.196",
30
- "country-flag-icons": "^1.5.7",
31
- "lodash": "^4.17.21",
32
- "mui-styles": "^1.0.0",
31
+ "libphonenumber-js": "^1.10.49",
33
32
  "react": "^18.2.0",
34
33
  "react-dom": "^18.2.0",
35
34
  "react-lifecycles-compat": "^3.0.4"
36
35
  },
37
36
  "peerDependencies": {
38
- "react": "^17.0.0 || ^18.2.0 || ^19.0.0 || ^20.0.0",
39
- "react-dom": "^17.0.0 || ^18.2.0 || ^19.0.0 || ^20.0.0"
37
+ "react": "^16.0.0 || ^17.0.0 || ^18.2.0",
38
+ "react-dom": "^16.0.0 || ^17.0.0 || ^18.2.0"
40
39
  },
41
40
  "devDependencies": {
42
- "@mui/material": "^5.14.3",
43
- "@types/node": "^20.4.8",
44
- "@types/prop-types": "^15.7.5",
45
- "@types/react": "^18.2.18",
46
- "@types/react-dom": "^18.2.7",
47
- "@types/react-lifecycles-compat": "^3.0.1",
48
- "@typescript-eslint/eslint-plugin": "^6.2.1",
49
- "@typescript-eslint/parser": "^6.2.1",
50
- "eslint": "^8.46.0",
51
- "eslint-config-airbnb": "^19.0.4",
52
- "eslint-config-airbnb-typescript": "^17.1.0",
53
- "eslint-config-prettier": "^9.0.0",
54
- "eslint-plugin-import": "^2.28.0",
55
- "eslint-plugin-jsx-a11y": "^6.7.1",
56
- "eslint-plugin-prettier": "^5.0.0",
57
- "eslint-plugin-react": "^7.33.1",
58
- "eslint-plugin-react-hooks": "^4.6.0",
59
- "prop-types": "^15.8.1",
41
+ "@mui/material": "^5.14.16",
42
+ "@types/react": "^18.2.33",
43
+ "@types/react-dom": "^18.2.14",
44
+ "@types/react-lifecycles-compat": "^3.0.3",
45
+ "mui-tel-input": "4.0.1",
46
+ "rimraf": "^5.0.5",
60
47
  "tsup": "^7.2.0",
61
- "typescript": "^5.1.6",
62
- "warning": "^4.0.3"
48
+ "typescript": "^5.2.2"
63
49
  }
64
50
  }
package/tsconfig.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "module": "commonjs",
4
- "target": "es2022",
3
+ "module": "ESNext",
4
+ "target": "ESNext",
5
5
 
6
6
  "strict": true,
7
7
  "esModuleInterop": true,
8
8
  "skipLibCheck": true,
9
9
  "forceConsistentCasingInFileNames": true,
10
10
 
11
- "lib": ["es2022", "dom", "dom.iterable", "esnext"],
11
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
12
12
  "allowJs": true,
13
13
  "allowSyntheticDefaultImports": true,
14
14
  "noFallthroughCasesInSwitch": true,
package/.eslintignore DELETED
@@ -1,3 +0,0 @@
1
- node_modules/**
2
- **/__test__/**
3
- build/**
package/.eslintrc.json DELETED
@@ -1,69 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es2021": true
5
- },
6
- "extends": [
7
- "plugin:react/recommended",
8
- "airbnb-typescript",
9
- "plugin:react/jsx-runtime",
10
- "plugin:prettier/recommended"
11
- ],
12
- "parser": "@typescript-eslint/parser",
13
- "parserOptions": {
14
- "ecmaFeatures": {
15
- "jsx": true
16
- },
17
- "ecmaVersion": 11,
18
- "project": "./tsconfig.json",
19
- "sourceType": "module"
20
- },
21
- "plugins": ["react", "@typescript-eslint"],
22
- "settings": {
23
- "react": {
24
- "pragma": "React",
25
- "fragment": "Fragment",
26
- "version": "detect"
27
- }
28
- },
29
- "rules": {
30
- "prettier/prettier": "off",
31
- "react/jsx-filename-extension": "off",
32
- "import/no-unresolved": "off",
33
- "import/extensions": "off",
34
- "react/display-name": "off",
35
- "@typescript-eslint/comma-dangle": "off",
36
- "import/prefer-default-export": "off",
37
- "jsx-a11y/anchor-is-valid": "off",
38
- "comma-dangle": "off",
39
- "max-len": "off",
40
- "no-console": "off",
41
- "no-param-reassign": "off",
42
- "no-plusplus": "off",
43
- "no-return-assign": "off",
44
- "object-curly-newline": "off",
45
- "react/jsx-props-no-spreading": "off",
46
- "react/react-in-jsx-scope": "off",
47
- "react/require-default-props": "off",
48
- "typescript-eslint/no-unused-vars": "off",
49
- "import/no-extraneous-dependencies": "off",
50
- "react/no-unescaped-entities": "off",
51
- "react/forbid-prop-types": "off",
52
- "react/jsx-max-props-per-line": [
53
- 1,
54
- {
55
- "maximum": 2,
56
- "when": "multiline"
57
- }
58
- ],
59
- "indent": "off",
60
- "@typescript-eslint/indent": [0],
61
- "no-use-before-define": "off",
62
- "@typescript-eslint/no-use-before-define": ["off"],
63
- "@typescript-eslint/no-unused-vars": ["off"],
64
- "@typescript-eslint/no-shadow": ["off"],
65
- "@typescript-eslint/dot-notation": ["off"],
66
- "react/prop-types": ["off"],
67
- "@typescript-eslint/naming-convention": ["off"]
68
- }
69
- }