From dc2d6e4487d8ad89e96e01050961baaa0ca00d24 Mon Sep 17 00:00:00 2001 From: Daniel Jonathan Date: Mon, 20 May 2024 21:06:13 -0600 Subject: [PATCH] updated packages --- .env | 1 + .env.development | 0 .env.production | 0 .env.test | 0 .eslintignore | 2 + .eslintrc.yml | 145 ++++++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 69 +++++++++++++++++++++- package.json | 3 +- 8 files changed, 218 insertions(+), 2 deletions(-) create mode 100644 .env create mode 100644 .env.development create mode 100644 .env.production create mode 100644 .env.test create mode 100644 .eslintignore create mode 100644 .eslintrc.yml diff --git a/.env b/.env new file mode 100644 index 0000000..63024f1 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +LIB_NAME=@cosmicmind/domainjs \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..e69de29 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..e69de29 diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..e69de29 diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..76add87 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +node_modules +dist \ No newline at end of file diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 0000000..5567d2f --- /dev/null +++ b/.eslintrc.yml @@ -0,0 +1,145 @@ +root: true +env: + node: true + browser: true + es6: true +parser: '@typescript-eslint/parser' +plugins: + - '@typescript-eslint' +extends: + - eslint:recommended + - plugin:@typescript-eslint/eslint-recommended + - plugin:@typescript-eslint/recommended + - plugin:yml/standard +overrides: + - files: + - '**/*.js' + rules: + '@typescript-eslint/no-inferrable-types': + - 0 + '@typescript-eslint/explicit-function-return-type': + - 0 +rules: + '@typescript-eslint/no-empty-interface': + - 2 + '@typescript-eslint/no-inferrable-types': + - 2 + '@typescript-eslint/explicit-function-return-type': + - 2 + eqeqeq: + - 2 + camelcase: + - 2 + no-console: + - 2 + no-lonely-if: + - 2 + comma-dangle: + - 2 + - arrays: never + objects: always-multiline + imports: always-multiline + exports: always-multiline + functions: never + indent: + - 2 + - 2 + object-curly-spacing: + - 2 + - always + array-bracket-spacing: + - 2 + - always + curly: + - 2 + - all + template-curly-spacing: + - 2 + no-trailing-spaces: + - 2 + no-spaced-func: + - 2 + space-before-blocks: + - 2 + semi: + - 2 + - never + object-curly-newline: + - 2 + - multiline: true + minProperties: 2 + consistent: true + object-property-newline: + - 2 + object-shorthand: + - 2 + no-param-reassign: + - 2 + - props: false + no-extra-parens: + - 2 + no-return-await: + - 2 + no-self-compare: + - 2 + no-template-curly-in-string: + - 2 + no-throw-literal: + - 2 + no-undef-init: + - 2 + no-unmodified-loop-condition: + - 2 + no-unneeded-ternary: + - 2 + no-unreachable-loop: + - 2 + no-unsafe-optional-chaining: + - 2 + no-unused-expressions: + - 2 + no-use-before-define: + - 2 + - functions: false + no-useless-backreference: + - 2 + no-useless-call: + - 2 + no-useless-computed-key: + - 2 + no-useless-concat: + - 2 + no-useless-constructor: + - 2 + no-useless-rename: + - 2 + no-useless-return: + - 2 + no-var: + - 2 + nonblock-statement-body-position: + - 2 + one-var-declaration-per-line: + - 2 + prefer-arrow-callback: + - 2 + prefer-const: + - 2 + prefer-exponentiation-operator: + - 2 + prefer-numeric-literals: + - 2 + prefer-object-spread: + - 2 + prefer-promise-reject-errors: + - 2 + prefer-template: + - 2 + prefer-rest-params: + - 2 + rest-spread-spacing: + - 2 + require-atomic-updates: + - 2 + require-await: + - 2 diff --git a/package-lock.json b/package-lock.json index 6c4daa6..cbd4db6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,8 @@ "typescript": "^5.4.5", "vite": "^4.5.3", "vite-plugin-dts": "^1.7.3", - "vitest": "^0.34.6" + "vitest": "^0.34.6", + "yup": "^0.32.11" } }, "node_modules/@ampproject/remapping": { @@ -43,6 +44,18 @@ "node": ">=6.0.0" } }, + "node_modules/@babel/runtime": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.5.tgz", + "integrity": "sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@bcoe/v8-coverage": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", @@ -1213,6 +1226,12 @@ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, + "node_modules/@types/lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha512-wYCP26ZLxaT3R39kiN2+HcJ4kTd3U1waI/cY7ivWYqFP6pW3ZNpvi6Wd6PHZx7T/t8z0vlkXMg3QYLa7DZ/IJQ==", + "dev": true + }, "node_modules/@types/node": { "version": "18.19.33", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.33.tgz", @@ -3458,6 +3477,12 @@ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, + "node_modules/lodash-es": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", + "dev": true + }, "node_modules/lodash.get": { "version": "4.4.2", "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", @@ -3600,6 +3625,12 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, + "node_modules/nanoclone": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/nanoclone/-/nanoclone-0.2.1.tgz", + "integrity": "sha512-wynEP02LmIbLpcYw8uBKpcfF6dmg2vcpKqxeH5UcoKEYdExslsdUA4ugFauuaeYdTB76ez6gJW8XAZ6CgkXYxA==", + "dev": true + }, "node_modules/nanoid": { "version": "3.3.7", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", @@ -4122,6 +4153,12 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/property-expr": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz", + "integrity": "sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==", + "dev": true + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -4183,6 +4220,12 @@ "node": ">=4" } }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "dev": true + }, "node_modules/regexp.prototype.flags": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", @@ -4730,6 +4773,12 @@ "node": ">=8.0" } }, + "node_modules/toposort": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz", + "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==", + "dev": true + }, "node_modules/ts-morph": { "version": "17.0.1", "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-17.0.1.tgz", @@ -5333,6 +5382,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/yup": { + "version": "0.32.11", + "resolved": "https://registry.npmjs.org/yup/-/yup-0.32.11.tgz", + "integrity": "sha512-Z2Fe1bn+eLstG8DRR6FTavGD+MeAwyfmouhHsIUgaADz8jvFKbO/fXc2trJKZg+5EBjh4gGm3iU/t3onKlXHIg==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.15.4", + "@types/lodash": "^4.14.175", + "lodash": "^4.17.21", + "lodash-es": "^4.17.21", + "nanoclone": "^0.2.1", + "property-expr": "^2.0.4", + "toposort": "^2.0.2" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/z-schema": { "version": "5.0.5", "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-5.0.5.tgz", diff --git a/package.json b/package.json index 6e330a3..c3a1ef7 100644 --- a/package.json +++ b/package.json @@ -62,6 +62,7 @@ "typescript": "^5.4.5", "vite": "^4.5.3", "vite-plugin-dts": "^1.7.3", - "vitest": "^0.34.6" + "vitest": "^0.34.6", + "yup": "^0.32.11" } }