mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
refactor: upgrade configs (#1537)
* refactor: upgrade configs * fix(schemas): remove eslintignore
This commit is contained in:
parent
a0259be55f
commit
23a1fe3aff
26 changed files with 739 additions and 726 deletions
|
@ -27,7 +27,7 @@
|
|||
"@logto/connector-types": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"dayjs": "^1.10.5",
|
||||
"got": "^11.8.2",
|
||||
"iconv-lite": "0.6.3",
|
||||
|
@ -37,13 +37,13 @@
|
|||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@shopify/jest-koa-mocks": "^5.0.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/lodash.pick": "^4.4.6",
|
||||
"@types/node": "^16.3.1",
|
||||
"@types/supertest": "^2.0.11",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-matcher-specific-error": "^1.0.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
"@logto/connector-types": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"dayjs": "^1.10.5",
|
||||
"got": "^11.8.2",
|
||||
"iconv-lite": "0.6.3",
|
||||
|
@ -37,13 +37,13 @@
|
|||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@shopify/jest-koa-mocks": "^5.0.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/lodash.pick": "^4.4.6",
|
||||
"@types/node": "^16.3.1",
|
||||
"@types/supertest": "^2.0.11",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-matcher-specific-error": "^1.0.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -27,17 +27,17 @@
|
|||
"@logto/connector-types": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"got": "^11.8.2",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"lint-staged": "^13.0.0",
|
||||
"prettier": "^2.3.2",
|
||||
|
|
|
@ -28,17 +28,17 @@
|
|||
"@logto/schemas": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"got": "^11.8.2",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"lint-staged": "^13.0.0",
|
||||
"prettier": "^2.3.2",
|
||||
|
|
|
@ -29,18 +29,18 @@
|
|||
"@logto/schemas": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"got": "^11.8.2",
|
||||
"jose": "^4.3.8",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-matcher-specific-error": "^1.0.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -28,17 +28,17 @@
|
|||
"@logto/schemas": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"got": "^11.8.2",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-matcher-specific-error": "^1.0.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -29,18 +29,18 @@
|
|||
"@logto/schemas": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"got": "^11.8.2",
|
||||
"query-string": "^7.0.1",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-matcher-specific-error": "^1.0.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -28,17 +28,17 @@
|
|||
"@logto/schemas": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"got": "^11.8.2",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-matcher-specific-error": "^1.0.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -27,17 +27,17 @@
|
|||
"@logto/connector-types": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"got": "^11.8.2",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"lint-staged": "^13.0.0",
|
||||
"prettier": "^2.3.2",
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-restricted-syntax */
|
||||
import {
|
||||
Content,
|
||||
ContextType,
|
||||
|
@ -30,3 +31,4 @@ export const mockedConfig: SendGridMailConfig = {
|
|||
},
|
||||
],
|
||||
};
|
||||
/* eslint-enable no-restricted-syntax */
|
||||
|
|
|
@ -27,18 +27,18 @@
|
|||
"@logto/connector-types": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"nodemailer": "^6.7.5",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"@types/nodemailer": "^6.4.4",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"lint-staged": "^13.0.0",
|
||||
"prettier": "^2.3.2",
|
||||
|
|
|
@ -27,17 +27,17 @@
|
|||
"@logto/connector-types": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"got": "^11.8.2",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"lint-staged": "^13.0.0",
|
||||
"prettier": "^2.3.2",
|
||||
|
|
|
@ -25,11 +25,11 @@
|
|||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@shopify/jest-koa-mocks": "^5.0.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"lint-staged": "^13.0.0",
|
||||
"prettier": "^2.3.2",
|
||||
|
|
|
@ -28,17 +28,17 @@
|
|||
"@logto/schemas": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"got": "^11.8.2",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-matcher-specific-error": "^1.0.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -28,17 +28,17 @@
|
|||
"@logto/schemas": "^1.0.0-alpha.4",
|
||||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@silverhand/essentials": "^1.1.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"got": "^11.8.2",
|
||||
"zod": "^3.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "^27.5.1",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-matcher-specific-error": "^1.0.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -27,11 +27,11 @@
|
|||
"@parcel/transformer-mdx": "2.6.2",
|
||||
"@parcel/transformer-sass": "2.6.2",
|
||||
"@parcel/transformer-svg-react": "2.6.2",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config-react": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/eslint-config-react": "^0.16.2",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/ts-config-react": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@silverhand/ts-config-react": "^0.16.2",
|
||||
"@tsconfig/docusaurus": "^1.0.5",
|
||||
"@types/color": "^3.0.3",
|
||||
"@types/lodash.kebabcase": "^4.1.6",
|
||||
|
@ -46,7 +46,7 @@
|
|||
"csstype": "^3.0.11",
|
||||
"dayjs": "^1.10.5",
|
||||
"dnd-core": "^16.0.0",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"history": "^5.3.0",
|
||||
"i18next": "^21.6.12",
|
||||
"i18next-browser-languagedetector": "^6.1.3",
|
||||
|
@ -88,7 +88,8 @@
|
|||
"extends": "@silverhand/react",
|
||||
"rules": {
|
||||
"complexity": "off",
|
||||
"@typescript-eslint/prefer-nullish-coalescing": "off"
|
||||
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
||||
"no-restricted-syntax": "off"
|
||||
}
|
||||
},
|
||||
"stylelint": {
|
||||
|
|
|
@ -75,9 +75,9 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@shopify/jest-koa-mocks": "^5.0.0",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/debug": "^4.1.7",
|
||||
"@types/etag": "^1.8.1",
|
||||
"@types/inquirer": "^8.2.1",
|
||||
|
@ -93,7 +93,7 @@
|
|||
"@types/oidc-provider": "^7.11.1",
|
||||
"@types/supertest": "^2.0.11",
|
||||
"copyfiles": "^2.4.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-matcher-specific-error": "^1.0.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
@ -115,7 +115,8 @@
|
|||
"eslintConfig": {
|
||||
"extends": "@silverhand",
|
||||
"rules": {
|
||||
"complexity": "off"
|
||||
"complexity": "off",
|
||||
"no-restricted-syntax": "off"
|
||||
}
|
||||
},
|
||||
"prettier": "@silverhand/eslint-config/.prettierrc"
|
||||
|
|
|
@ -23,14 +23,14 @@
|
|||
"@logto/shared": "^1.0.0-alpha.3",
|
||||
"@parcel/core": "2.6.2",
|
||||
"@parcel/transformer-sass": "2.6.2",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config-react": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/ts-config-react": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/eslint-config-react": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@silverhand/ts-config-react": "^0.16.2",
|
||||
"@types/react": "^17.0.14",
|
||||
"@types/react-dom": "^17.0.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"i18next": "^21.6.12",
|
||||
"i18next-browser-languagedetector": "^6.1.3",
|
||||
"lint-staged": "^13.0.0",
|
||||
|
|
|
@ -15,13 +15,13 @@
|
|||
"@jest/types": "^27.5.1",
|
||||
"@logto/js": "^0.2.0",
|
||||
"@peculiar/webcrypto": "^1.3.3",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/essentials": "^1.1.7",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "^16.0.0",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"got": "^11.8.2",
|
||||
"jest": "^27.5.1",
|
||||
"node-fetch": "^2.6.7",
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
"@silverhand/essentials": "^1.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"eslint": "^8.10.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"eslint": "^8.19.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
"prettier": "^2.3.2",
|
||||
"typescript": "^4.6.2"
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
"@silverhand/essentials": "^1.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"eslint": "^8.10.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"eslint": "^8.19.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
"prettier": "^2.3.2",
|
||||
"typescript": "^4.6.2"
|
||||
|
|
|
@ -20,14 +20,14 @@
|
|||
"node": "^16.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@types/lodash.uniq": "^4.5.6",
|
||||
"@types/node": "16",
|
||||
"@types/pluralize": "^0.0.29",
|
||||
"camelcase": "^6.2.0",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
"lodash.uniq": "^4.5.0",
|
||||
"pluralize": "^8.0.0",
|
||||
|
|
|
@ -22,14 +22,14 @@
|
|||
"node": "^16.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config-react": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/eslint-config-react": "^0.16.2",
|
||||
"@silverhand/essentials": "^1.1.6",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/ts-config-react": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@silverhand/ts-config-react": "^0.16.2",
|
||||
"@types/color": "^3.0.3",
|
||||
"@types/node": "^16.3.1",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"lint-staged": "^13.0.0",
|
||||
"postcss": "^8.4.6",
|
||||
"prettier": "^2.3.2",
|
||||
|
|
|
@ -2,15 +2,15 @@ import color from 'color';
|
|||
|
||||
// Color hsl lighten/darken takes percentage value only, need to implement absolute value update
|
||||
export const absoluteLighten = (baseColor: color, delta: number) => {
|
||||
const hslArray = baseColor.hsl().round().array() as [number, number, number];
|
||||
const hslArray = baseColor.hsl().round().array();
|
||||
|
||||
return color([hslArray[0], hslArray[1], hslArray[2] + delta], 'hsl');
|
||||
return color([hslArray[0] ?? 0, hslArray[1] ?? 0, hslArray[2] ?? 0 + delta], 'hsl');
|
||||
};
|
||||
|
||||
export const absoluteDarken = (baseColor: color, delta: number) => {
|
||||
const hslArray = baseColor.hsl().round().array() as [number, number, number];
|
||||
const hslArray = baseColor.hsl().round().array();
|
||||
|
||||
return color([hslArray[0], hslArray[1], hslArray[2] - delta], 'hsl');
|
||||
return color([hslArray[0] ?? 0, hslArray[1] ?? 0, hslArray[2] ?? 0 - delta], 'hsl');
|
||||
};
|
||||
|
||||
export const generateDarkColor = (lightColor: string) =>
|
||||
|
|
|
@ -23,12 +23,12 @@
|
|||
"@parcel/transformer-sass": "2.6.2",
|
||||
"@parcel/transformer-svg-react": "2.6.2",
|
||||
"@peculiar/webcrypto": "^1.3.3",
|
||||
"@silverhand/eslint-config": "^0.15.0",
|
||||
"@silverhand/eslint-config-react": "^0.15.0",
|
||||
"@silverhand/eslint-config": "^0.16.2",
|
||||
"@silverhand/eslint-config-react": "^0.16.2",
|
||||
"@silverhand/essentials": "^1.1.7",
|
||||
"@silverhand/jest-config": "^0.15.0",
|
||||
"@silverhand/ts-config": "^0.15.0",
|
||||
"@silverhand/ts-config-react": "^0.15.0",
|
||||
"@silverhand/jest-config": "^0.16.2",
|
||||
"@silverhand/ts-config": "^0.16.2",
|
||||
"@silverhand/ts-config-react": "^0.16.2",
|
||||
"@testing-library/react": "^12.0.0",
|
||||
"@types/color": "^3.0.3",
|
||||
"@types/jest": "^27.4.1",
|
||||
|
@ -40,7 +40,7 @@
|
|||
"classnames": "^2.3.1",
|
||||
"color": "^4.2.3",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.10.0",
|
||||
"eslint": "^8.19.0",
|
||||
"i18next": "^21.6.12",
|
||||
"i18next-browser-languagedetector": "^6.1.3",
|
||||
"jest": "^27.5.1",
|
||||
|
@ -72,7 +72,8 @@
|
|||
"eslintConfig": {
|
||||
"extends": "@silverhand/react",
|
||||
"rules": {
|
||||
"complexity": "off"
|
||||
"complexity": "off",
|
||||
"no-restricted-syntax": "off"
|
||||
}
|
||||
},
|
||||
"stylelint": {
|
||||
|
|
1260
pnpm-lock.yaml
1260
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue