From 06b4de2403f64f6b43c965ed499891c742823139 Mon Sep 17 00:00:00 2001 From: Manu Chambon Date: Tue, 20 Dec 2022 12:30:38 +0100 Subject: [PATCH] ci: update eslint config with latest guidelines (#592) --- .eslintrc | 58 ++---- .../jestHelpers.tsx => .jest/helpers.tsx | 4 +- package.json | 2 +- pnpm-lock.yaml | 189 +++++++----------- .../CheckboxField/__tests__/index.spec.tsx | 2 +- src/components/DateField/__tests__/index.tsx | 2 +- src/components/Form/__tests__/index.spec.tsx | 2 +- .../RadioField/__tests__/index.spec.tsx | 2 +- .../RichSelectField/__tests__/index.spec.tsx | 2 +- .../__tests__/index.spec.tsx | 2 +- .../__tests__/index.spec.tsx | 2 +- .../Submit/__tests__/index.spec.tsx | 2 +- .../SubmitErrorAlert/__tests__/index.spec.tsx | 2 +- .../TagsField/__tests__/index.spec.tsx | 2 +- .../TextBoxField/__tests__/index.spec.tsx | 2 +- .../TimeField/__tests__/index.spec.tsx | 2 +- .../ToggleField/__tests__/index.spec.tsx | 2 +- .../ErrorContext/__tests__/index.spec.tsx | 2 +- 18 files changed, 108 insertions(+), 173 deletions(-) rename src/helpers/jestHelpers.tsx => .jest/helpers.tsx (94%) diff --git a/.eslintrc b/.eslintrc index 6647134a..5afdc343 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,54 +3,32 @@ "env": { "browser": true }, - "extends": [ - "@scaleway/react/typescript", - "plugin:react/jsx-runtime" - ], - "parserOptions": { - "project": [ - "tsconfig.json" - ] - }, - "plugins": [ - "@emotion" - ], - "rules": { - // Import - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "**/__stories__/**/*", - "**/__tests__/**/*", - "**/jestHelpers.tsx", - "rollup.config.mjs" - ] - } - ], - // emotion - "@emotion/styled-import": "error", - "@emotion/no-vanilla": "error", - "@emotion/import-from-emotion": "error", - "@emotion/syntax-preference": [ - "error", - "string" - ] - }, "overrides": [ { + "files": ["*.js", "*.mjs"], + "extends": ["@scaleway/react", "@scaleway/react/emotion"], + "parser": "@babel/eslint-parser" + }, + { + "files": ["*.ts", "*.tsx"], + "extends": ["@scaleway/react/typescript", "@scaleway/react/emotion"], + "parserOptions": { + "project": ["tsconfig.json"] + } + }, + { + "files": ["**/__stories__/**/*.{ts,tsx}", "**/__tests__/**/*.{ts,tsx}"], + "extends": ["@scaleway/react/typescript"], + "parserOptions": { + "project": ["tsconfig.json"] + }, "env": { "jest": true }, - "files": [ - "**/__stories__/**/*.{ts,tsx}", - "**/__tests__/**/*.{ts,tsx}" - ], "rules": { "no-console": "off", "no-alert": "off", - "react/prop-types": "off", - "react/jsx-props-no-spreading": "off" + "react/jsx-props-no-spreading": "off", } } ] diff --git a/src/helpers/jestHelpers.tsx b/.jest/helpers.tsx similarity index 94% rename from src/helpers/jestHelpers.tsx rename to .jest/helpers.tsx index dbbba8db..d2be1fa6 100644 --- a/src/helpers/jestHelpers.tsx +++ b/.jest/helpers.tsx @@ -3,8 +3,8 @@ import makeHelpers from '@scaleway/jest-helpers' import { theme as lightTheme } from '@scaleway/ui' import { render } from '@testing-library/react' import type { ComponentProps, ReactElement, ReactNode } from 'react' -import { Form } from '../components' -import { mockErrors } from '../mocks' +import { Form } from '../src/components' +import { mockErrors } from '../src/mocks' type WrapperProps = { theme?: typeof lightTheme diff --git a/package.json b/package.json index 088eb1c9..17842a23 100644 --- a/package.json +++ b/package.json @@ -138,7 +138,7 @@ "@rollup/plugin-babel": "6.0.3", "@rollup/plugin-node-resolve": "15.0.1", "@rollup/plugin-url": "8.0.1", - "@scaleway/eslint-config-react": "3.11.2", + "@scaleway/eslint-config-react": "3.13.0", "@scaleway/jest-helpers": "2.0.24", "@scaleway/tsconfig": "1.1.0", "@semantic-release/changelog": "6.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2d7cebfe..54222061 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,7 +21,7 @@ specifiers: '@rollup/plugin-babel': 6.0.3 '@rollup/plugin-node-resolve': 15.0.1 '@rollup/plugin-url': 8.0.1 - '@scaleway/eslint-config-react': 3.11.2 + '@scaleway/eslint-config-react': 3.13.0 '@scaleway/jest-helpers': 2.0.24 '@scaleway/tsconfig': 1.1.0 '@scaleway/ui': 0.213.3 @@ -110,7 +110,7 @@ devDependencies: '@rollup/plugin-babel': 6.0.3_jq7ejmtxohag7dsrebvugbjt6q '@rollup/plugin-node-resolve': 15.0.1_rollup@3.5.1 '@rollup/plugin-url': 8.0.1_rollup@3.5.1 - '@scaleway/eslint-config-react': 3.11.2_hsf322ms6xhhd4b5ne6lb74y4a + '@scaleway/eslint-config-react': 3.13.0_hsf322ms6xhhd4b5ne6lb74y4a '@scaleway/jest-helpers': 2.0.24_34ch25xmpqfrx6wylcxtcsskau '@scaleway/tsconfig': 1.1.0 '@semantic-release/changelog': 6.0.2_semantic-release@19.0.5 @@ -216,7 +216,7 @@ packages: convert-source-map: 1.9.0 debug: 4.3.4 gensync: 1.0.0-beta.2 - json5: 2.2.1 + json5: 2.2.2 lodash: 4.17.21 resolve: 1.22.1 semver: 5.7.1 @@ -1670,8 +1670,8 @@ packages: source-map-support: 0.5.21 dev: true - /@babel/runtime-corejs3/7.20.1: - resolution: {integrity: sha512-CGulbEDcg/ND1Im7fUNRZdGXmX2MTWVVZacQi/6DiKE5HNwZ3aVTm5PV4lO8HHz0B2h8WQyvKKjbX5XgTtydsg==} + /@babel/runtime-corejs3/7.20.6: + resolution: {integrity: sha512-tqeujPiuEfcH067mx+7otTQWROVMKHXEaOQcAeNV5dDdbPWvPcFA8/W9LXw2NfjNmOetqLl03dfnG2WALPlsRQ==} engines: {node: '>=6.9.0'} dependencies: core-js-pure: 3.26.1 @@ -2878,7 +2878,7 @@ packages: open: 8.4.0 picocolors: 1.0.0 tiny-glob: 0.2.9 - tslib: 2.4.1 + tslib: 2.4.0 dev: true /@pmmmwh/react-refresh-webpack-plugin/0.5.8_ohj47mxwagpoxvu7nhhwxzphqm: @@ -3039,11 +3039,12 @@ packages: rollup: 3.5.1 dev: true - /@scaleway/eslint-config-react/3.11.2_hsf322ms6xhhd4b5ne6lb74y4a: - resolution: {integrity: sha512-/6DXYQCCOFpCsw/gAP8N7ujQ2wvIQouz9AoAXaBwFKOlMGlRvpef7JR5/NnPxFlMw3fDKwcpZMOvst9egVZgVw==} + /@scaleway/eslint-config-react/3.13.0_hsf322ms6xhhd4b5ne6lb74y4a: + resolution: {integrity: sha512-2XvTskUZ+/NE/eQU0XW5jOhACp14Jfw/EzbWIDeiiXn23qyM0ZhEHNbAjI/8nXOQx6w15WcUe4IKEiD31n3FhA==} peerDependencies: eslint: '>= 8.5' dependencies: + '@emotion/eslint-plugin': 11.10.0_eslint@8.28.0 '@typescript-eslint/eslint-plugin': 5.46.1_xsujv2ayh7tsf4brow4jkzysmq '@typescript-eslint/parser': 5.46.1_hsf322ms6xhhd4b5ne6lb74y4a eslint: 8.28.0 @@ -4028,7 +4029,7 @@ packages: glob: 7.2.3 handlebars: 4.7.7 interpret: 2.2.0 - json5: 2.2.1 + json5: 2.2.2 lazy-universal-dotenv: 3.0.1 picomatch: 2.3.1 pkg-dir: 5.0.0 @@ -5090,7 +5091,7 @@ packages: '@typescript-eslint/utils': 5.46.1_hsf322ms6xhhd4b5ne6lb74y4a debug: 4.3.4 eslint: 8.28.0 - ignore: 5.2.1 + ignore: 5.2.2 natural-compare-lite: 1.4.0 regexpp: 3.2.0 semver: 7.3.8 @@ -5100,13 +5101,13 @@ packages: - supports-color dev: true - /@typescript-eslint/experimental-utils/5.43.0_hsf322ms6xhhd4b5ne6lb74y4a: - resolution: {integrity: sha512-WkT637CumTJbm/hRbFfnHBMgfUYTKr08LitVsD7gQId7bi6rnkx3pu3jac67lmp5ObW4MpJ9SNFZAIOUB/Qbsw==} + /@typescript-eslint/experimental-utils/5.46.1_hsf322ms6xhhd4b5ne6lb74y4a: + resolution: {integrity: sha512-M79mkB+wOuiBG8jzOVNA2h5izOip5CNPZV1K3tvE/qry/1Oh/bnKYhNWQNiH2h9O3B73YK60GmiqrUpprnQ5sQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - '@typescript-eslint/utils': 5.43.0_hsf322ms6xhhd4b5ne6lb74y4a + '@typescript-eslint/utils': 5.46.1_hsf322ms6xhhd4b5ne6lb74y4a eslint: 8.28.0 transitivePeerDependencies: - supports-color @@ -5133,14 +5134,6 @@ packages: - supports-color dev: true - /@typescript-eslint/scope-manager/5.43.0: - resolution: {integrity: sha512-XNWnGaqAtTJsUiZaoiGIrdJYHsUOd3BZ3Qj5zKp9w6km6HsrjPk/TGZv0qMTWyWj0+1QOqpHQ2gZOLXaGA9Ekw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - '@typescript-eslint/types': 5.43.0 - '@typescript-eslint/visitor-keys': 5.43.0 - dev: true - /@typescript-eslint/scope-manager/5.46.1: resolution: {integrity: sha512-iOChVivo4jpwUdrJZyXSMrEIM/PvsbbDOX1y3UCKjSgWn+W89skxWaYXACQfxmIGhPVpRWK/VWPYc+bad6smIA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -5169,37 +5162,11 @@ packages: - supports-color dev: true - /@typescript-eslint/types/5.43.0: - resolution: {integrity: sha512-jpsbcD0x6AUvV7tyOlyvon0aUsQpF8W+7TpJntfCUWU1qaIKu2K34pMwQKSzQH8ORgUrGYY6pVIh1Pi8TNeteg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dev: true - /@typescript-eslint/types/5.46.1: resolution: {integrity: sha512-Z5pvlCaZgU+93ryiYUwGwLl9AQVB/PQ1TsJ9NZ/gHzZjN7g9IAn6RSDkpCV8hqTwAiaj6fmCcKSQeBPlIpW28w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/typescript-estree/5.43.0_typescript@4.9.3: - resolution: {integrity: sha512-BZ1WVe+QQ+igWal2tDbNg1j2HWUkAa+CVqdU79L4HP9izQY6CNhXfkNwd1SS4+sSZAP/EthI1uiCSY/+H0pROg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/types': 5.43.0 - '@typescript-eslint/visitor-keys': 5.43.0 - debug: 4.3.4 - globby: 11.1.0 - is-glob: 4.0.3 - semver: 7.3.8 - tsutils: 3.21.0_typescript@4.9.3 - typescript: 4.9.3 - transitivePeerDependencies: - - supports-color - dev: true - /@typescript-eslint/typescript-estree/5.46.1_typescript@4.9.3: resolution: {integrity: sha512-j9W4t67QiNp90kh5Nbr1w92wzt+toiIsaVPnEblB2Ih2U9fqBTyqV9T3pYWZBRt6QoMh/zVWP59EpuCjc4VRBg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -5221,26 +5188,6 @@ packages: - supports-color dev: true - /@typescript-eslint/utils/5.43.0_hsf322ms6xhhd4b5ne6lb74y4a: - resolution: {integrity: sha512-8nVpA6yX0sCjf7v/NDfeaOlyaIIqL7OaIGOWSPFqUKK59Gnumd3Wa+2l8oAaYO2lk0sO+SbWFWRSvhu8gLGv4A==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - dependencies: - '@types/json-schema': 7.0.11 - '@types/semver': 7.3.13 - '@typescript-eslint/scope-manager': 5.43.0 - '@typescript-eslint/types': 5.43.0 - '@typescript-eslint/typescript-estree': 5.43.0_typescript@4.9.3 - eslint: 8.28.0 - eslint-scope: 5.1.1 - eslint-utils: 3.0.0_eslint@8.28.0 - semver: 7.3.8 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - /@typescript-eslint/utils/5.46.1_hsf322ms6xhhd4b5ne6lb74y4a: resolution: {integrity: sha512-RBdBAGv3oEpFojaCYT4Ghn4775pdjvwfDOfQ2P6qzNVgQOVrnSPe5/Pb88kv7xzYQjoio0eKHKB9GJ16ieSxvA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -5261,14 +5208,6 @@ packages: - typescript dev: true - /@typescript-eslint/visitor-keys/5.43.0: - resolution: {integrity: sha512-icl1jNH/d18OVHLfcwdL3bWUKsBeIiKYTGxMJCoGe7xFht+E4QgzOqoWYrU8XSLJWhVw8nTacbm03v23J/hFTg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - '@typescript-eslint/types': 5.43.0 - eslint-visitor-keys: 3.3.0 - dev: true - /@typescript-eslint/visitor-keys/5.46.1: resolution: {integrity: sha512-jczZ9noovXwy59KjRTk1OftT78pwygdcmCuBf8yMoWt/8O8l+6x2LSEze0E4TeepXK4MezW3zGSyoDRZK7Y9cg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -5879,7 +5818,7 @@ packages: engines: {node: '>=6.0'} dependencies: '@babel/runtime': 7.20.6 - '@babel/runtime-corejs3': 7.20.1 + '@babel/runtime-corejs3': 7.20.6 dev: true /aria-query/5.0.0: @@ -5928,7 +5867,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 get-intrinsic: 1.1.3 is-string: 1.0.7 dev: true @@ -5961,7 +5900,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 es-shim-unscopables: 1.0.0 dev: true @@ -5971,7 +5910,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 es-shim-unscopables: 1.0.0 dev: true @@ -5981,7 +5920,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 es-array-method-boxes-properly: 1.0.0 is-string: 1.0.7 dev: true @@ -5992,7 +5931,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 es-array-method-boxes-properly: 1.0.0 is-string: 1.0.7 dev: true @@ -6002,7 +5941,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 es-shim-unscopables: 1.0.0 get-intrinsic: 1.1.3 dev: true @@ -6097,8 +6036,8 @@ packages: engines: {node: '>= 0.4'} dev: true - /axe-core/4.5.2: - resolution: {integrity: sha512-u2MVsXfew5HBvjsczCv+xlwdNnB1oQR9HlAcsejZttNjKKSkeDNVwB1vMThIUIFI9GoT57Vtk8iQLwqOfAkboA==} + /axe-core/4.6.1: + resolution: {integrity: sha512-lCZN5XRuOnpG4bpMq8v0khrWtUOn+i8lZSb6wHZH56ZfbIEv6XwJV84AAueh9/zi7qPVJ/E4yz6fmsiyOmXR4w==} engines: {node: '>=4'} dev: true @@ -8249,8 +8188,8 @@ packages: stackframe: 1.3.4 dev: true - /es-abstract/1.20.4: - resolution: {integrity: sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA==} + /es-abstract/1.20.5: + resolution: {integrity: sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.2 @@ -8259,10 +8198,11 @@ packages: function.prototype.name: 1.1.5 get-intrinsic: 1.1.3 get-symbol-description: 1.0.0 + gopd: 1.0.1 has: 1.0.3 has-property-descriptors: 1.0.0 has-symbols: 1.0.3 - internal-slot: 1.0.3 + internal-slot: 1.0.4 is-callable: 1.2.7 is-negative-zero: 2.0.2 is-regex: 1.1.4 @@ -8442,7 +8382,7 @@ packages: remark-parse: 10.0.1 remark-stringify: 10.0.2 synckit: 0.8.4 - tslib: 2.4.1 + tslib: 2.4.0 unified: 10.1.2 unist-util-visit: 4.1.1 uvu: 0.5.6 @@ -8486,7 +8426,7 @@ packages: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 typescript: ^3.7.5 || ^4.0.0 dependencies: - '@typescript-eslint/experimental-utils': 5.43.0_hsf322ms6xhhd4b5ne6lb74y4a + '@typescript-eslint/experimental-utils': 5.46.1_hsf322ms6xhhd4b5ne6lb74y4a eslint: 8.28.0 tslib: 2.4.1 tsutils: 3.21.0_typescript@4.9.3 @@ -8503,7 +8443,7 @@ packages: dependencies: escape-string-regexp: 1.0.5 eslint: 8.28.0 - ignore: 5.2.1 + ignore: 5.2.2 dev: true /eslint-plugin-import/2.26.0_reqhkfomvdnfer3wiaxm4j2xru: @@ -8547,14 +8487,14 @@ packages: aria-query: 4.2.2 array-includes: 3.1.6 ast-types-flow: 0.0.7 - axe-core: 4.5.2 + axe-core: 4.6.1 axobject-query: 2.2.0 damerau-levenshtein: 1.0.8 emoji-regex: 9.2.2 eslint: 8.28.0 has: 1.0.3 jsx-ast-utils: 3.3.3 - language-tags: 1.0.5 + language-tags: 1.0.7 minimatch: 3.1.2 semver: 6.3.0 dev: true @@ -9527,7 +9467,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 functions-have-names: 1.2.3 dev: true @@ -9754,7 +9694,7 @@ packages: array-union: 2.1.0 dir-glob: 3.0.1 fast-glob: 3.2.12 - ignore: 5.2.1 + ignore: 5.2.2 merge2: 1.4.1 slash: 3.0.0 dev: true @@ -9779,6 +9719,12 @@ packages: resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} dev: true + /gopd/1.0.1: + resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} + dependencies: + get-intrinsic: 1.1.3 + dev: true + /graceful-fs/4.2.10: resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} dev: true @@ -10239,6 +10185,11 @@ packages: engines: {node: '>= 4'} dev: true + /ignore/5.2.2: + resolution: {integrity: sha512-m1MJSy4Z2NAcyhoYpxQeBsc1ZdNQwYjN0wGbLBlnVArdJ90Gtr8IhNSfZZcCoR0fM/0E0BJ0mf1KnLNDOCJP4w==} + engines: {node: '>= 4'} + dev: true + /import-fresh/3.3.0: resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} engines: {node: '>=6'} @@ -10328,8 +10279,8 @@ packages: through: 2.3.8 dev: true - /internal-slot/1.0.3: - resolution: {integrity: sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==} + /internal-slot/1.0.4: + resolution: {integrity: sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==} engines: {node: '>= 0.4'} dependencies: get-intrinsic: 1.1.3 @@ -10747,7 +10698,7 @@ packages: dependencies: available-typed-arrays: 1.0.5 call-bind: 1.0.2 - es-abstract: 1.20.4 + es-abstract: 1.20.5 for-each: 0.3.3 has-tostringtag: 1.0.0 dev: true @@ -11553,6 +11504,12 @@ packages: engines: {node: '>=6'} hasBin: true + /json5/2.2.2: + resolution: {integrity: sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ==} + engines: {node: '>=6'} + hasBin: true + dev: true + /jsonfile/4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} optionalDependencies: @@ -11628,8 +11585,8 @@ packages: resolution: {integrity: sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==} dev: true - /language-tags/1.0.5: - resolution: {integrity: sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==} + /language-tags/1.0.7: + resolution: {integrity: sha512-bSytju1/657hFjgUzPAPqszxH62ouE8nQFoFaVlIQfne4wO/wXC9A4+m8jYve7YBBvi59eq0SUpcshvG8h5Usw==} dependencies: language-subtag-registry: 0.3.22 dev: true @@ -11763,7 +11720,7 @@ packages: dependencies: big.js: 5.2.2 emojis-list: 3.0.0 - json5: 2.2.1 + json5: 2.2.2 dev: true /loader-utils/2.0.4: @@ -11772,7 +11729,7 @@ packages: dependencies: big.js: 5.2.2 emojis-list: 3.0.0 - json5: 2.2.1 + json5: 2.2.2 dev: true /locate-path/2.0.0: @@ -13160,7 +13117,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 dev: true /object.fromentries/2.0.6: @@ -13169,7 +13126,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 dev: true /object.getownpropertydescriptors/2.1.4: @@ -13179,14 +13136,14 @@ packages: array.prototype.reduce: 1.0.4 call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 dev: true /object.hasown/1.1.2: resolution: {integrity: sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==} dependencies: define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 dev: true /object.pick/1.3.0: @@ -13202,7 +13159,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 dev: true /objectorarray/1.0.5: @@ -13964,7 +13921,7 @@ packages: array.prototype.map: 1.0.4 call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 get-intrinsic: 1.1.3 iterate-value: 1.0.2 dev: true @@ -13975,7 +13932,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 dev: true /prompts/2.4.2: @@ -15646,10 +15603,10 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 get-intrinsic: 1.1.3 has-symbols: 1.0.3 - internal-slot: 1.0.3 + internal-slot: 1.0.4 regexp.prototype.flags: 1.4.3 side-channel: 1.0.4 dev: true @@ -15660,7 +15617,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 dev: true /string.prototype.padstart/3.1.3: @@ -15669,7 +15626,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 dev: true /string.prototype.trimend/1.0.6: @@ -15677,7 +15634,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 dev: true /string.prototype.trimstart/1.0.6: @@ -15685,7 +15642,7 @@ packages: dependencies: call-bind: 1.0.2 define-properties: 1.1.4 - es-abstract: 1.20.4 + es-abstract: 1.20.5 dev: true /string_decoder/1.1.1: @@ -15892,7 +15849,7 @@ packages: engines: {node: ^14.18.0 || >=16.0.0} dependencies: '@pkgr/utils': 2.3.1 - tslib: 2.4.1 + tslib: 2.4.0 dev: true /tapable/1.1.3: @@ -17104,7 +17061,7 @@ packages: dependencies: available-typed-arrays: 1.0.5 call-bind: 1.0.2 - es-abstract: 1.20.4 + es-abstract: 1.20.5 for-each: 0.3.3 has-tostringtag: 1.0.0 is-typed-array: 1.1.9 diff --git a/src/components/CheckboxField/__tests__/index.spec.tsx b/src/components/CheckboxField/__tests__/index.spec.tsx index d6a785a4..8faa9809 100644 --- a/src/components/CheckboxField/__tests__/index.spec.tsx +++ b/src/components/CheckboxField/__tests__/index.spec.tsx @@ -5,7 +5,7 @@ import { CheckboxField, Form } from '../..' import { shouldMatchEmotionSnapshot, shouldMatchEmotionSnapshotFormWrapper, -} from '../../../helpers/jestHelpers' +} from '../../../../.jest/helpers' import { mockErrors } from '../../../mocks' describe('CheckboxField', () => { diff --git a/src/components/DateField/__tests__/index.tsx b/src/components/DateField/__tests__/index.tsx index 9b5c732c..f56b0eb2 100644 --- a/src/components/DateField/__tests__/index.tsx +++ b/src/components/DateField/__tests__/index.tsx @@ -5,7 +5,7 @@ import { mockRandom, restoreRandom, shouldMatchEmotionSnapshotFormWrapper, -} from '../../../helpers/jestHelpers' +} from '../../../../.jest/helpers' describe('DateField', () => { beforeAll(mockRandom) diff --git a/src/components/Form/__tests__/index.spec.tsx b/src/components/Form/__tests__/index.spec.tsx index 5e6209dc..b58a010f 100644 --- a/src/components/Form/__tests__/index.spec.tsx +++ b/src/components/Form/__tests__/index.spec.tsx @@ -1,7 +1,7 @@ import { waitFor } from '@testing-library/react' import userEvent from '@testing-library/user-event' import { Form } from '..' -import { shouldMatchEmotionSnapshot } from '../../../helpers/jestHelpers' +import { shouldMatchEmotionSnapshot } from '../../../../.jest/helpers' import { mockErrors } from '../../../mocks' describe('Form', () => { diff --git a/src/components/RadioField/__tests__/index.spec.tsx b/src/components/RadioField/__tests__/index.spec.tsx index ef7dd7ad..a9bc5664 100644 --- a/src/components/RadioField/__tests__/index.spec.tsx +++ b/src/components/RadioField/__tests__/index.spec.tsx @@ -5,7 +5,7 @@ import { restoreRandom, shouldMatchEmotionSnapshot, shouldMatchEmotionSnapshotFormWrapper, -} from '../../../helpers/jestHelpers' +} from '../../../../.jest/helpers' import { mockErrors } from '../../../mocks/mockErrors' import { Form } from '../../Form' diff --git a/src/components/RichSelectField/__tests__/index.spec.tsx b/src/components/RichSelectField/__tests__/index.spec.tsx index 3e8d0198..764c6d25 100644 --- a/src/components/RichSelectField/__tests__/index.spec.tsx +++ b/src/components/RichSelectField/__tests__/index.spec.tsx @@ -5,7 +5,7 @@ import { mockRandom, restoreRandom, shouldMatchEmotionSnapshotFormWrapper, -} from '../../../helpers/jestHelpers' +} from '../../../../.jest/helpers' describe('RichSelectField', () => { beforeAll(mockRandom) diff --git a/src/components/SelectNumberField/__tests__/index.spec.tsx b/src/components/SelectNumberField/__tests__/index.spec.tsx index c8c267d9..b34c1d48 100644 --- a/src/components/SelectNumberField/__tests__/index.spec.tsx +++ b/src/components/SelectNumberField/__tests__/index.spec.tsx @@ -4,7 +4,7 @@ import { Form, SelectNumberField } from '../..' import { shouldMatchEmotionSnapshot, shouldMatchEmotionSnapshotFormWrapper, -} from '../../../helpers/jestHelpers' +} from '../../../../.jest/helpers' import { mockErrors } from '../../../mocks' describe('SelectNumberField', () => { diff --git a/src/components/SelectableCardField/__tests__/index.spec.tsx b/src/components/SelectableCardField/__tests__/index.spec.tsx index 7a75df08..02b90c13 100644 --- a/src/components/SelectableCardField/__tests__/index.spec.tsx +++ b/src/components/SelectableCardField/__tests__/index.spec.tsx @@ -6,7 +6,7 @@ import { restoreRandom, shouldMatchEmotionSnapshot, shouldMatchEmotionSnapshotFormWrapper, -} from '../../../helpers/jestHelpers' +} from '../../../../.jest/helpers' import { mockErrors } from '../../../mocks' describe('SelectableCardField', () => { diff --git a/src/components/Submit/__tests__/index.spec.tsx b/src/components/Submit/__tests__/index.spec.tsx index db6be095..d0bcf958 100644 --- a/src/components/Submit/__tests__/index.spec.tsx +++ b/src/components/Submit/__tests__/index.spec.tsx @@ -5,7 +5,7 @@ import { restoreRandom, shouldMatchEmotionSnapshot, shouldMatchEmotionSnapshotFormWrapper, -} from '../../../helpers/jestHelpers' +} from '../../../../.jest/helpers' import { mockErrors } from '../../../mocks' const alpha = /^[a-zA-Z]*$/ diff --git a/src/components/SubmitErrorAlert/__tests__/index.spec.tsx b/src/components/SubmitErrorAlert/__tests__/index.spec.tsx index c862a076..8d4d2ce6 100644 --- a/src/components/SubmitErrorAlert/__tests__/index.spec.tsx +++ b/src/components/SubmitErrorAlert/__tests__/index.spec.tsx @@ -5,7 +5,7 @@ import { Form, Submit, SubmitErrorAlert } from '../..' import { shouldMatchEmotionSnapshot, shouldMatchEmotionSnapshotFormWrapper, -} from '../../../helpers/jestHelpers' +} from '../../../../.jest/helpers' import { mockErrors } from '../../../mocks' describe('SubmitErrorAlert', () => { diff --git a/src/components/TagsField/__tests__/index.spec.tsx b/src/components/TagsField/__tests__/index.spec.tsx index ff8ea5a7..06ed0a22 100644 --- a/src/components/TagsField/__tests__/index.spec.tsx +++ b/src/components/TagsField/__tests__/index.spec.tsx @@ -1,5 +1,5 @@ import { TagsField } from '../..' -import { shouldMatchEmotionSnapshotFormWrapper } from '../../../helpers/jestHelpers' +import { shouldMatchEmotionSnapshotFormWrapper } from '../../../../.jest/helpers' describe('ToggleField', () => { test('should render correctly', () => diff --git a/src/components/TextBoxField/__tests__/index.spec.tsx b/src/components/TextBoxField/__tests__/index.spec.tsx index ebe57409..f899195b 100644 --- a/src/components/TextBoxField/__tests__/index.spec.tsx +++ b/src/components/TextBoxField/__tests__/index.spec.tsx @@ -1,7 +1,7 @@ import { act } from '@testing-library/react' import userEvent from '@testing-library/user-event' import { TextBoxField } from '..' -import { shouldMatchEmotionSnapshotFormWrapper } from '../../../helpers/jestHelpers' +import { shouldMatchEmotionSnapshotFormWrapper } from '../../../../.jest/helpers' import { mockErrors } from '../../../mocks' describe('TextBoxField', () => { diff --git a/src/components/TimeField/__tests__/index.spec.tsx b/src/components/TimeField/__tests__/index.spec.tsx index 6ef02a03..62635491 100644 --- a/src/components/TimeField/__tests__/index.spec.tsx +++ b/src/components/TimeField/__tests__/index.spec.tsx @@ -5,7 +5,7 @@ import { mockRandom, restoreRandom, shouldMatchEmotionSnapshotFormWrapper, -} from '../../../helpers/jestHelpers' +} from '../../../../.jest/helpers' describe('TimeField', () => { beforeAll(mockRandom) diff --git a/src/components/ToggleField/__tests__/index.spec.tsx b/src/components/ToggleField/__tests__/index.spec.tsx index 246e03dc..da9d38dd 100644 --- a/src/components/ToggleField/__tests__/index.spec.tsx +++ b/src/components/ToggleField/__tests__/index.spec.tsx @@ -1,5 +1,5 @@ import { ToggleField } from '..' -import { shouldMatchEmotionSnapshotFormWrapper } from '../../../helpers/jestHelpers' +import { shouldMatchEmotionSnapshotFormWrapper } from '../../../../.jest/helpers' describe('ToggleField', () => { test('should render correctly', () => diff --git a/src/providers/ErrorContext/__tests__/index.spec.tsx b/src/providers/ErrorContext/__tests__/index.spec.tsx index 76e4a556..d87abc13 100644 --- a/src/providers/ErrorContext/__tests__/index.spec.tsx +++ b/src/providers/ErrorContext/__tests__/index.spec.tsx @@ -2,7 +2,7 @@ import { renderHook } from '@testing-library/react' import type { ReactNode } from 'react' import { Form as ReactFinalForm } from 'react-final-form' import { ErrorProvider, useErrors } from '..' -import { shouldMatchEmotionSnapshot } from '../../../helpers/jestHelpers' +import { shouldMatchEmotionSnapshot } from '../../../../.jest/helpers' import { mockErrors } from '../../../mocks' const HookWrapper = ({ children }: { children: ReactNode }) => (