@bigbinary/neeto-commons-frontend 4.13.30 → 4.14.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/configs/eslint/globals.mjs +22 -0
- package/configs/eslint/helpers/{index.js → index.mjs} +8 -4
- package/configs/eslint/imports/enforced.mjs +34 -0
- package/configs/eslint/imports/order.mjs +71 -0
- package/configs/eslint/index.mjs +206 -0
- package/configs/eslint/overrides.mjs +28 -0
- package/configs/eslint/promise.mjs +12 -0
- package/configs/eslint/react.mjs +94 -0
- package/configs/nanos/eslint/imports/order.mjs +44 -0
- package/configs/nanos/eslint/index.mjs +21 -0
- package/configs/nextjs/eslint/imports/order.mjs +46 -0
- package/configs/nextjs/eslint/index.mjs +21 -0
- package/dist/cjs/constants/index.js.map +1 -1
- package/dist/cjs/constants/regex.js.map +1 -1
- package/dist/cjs/cypress-utils/.eslintrc.js.map +1 -1
- package/dist/cjs/cypress-utils/commands.js +2 -3
- package/dist/cjs/cypress-utils/commands.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/index.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/routes.js +1 -2
- package/dist/cjs/cypress-utils/constants/routes.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/common.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/common.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/editor.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/editor.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/login.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/login.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/member.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/member.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/navigation.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/navigation.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/roles.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/signUp.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/signUp.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/selectors/tags.js +1 -2
- package/dist/cjs/cypress-utils/constants/selectors/tags.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/common.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/member.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/navigation.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/roles.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/signUp.js.map +1 -1
- package/dist/cjs/cypress-utils/constants/texts/tags.js.map +1 -1
- package/dist/cjs/cypress-utils/fixtures/fake.js.map +1 -1
- package/dist/cjs/cypress-utils/index.js +1 -2
- package/dist/cjs/cypress-utils/index.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/authentication.js +1 -2
- package/dist/cjs/cypress-utils/utils/authentication.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/common.js +2 -3
- package/dist/cjs/cypress-utils/utils/common.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/date.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/email.js +2 -3
- package/dist/cjs/cypress-utils/utils/email.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/member.js +11 -12
- package/dist/cjs/cypress-utils/utils/member.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/navigation.js +1 -2
- package/dist/cjs/cypress-utils/utils/navigation.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/organization.js +1 -2
- package/dist/cjs/cypress-utils/utils/organization.js.map +1 -1
- package/dist/cjs/cypress-utils/utils/validation.js +1 -2
- package/dist/cjs/cypress-utils/utils/validation.js.map +1 -1
- package/dist/cjs/{toPropertyKey-CRgrohXG.js → defineProperty-lChFfVqi.js} +12 -2
- package/dist/cjs/defineProperty-lChFfVqi.js.map +1 -0
- package/dist/cjs/{index-DDd00LFf.js → index-CUYe6FO0.js} +16 -16
- package/dist/cjs/index-CUYe6FO0.js.map +1 -0
- package/dist/cjs/initializers/axios.js +1 -2
- package/dist/cjs/initializers/axios.js.map +1 -1
- package/dist/cjs/initializers/axiosInitializer/index.js +1 -2
- package/dist/cjs/initializers/axiosInitializer/index.js.map +1 -1
- package/dist/cjs/initializers/axiosInitializer/paramsSerializer.js.map +1 -1
- package/dist/cjs/initializers/constants.js.map +1 -1
- package/dist/cjs/initializers/dayjs.js.map +1 -1
- package/dist/cjs/initializers/globalProps.js.map +1 -1
- package/dist/cjs/initializers/i18n.js +59 -11
- package/dist/cjs/initializers/i18n.js.map +1 -1
- package/dist/cjs/initializers/index.js +3 -6
- package/dist/cjs/initializers/index.js.map +1 -1
- package/dist/cjs/initializers/logger.js.map +1 -1
- package/dist/cjs/initializers/mixpanel.js +5 -6
- package/dist/cjs/initializers/mixpanel.js.map +1 -1
- package/dist/cjs/initializers/reactDevTools.js.map +1 -1
- package/dist/cjs/initializers/utils/customFormatters.js.map +1 -1
- package/dist/cjs/initializers/utils/customPostProcessors.js.map +1 -1
- package/dist/cjs/initializers/utils/utils.js +1 -1
- package/dist/cjs/initializers/utils/utils.js.map +1 -1
- package/dist/cjs/mixpanel.module-ajRn5e0J.js +22401 -0
- package/dist/cjs/mixpanel.module-ajRn5e0J.js.map +1 -0
- package/dist/cjs/objectWithoutProperties-wSsbHFcG.js.map +1 -1
- package/dist/cjs/react-utils/AppContainer/AppContainer.js +3 -4
- package/dist/cjs/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/cjs/react-utils/AppContainer/index.js +1 -2
- package/dist/cjs/react-utils/AppContainer/index.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/devices.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/index.js +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js +1 -1
- package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +2 -3
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +1 -2
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/index.js +1 -2
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -1
- package/dist/cjs/react-utils/HoneybadgerErrorBoundary/utils.js.map +1 -1
- package/dist/cjs/react-utils/PageTitle/PageTitle.js.map +1 -1
- package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js +2 -3
- package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
- package/dist/cjs/react-utils/PrivateRoute/index.js +1 -2
- package/dist/cjs/react-utils/PrivateRoute/index.js.map +1 -1
- package/dist/cjs/react-utils/QueryClientProvider/QueryClientProvider.js.map +1 -1
- package/dist/cjs/react-utils/QueryClientProvider/queryClient.js.map +1 -1
- package/dist/cjs/react-utils/constants/constants.js.map +1 -1
- package/dist/cjs/react-utils/constants/query.js.map +1 -1
- package/dist/cjs/react-utils/index.js +4 -6
- package/dist/cjs/react-utils/index.js.map +1 -1
- package/dist/cjs/react-utils/metaClick/metaClick.js.map +1 -1
- package/dist/cjs/react-utils/useBreakpoints/index.js +1 -2
- package/dist/cjs/react-utils/useBreakpoints/index.js.map +1 -1
- package/dist/cjs/react-utils/useBreakpoints/utils.js +2 -3
- package/dist/cjs/react-utils/useBreakpoints/utils.js.map +1 -1
- package/dist/cjs/react-utils/useDebounce/index.js +1 -1
- package/dist/cjs/react-utils/useDebounce/useDebounce.js +1 -1
- package/dist/cjs/react-utils/useDebounce/useDebounce.js.map +1 -1
- package/dist/cjs/react-utils/useDisplayErrorPage/useDisplayErrorPage.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js +3 -4
- package/dist/cjs/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +4 -5
- package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/cjs/react-utils/useFieldSubmit/useFieldSubmit.js.map +1 -1
- package/dist/cjs/react-utils/useFuncDebounce/useFuncDebounce.js.map +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/index.js +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +1 -1
- package/dist/cjs/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/cjs/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/index.js +4 -6
- package/dist/cjs/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js +4 -6
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/cjs/react-utils/useMutationWithInvalidation/index.js +1 -2
- package/dist/cjs/react-utils/useMutationWithInvalidation/index.js.map +1 -1
- package/dist/cjs/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +2 -3
- package/dist/cjs/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -1
- package/dist/cjs/react-utils/useOnClickOutside/useOnClickOutside.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/index.js +3 -4
- package/dist/cjs/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js +4 -5
- package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/cjs/react-utils/usePrevious/usePrevious.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/index.js +3 -4
- package/dist/cjs/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js +3 -4
- package/dist/cjs/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js +3 -4
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +4 -5
- package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/cjs/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js.map +1 -1
- package/dist/cjs/react-utils/useStateWithDependency/index.js +1 -1
- package/dist/cjs/react-utils/useStateWithDependency/useStateWithDependency.js +1 -1
- package/dist/cjs/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -1
- package/dist/cjs/react-utils/useTimer/useTimer.js.map +1 -1
- package/dist/cjs/react-utils/useUpdateEffect/useUpdateEffect.js.map +1 -1
- package/dist/cjs/react-utils/withImmutableActions/withImmutableActions.js.map +1 -1
- package/dist/cjs/react-utils/withT/withT.js.map +1 -1
- package/dist/cjs/react-utils/withTitle/index.js +1 -2
- package/dist/cjs/react-utils/withTitle/index.js.map +1 -1
- package/dist/cjs/react-utils/withTitle/withTitle.js +2 -3
- package/dist/cjs/react-utils/withTitle/withTitle.js.map +1 -1
- package/dist/cjs/{slicedToArray-Cbh2WzDH.js → slicedToArray-BcL7fKuL.js} +4 -4
- package/dist/cjs/{slicedToArray-Cbh2WzDH.js.map → slicedToArray-BcL7fKuL.js.map} +1 -1
- package/dist/cjs/toConsumableArray-tBKHqzE3.js.map +1 -1
- package/dist/cjs/typeof-D4ZZ_FlZ.js.map +1 -1
- package/dist/cjs/unsupportedIterableToArray-BoHMiKNA.js.map +1 -1
- package/dist/cjs/utils/axios.js.map +1 -1
- package/dist/cjs/utils/buildNestedAttributesPayload.js +2 -3
- package/dist/cjs/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/cjs/utils/captureAnalyticsEvent.js +2 -3
- package/dist/cjs/utils/captureAnalyticsEvent.js.map +1 -1
- package/dist/cjs/utils/captureAnalyticsPageView.js +4 -6
- package/dist/cjs/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/cjs/utils/createSubscription.js +3 -4
- package/dist/cjs/utils/createSubscription.js.map +1 -1
- package/dist/cjs/utils/currencyFormat.js +2 -3
- package/dist/cjs/utils/currencyFormat.js.map +1 -1
- package/dist/cjs/utils/datetime.js +1 -3
- package/dist/cjs/utils/datetime.js.map +1 -1
- package/dist/cjs/utils/dayjs.js +20 -6
- package/dist/cjs/utils/dayjs.js.map +1 -1
- package/dist/cjs/utils/general.js +4 -5
- package/dist/cjs/utils/general.js.map +1 -1
- package/dist/cjs/utils/index.js +4 -6
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/loadGoogleFonts.js.map +1 -1
- package/dist/cjs/utils/permissions.js.map +1 -1
- package/dist/cjs/utils/timezonePlugin.js +3 -4
- package/dist/cjs/utils/timezonePlugin.js.map +1 -1
- package/dist/cjs/utils/validators/slug.js.map +1 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/regex.js.map +1 -1
- package/dist/cypress-utils/.eslintrc.js.map +1 -1
- package/dist/cypress-utils/commands.js +2 -3
- package/dist/cypress-utils/commands.js.map +1 -1
- package/dist/cypress-utils/constants/index.js.map +1 -1
- package/dist/cypress-utils/constants/routes.js +2 -3
- package/dist/cypress-utils/constants/routes.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/common.js +2 -3
- package/dist/cypress-utils/constants/selectors/common.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/editor.js +1 -2
- package/dist/cypress-utils/constants/selectors/editor.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/ipRestriction.js +1 -2
- package/dist/cypress-utils/constants/selectors/ipRestriction.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/login.js +1 -2
- package/dist/cypress-utils/constants/selectors/login.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/member.js +1 -2
- package/dist/cypress-utils/constants/selectors/member.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/navigation.js +1 -2
- package/dist/cypress-utils/constants/selectors/navigation.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/roles.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/signUp.js +1 -2
- package/dist/cypress-utils/constants/selectors/signUp.js.map +1 -1
- package/dist/cypress-utils/constants/selectors/tags.js +1 -2
- package/dist/cypress-utils/constants/selectors/tags.js.map +1 -1
- package/dist/cypress-utils/constants/texts/common.js.map +1 -1
- package/dist/cypress-utils/constants/texts/member.js.map +1 -1
- package/dist/cypress-utils/constants/texts/navigation.js.map +1 -1
- package/dist/cypress-utils/constants/texts/roles.js.map +1 -1
- package/dist/cypress-utils/constants/texts/signUp.js.map +1 -1
- package/dist/cypress-utils/constants/texts/tags.js.map +1 -1
- package/dist/cypress-utils/fixtures/fake.js.map +1 -1
- package/dist/cypress-utils/index.js +1 -2
- package/dist/cypress-utils/index.js.map +1 -1
- package/dist/cypress-utils/utils/authentication.js +2 -3
- package/dist/cypress-utils/utils/authentication.js.map +1 -1
- package/dist/cypress-utils/utils/common.js +2 -3
- package/dist/cypress-utils/utils/common.js.map +1 -1
- package/dist/cypress-utils/utils/date.js.map +1 -1
- package/dist/cypress-utils/utils/email.js +2 -3
- package/dist/cypress-utils/utils/email.js.map +1 -1
- package/dist/cypress-utils/utils/member.js +12 -13
- package/dist/cypress-utils/utils/member.js.map +1 -1
- package/dist/cypress-utils/utils/navigation.js +3 -4
- package/dist/cypress-utils/utils/navigation.js.map +1 -1
- package/dist/cypress-utils/utils/organization.js +1 -2
- package/dist/cypress-utils/utils/organization.js.map +1 -1
- package/dist/cypress-utils/utils/validation.js +1 -2
- package/dist/cypress-utils/utils/validation.js.map +1 -1
- package/dist/{toPropertyKey-C6Y0u0Sf.js → defineProperty-CrCYjjU3.js} +12 -3
- package/dist/defineProperty-CrCYjjU3.js.map +1 -0
- package/dist/{index-D_s_toMy.js → index-COfUw8MU.js} +16 -16
- package/dist/index-COfUw8MU.js.map +1 -0
- package/dist/initializers/axios.js +1 -2
- package/dist/initializers/axios.js.map +1 -1
- package/dist/initializers/axiosInitializer/index.js +1 -2
- package/dist/initializers/axiosInitializer/index.js.map +1 -1
- package/dist/initializers/axiosInitializer/paramsSerializer.js.map +1 -1
- package/dist/initializers/constants.js.map +1 -1
- package/dist/initializers/dayjs.js.map +1 -1
- package/dist/initializers/globalProps.js.map +1 -1
- package/dist/initializers/i18n.js +58 -10
- package/dist/initializers/i18n.js.map +1 -1
- package/dist/initializers/index.js +3 -6
- package/dist/initializers/index.js.map +1 -1
- package/dist/initializers/logger.js.map +1 -1
- package/dist/initializers/mixpanel.js +1 -2
- package/dist/initializers/mixpanel.js.map +1 -1
- package/dist/initializers/reactDevTools.js.map +1 -1
- package/dist/initializers/utils/customFormatters.js.map +1 -1
- package/dist/initializers/utils/customPostProcessors.js.map +1 -1
- package/dist/initializers/utils/utils.js +1 -1
- package/dist/initializers/utils/utils.js.map +1 -1
- package/dist/mixpanel.module-Bu2zrBMQ.js +22399 -0
- package/dist/mixpanel.module-Bu2zrBMQ.js.map +1 -0
- package/dist/objectWithoutProperties-DN7d1SzH.js.map +1 -1
- package/dist/react-utils/AppContainer/AppContainer.js +3 -4
- package/dist/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/react-utils/AppContainer/index.js +1 -2
- package/dist/react-utils/AppContainer/index.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/devices.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/index.js +1 -1
- package/dist/react-utils/BrowserPushNotifications/pushHelper.js +1 -1
- package/dist/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -1
- package/dist/react-utils/BrowserPushNotifications/registerServiceWorker.js +1 -1
- package/dist/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +2 -3
- package/dist/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +1 -2
- package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/index.js +1 -2
- package/dist/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -1
- package/dist/react-utils/HoneybadgerErrorBoundary/utils.js.map +1 -1
- package/dist/react-utils/PageTitle/PageTitle.js.map +1 -1
- package/dist/react-utils/PrivateRoute/PrivateRoute.js +2 -3
- package/dist/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
- package/dist/react-utils/PrivateRoute/index.js +1 -2
- package/dist/react-utils/PrivateRoute/index.js.map +1 -1
- package/dist/react-utils/QueryClientProvider/QueryClientProvider.js.map +1 -1
- package/dist/react-utils/QueryClientProvider/queryClient.js +1 -1
- package/dist/react-utils/QueryClientProvider/queryClient.js.map +1 -1
- package/dist/react-utils/constants/constants.js.map +1 -1
- package/dist/react-utils/constants/query.js.map +1 -1
- package/dist/react-utils/index.js +4 -6
- package/dist/react-utils/index.js.map +1 -1
- package/dist/react-utils/metaClick/metaClick.js.map +1 -1
- package/dist/react-utils/useBreakpoints/index.js +1 -2
- package/dist/react-utils/useBreakpoints/index.js.map +1 -1
- package/dist/react-utils/useBreakpoints/utils.js +2 -3
- package/dist/react-utils/useBreakpoints/utils.js.map +1 -1
- package/dist/react-utils/useDebounce/index.js +1 -1
- package/dist/react-utils/useDebounce/useDebounce.js +1 -1
- package/dist/react-utils/useDebounce/useDebounce.js.map +1 -1
- package/dist/react-utils/useDisplayErrorPage/useDisplayErrorPage.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/index.js +3 -4
- package/dist/react-utils/useFetchNeetoApps/index.js.map +1 -1
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +4 -5
- package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
- package/dist/react-utils/useFieldSubmit/useFieldSubmit.js.map +1 -1
- package/dist/react-utils/useFuncDebounce/useFuncDebounce.js.map +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/index.js +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +1 -1
- package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -1
- package/dist/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -1
- package/dist/react-utils/useLocalStorage/index.js +4 -6
- package/dist/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/react-utils/useLocalStorage/useLocalStorage.js +4 -6
- package/dist/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/react-utils/useMutationWithInvalidation/index.js +1 -2
- package/dist/react-utils/useMutationWithInvalidation/index.js.map +1 -1
- package/dist/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +2 -3
- package/dist/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -1
- package/dist/react-utils/useOnClickOutside/useOnClickOutside.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/index.js +3 -4
- package/dist/react-utils/usePersistedQuery/index.js.map +1 -1
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js +5 -6
- package/dist/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
- package/dist/react-utils/usePrevious/usePrevious.js.map +1 -1
- package/dist/react-utils/useQueryParams/index.js +3 -4
- package/dist/react-utils/useQueryParams/index.js.map +1 -1
- package/dist/react-utils/useQueryParams/useQueryParams.js +3 -4
- package/dist/react-utils/useQueryParams/useQueryParams.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js +3 -4
- package/dist/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +5 -6
- package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/dist/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js +1 -1
- package/dist/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js.map +1 -1
- package/dist/react-utils/useStateWithDependency/index.js +1 -1
- package/dist/react-utils/useStateWithDependency/useStateWithDependency.js +1 -1
- package/dist/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -1
- package/dist/react-utils/useTimer/useTimer.js.map +1 -1
- package/dist/react-utils/useUpdateEffect/useUpdateEffect.js.map +1 -1
- package/dist/react-utils/withImmutableActions/withImmutableActions.js.map +1 -1
- package/dist/react-utils/withT/withT.js.map +1 -1
- package/dist/react-utils/withTitle/index.js +1 -2
- package/dist/react-utils/withTitle/index.js.map +1 -1
- package/dist/react-utils/withTitle/withTitle.js +2 -3
- package/dist/react-utils/withTitle/withTitle.js.map +1 -1
- package/dist/{slicedToArray-BWOQ_OdI.js → slicedToArray-DmsZvA_9.js} +4 -4
- package/dist/{slicedToArray-BWOQ_OdI.js.map → slicedToArray-DmsZvA_9.js.map} +1 -1
- package/dist/toConsumableArray-B7CFjjkW.js.map +1 -1
- package/dist/typeof-D-UKOauR.js.map +1 -1
- package/dist/unsupportedIterableToArray-Dqz8Y8_I.js.map +1 -1
- package/dist/utils/axios.js.map +1 -1
- package/dist/utils/buildNestedAttributesPayload.js +2 -3
- package/dist/utils/buildNestedAttributesPayload.js.map +1 -1
- package/dist/utils/captureAnalyticsEvent.js +1 -2
- package/dist/utils/captureAnalyticsEvent.js.map +1 -1
- package/dist/utils/captureAnalyticsPageView.js +3 -5
- package/dist/utils/captureAnalyticsPageView.js.map +1 -1
- package/dist/utils/createSubscription.js +3 -4
- package/dist/utils/createSubscription.js.map +1 -1
- package/dist/utils/currencyFormat.js +2 -3
- package/dist/utils/currencyFormat.js.map +1 -1
- package/dist/utils/datetime.js +1 -3
- package/dist/utils/datetime.js.map +1 -1
- package/dist/utils/dayjs.js +18 -4
- package/dist/utils/dayjs.js.map +1 -1
- package/dist/utils/general.js +6 -7
- package/dist/utils/general.js.map +1 -1
- package/dist/utils/index.js +4 -6
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/loadGoogleFonts.js.map +1 -1
- package/dist/utils/permissions.js.map +1 -1
- package/dist/utils/timezonePlugin.js +3 -4
- package/dist/utils/timezonePlugin.js.map +1 -1
- package/dist/utils/validators/slug.js.map +1 -1
- package/package.json +21 -16
- package/configs/eslint/globals.js +0 -14
- package/configs/eslint/imports/enforced.js +0 -29
- package/configs/eslint/imports/order.js +0 -65
- package/configs/eslint/index.js +0 -172
- package/configs/eslint/overrides.js +0 -26
- package/configs/eslint/promise.js +0 -8
- package/configs/eslint/react.js +0 -90
- package/configs/nanos/eslint/imports/order.js +0 -25
- package/configs/nanos/eslint/index.js +0 -28
- package/configs/nextjs/eslint/imports/order.js +0 -25
- package/configs/nextjs/eslint/index.js +0 -22
- package/dist/cjs/createClass-DtcoOmOY.js +0 -23
- package/dist/cjs/createClass-DtcoOmOY.js.map +0 -1
- package/dist/cjs/defineProperty-BB_r6qQ2.js +0 -15
- package/dist/cjs/defineProperty-BB_r6qQ2.js.map +0 -1
- package/dist/cjs/index-DDd00LFf.js.map +0 -1
- package/dist/cjs/mixpanel.cjs-DyVaCR4W.js +0 -6346
- package/dist/cjs/mixpanel.cjs-DyVaCR4W.js.map +0 -1
- package/dist/cjs/toPropertyKey-CRgrohXG.js.map +0 -1
- package/dist/createClass-BvEaZs3T.js +0 -20
- package/dist/createClass-BvEaZs3T.js.map +0 -1
- package/dist/defineProperty-DuFCEj0A.js +0 -13
- package/dist/defineProperty-DuFCEj0A.js.map +0 -1
- package/dist/index-D_s_toMy.js.map +0 -1
- package/dist/mixpanel.cjs-DTVxnNUt.js +0 -6344
- package/dist/mixpanel.cjs-DTVxnNUt.js.map +0 -1
- package/dist/toPropertyKey-C6Y0u0Sf.js.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
|
|
3
|
+
// Globals can be disabled with the string "off"
|
|
4
|
+
// "writable" to allow the variable to be overwritten or "readonly" to disallow overwriting.
|
|
5
|
+
export default defineConfig([
|
|
6
|
+
{
|
|
7
|
+
languageOptions: {
|
|
8
|
+
globals: {
|
|
9
|
+
Atomics: "readonly",
|
|
10
|
+
SharedArrayBuffer: "readonly",
|
|
11
|
+
// Makes logger function available everywhere. Else eslint will complaint of undef-var.
|
|
12
|
+
|
|
13
|
+
logger: "readonly",
|
|
14
|
+
module: "writable",
|
|
15
|
+
// Makes props obtained from Rails backend available everywhere in this project.
|
|
16
|
+
|
|
17
|
+
globalProps: "readonly",
|
|
18
|
+
preval: "readonly",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
]);
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import fs from "fs";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
import { mergeDeepLeft, mergeLeft, keys } from "ramda";
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = path.dirname(__filename);
|
|
5
9
|
|
|
6
10
|
const loadJS = jsPath => {
|
|
7
11
|
try {
|
|
@@ -71,4 +75,4 @@ const buildPathGroupsBasedOnWebpackAliases = ({
|
|
|
71
75
|
return pathGroups.concat(pathGroupsFromAssets);
|
|
72
76
|
};
|
|
73
77
|
|
|
74
|
-
|
|
78
|
+
export default { buildPathGroupsBasedOnWebpackAliases };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
|
|
3
|
+
export default defineConfig([
|
|
4
|
+
{
|
|
5
|
+
rules: {
|
|
6
|
+
// not-auto-fixable: Prefer a default export if module exports a single name.
|
|
7
|
+
"import/prefer-default-export": "off",
|
|
8
|
+
// not-auto-fixable: Forbid a module from importing a module with a dependency path back to itself.
|
|
9
|
+
"import/no-cycle": ["warn", { maxDepth: 1, ignoreExternal: true }],
|
|
10
|
+
// not-auto-fixable: Prevent unnecessary path segments in import and require statements.
|
|
11
|
+
"import/no-useless-path-segments": ["error", { noUselessIndex: true }],
|
|
12
|
+
// not-auto-fixable: Report any invalid exports, i.e. re-export of the same name.
|
|
13
|
+
"import/export": "error",
|
|
14
|
+
// not-auto-fixable: Forbid the use of mutable exports with var or let.
|
|
15
|
+
"import/no-mutable-exports": "error",
|
|
16
|
+
// not-auto-fixable: Ensure all imports appear before other statements.
|
|
17
|
+
"import/first": "error",
|
|
18
|
+
// not-auto-fixable: Ensure all exports appear after other statements.
|
|
19
|
+
"import/exports-last": "error",
|
|
20
|
+
// auto-fixable: Enforce a newline after import statements.
|
|
21
|
+
"import/newline-after-import": ["error", { count: 1 }],
|
|
22
|
+
// auto-fixable: Remove file extensions for import statements.
|
|
23
|
+
"import/extensions": [
|
|
24
|
+
"error",
|
|
25
|
+
"never",
|
|
26
|
+
{
|
|
27
|
+
ignorePackages: true,
|
|
28
|
+
// auto-fixable: Enforce file extensions for import statements.
|
|
29
|
+
pattern: { json: "always", ico: "always", yml: "always" },
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
]);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
|
|
3
|
+
import buildPathGroupsBasedOnWebpackAliases from "../helpers/index.mjs";
|
|
4
|
+
|
|
5
|
+
// Build pathGroups dynamically as in the original config
|
|
6
|
+
const pathGroups =
|
|
7
|
+
buildPathGroupsBasedOnWebpackAliases.buildPathGroupsBasedOnWebpackAliases({});
|
|
8
|
+
|
|
9
|
+
const pathGroupForKeepingReactImportsAtTop = {
|
|
10
|
+
pattern: "react+(-native|)",
|
|
11
|
+
group: "external",
|
|
12
|
+
position: "before",
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
Example pathGroups structure. Adding this here
|
|
17
|
+
so that if anyone wants to add custom config,
|
|
18
|
+
they can make use of this:
|
|
19
|
+
[
|
|
20
|
+
{ pattern: 'apis/**', group: 'internal' },
|
|
21
|
+
{ pattern: 'common/**', group: 'internal' },
|
|
22
|
+
{ pattern: 'components/**', group: 'internal' },
|
|
23
|
+
{ pattern: 'constants/**', group: 'internal' },
|
|
24
|
+
{ pattern: 'contexts/**', group: 'internal' },
|
|
25
|
+
{ pattern: 'reducers/**', group: 'internal' },
|
|
26
|
+
{ pattern: 'Constants', group: 'internal' },
|
|
27
|
+
{ pattern: 'neetoui/**', group: 'external' },
|
|
28
|
+
{
|
|
29
|
+
pattern: 'react+(-native|)',
|
|
30
|
+
group: 'external',
|
|
31
|
+
position: 'before'
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
*/
|
|
35
|
+
pathGroups.push(pathGroupForKeepingReactImportsAtTop);
|
|
36
|
+
|
|
37
|
+
export default defineConfig([
|
|
38
|
+
{
|
|
39
|
+
rules: {
|
|
40
|
+
// auto-fixable: Enforce a convention in module import order - we enforce https://www.bigbinary.com/react-best-practices/sort-import-statements
|
|
41
|
+
"import/order": [
|
|
42
|
+
"error",
|
|
43
|
+
{
|
|
44
|
+
"newlines-between": "always",
|
|
45
|
+
alphabetize: { order: "asc", caseInsensitive: true },
|
|
46
|
+
warnOnUnassignedImports: true,
|
|
47
|
+
groups: [
|
|
48
|
+
"builtin",
|
|
49
|
+
"external",
|
|
50
|
+
"internal",
|
|
51
|
+
"index",
|
|
52
|
+
"sibling",
|
|
53
|
+
"parent",
|
|
54
|
+
"object",
|
|
55
|
+
"type",
|
|
56
|
+
],
|
|
57
|
+
/*
|
|
58
|
+
* Currently we check for existence of webpack alias
|
|
59
|
+
* config and then iterate over the aliases and create
|
|
60
|
+
* these pathGroups. Only caveat with this mechanism
|
|
61
|
+
* is that in VSCode eslint plugin won't dynamically
|
|
62
|
+
* read it. But eslint cli would!
|
|
63
|
+
*/
|
|
64
|
+
pathGroups,
|
|
65
|
+
// Ignore react imports so that they're always ordered to the top of the file.
|
|
66
|
+
pathGroupsExcludedImportTypes: ["react", "react-native"],
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
]);
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
|
|
4
|
+
import babelParser from "@babel/eslint-parser";
|
|
5
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
6
|
+
import js from "@eslint/js";
|
|
7
|
+
import { defineConfig } from "eslint/config";
|
|
8
|
+
import jam3 from "eslint-plugin-jam3";
|
|
9
|
+
import prettier from "eslint-plugin-prettier";
|
|
10
|
+
import react from "eslint-plugin-react";
|
|
11
|
+
import * as reactHooks from "eslint-plugin-react-hooks";
|
|
12
|
+
import security from "eslint-plugin-security";
|
|
13
|
+
import sonarjs from "eslint-plugin-sonarjs";
|
|
14
|
+
import unusedImports from "eslint-plugin-unused-imports";
|
|
15
|
+
import globals from "globals";
|
|
16
|
+
|
|
17
|
+
import globalsConfig from "./globals.mjs";
|
|
18
|
+
import enforcedConfig from "./imports/enforced.mjs";
|
|
19
|
+
import orderConfig from "./imports/order.mjs";
|
|
20
|
+
import overridesConfig from "./overrides.mjs";
|
|
21
|
+
import promiseConfig from "./promise.mjs";
|
|
22
|
+
import reactConfig from "./react.mjs";
|
|
23
|
+
|
|
24
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
25
|
+
const __dirname = path.dirname(__filename);
|
|
26
|
+
const compat = new FlatCompat({ baseDirectory: __dirname });
|
|
27
|
+
|
|
28
|
+
/*
|
|
29
|
+
* The order of extending each plugin matters a LOT!!
|
|
30
|
+
* Thus don't change order of items in this array
|
|
31
|
+
* unless you're sure of it.
|
|
32
|
+
*/
|
|
33
|
+
export default defineConfig([
|
|
34
|
+
js.configs.recommended,
|
|
35
|
+
security.configs.recommended,
|
|
36
|
+
|
|
37
|
+
...compat.extends(
|
|
38
|
+
"plugin:@bigbinary/neeto/recommended",
|
|
39
|
+
"plugin:import/recommended",
|
|
40
|
+
"plugin:promise/recommended",
|
|
41
|
+
// "plugin:json/recommended",
|
|
42
|
+
"plugin:cypress/recommended",
|
|
43
|
+
"plugin:react/recommended",
|
|
44
|
+
"plugin:prettier/recommended"
|
|
45
|
+
),
|
|
46
|
+
globalsConfig,
|
|
47
|
+
orderConfig,
|
|
48
|
+
overridesConfig,
|
|
49
|
+
enforcedConfig,
|
|
50
|
+
reactConfig,
|
|
51
|
+
promiseConfig,
|
|
52
|
+
{
|
|
53
|
+
files: [
|
|
54
|
+
"**/*.js",
|
|
55
|
+
"**/*.jsx",
|
|
56
|
+
"**/*.ts",
|
|
57
|
+
"**/*.tsx",
|
|
58
|
+
"**/*.svg",
|
|
59
|
+
"**/*.mjs",
|
|
60
|
+
"**/*.json",
|
|
61
|
+
],
|
|
62
|
+
plugins: {
|
|
63
|
+
react,
|
|
64
|
+
prettier,
|
|
65
|
+
"react-hooks": reactHooks,
|
|
66
|
+
jam3,
|
|
67
|
+
"unused-imports": unusedImports,
|
|
68
|
+
sonarjs,
|
|
69
|
+
},
|
|
70
|
+
languageOptions: {
|
|
71
|
+
globals: {
|
|
72
|
+
...globals.browser, // window object etc part of browser are made available globally.
|
|
73
|
+
...globals.commonjs,
|
|
74
|
+
...globals.node,
|
|
75
|
+
},
|
|
76
|
+
parser: babelParser, // babel-eslint is deprecated now. This is the latest package.
|
|
77
|
+
ecmaVersion: 2018,
|
|
78
|
+
sourceType: "module",
|
|
79
|
+
parserOptions: {
|
|
80
|
+
ecmaFeatures: { jsx: true },
|
|
81
|
+
babelOptions: { presets: ["@babel/preset-react"] },
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
settings: {
|
|
85
|
+
react: { version: "detect" },
|
|
86
|
+
// We need this for the import/extensions rule to work: https://github.com/import-js/eslint-plugin-import#importextensions
|
|
87
|
+
"import/resolver": {
|
|
88
|
+
node: {
|
|
89
|
+
extensions: [".js", ".jsx", ".ts", ".tsx", ".svg", ".json"],
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
rules: {
|
|
94
|
+
// auto-fixable: Respect all Prettier rules and apply it.
|
|
95
|
+
"prettier/prettier": "error",
|
|
96
|
+
// not-auto-fixable: No unused variables allowed.
|
|
97
|
+
"no-unused-vars": [
|
|
98
|
+
"error",
|
|
99
|
+
{
|
|
100
|
+
args: "all",
|
|
101
|
+
argsIgnorePattern: "^_",
|
|
102
|
+
destructuredArrayIgnorePattern: "^_",
|
|
103
|
+
caughtErrors: "all",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
// not-auto-fixable: No undefined variables allowed.
|
|
107
|
+
"no-undef": "error",
|
|
108
|
+
// not-auto-fixable: Dont use console statements. Use logger which babel will remove during bundling.
|
|
109
|
+
"no-console": "error",
|
|
110
|
+
// not-auto-fixable: require `return` statements to either always or never specify values.
|
|
111
|
+
"consistent-return": "error",
|
|
112
|
+
// auto-fixable: disallows repeating variable name when declaring object properties.
|
|
113
|
+
"object-shorthand": "error",
|
|
114
|
+
// auto-fixable: sadly this doesn't support guard clauses yet.
|
|
115
|
+
"padding-line-between-statements": [
|
|
116
|
+
"error",
|
|
117
|
+
{ blankLine: "always", prev: "if", next: ["if", "return"] },
|
|
118
|
+
// The newline-before-return rule is deprecated in favor of the following:
|
|
119
|
+
{ blankLine: "always", prev: "*", next: "return" },
|
|
120
|
+
// Add newline between function declarations
|
|
121
|
+
{
|
|
122
|
+
blankLine: "always",
|
|
123
|
+
prev: [
|
|
124
|
+
"block",
|
|
125
|
+
"multiline-block-like",
|
|
126
|
+
"function",
|
|
127
|
+
"iife",
|
|
128
|
+
"multiline-const",
|
|
129
|
+
"multiline-expression",
|
|
130
|
+
],
|
|
131
|
+
next: ["function", "iife", "multiline-const", "multiline-expression"],
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
// auto-fixable: Single line statements needn't have any braces. But in all other cases enforce curly braces.
|
|
135
|
+
curly: ["error", "multi-line"],
|
|
136
|
+
// auto-fixable: Remove the else part, if the "if" or "else-if" chain has a return statement
|
|
137
|
+
"no-else-return": "error",
|
|
138
|
+
// not-auto-fixable: Prevent un-sanitized dangerouslySetInnerHTML.
|
|
139
|
+
"jam3/no-sanitizer-with-danger": [
|
|
140
|
+
2,
|
|
141
|
+
{ wrapperName: ["dompurify", "sanitizer", "sanitize"] },
|
|
142
|
+
],
|
|
143
|
+
// auto-fixable: Requires trailing commas when the last element or property is in a different line than the closing ] or }
|
|
144
|
+
"comma-dangle": [
|
|
145
|
+
"error",
|
|
146
|
+
{
|
|
147
|
+
arrays: "always-multiline",
|
|
148
|
+
objects: "always-multiline",
|
|
149
|
+
imports: "always-multiline",
|
|
150
|
+
exports: "always-multiline",
|
|
151
|
+
functions: "never",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
// auto-fixable: If a variable is never reassigned, using the const declaration is better.
|
|
155
|
+
"prefer-const": "error",
|
|
156
|
+
// auto-fixable: It is considered good practice to use the type-safe equality operators === and !==.
|
|
157
|
+
eqeqeq: "error",
|
|
158
|
+
// not-auto-fixable: Rule flags optional chaining expressions in positions where short-circuiting to undefined causes throwing a TypeError afterward.
|
|
159
|
+
"no-unsafe-optional-chaining": "error",
|
|
160
|
+
// auto-fixable: Remove all unused imports.
|
|
161
|
+
"unused-imports/no-unused-imports": "error",
|
|
162
|
+
// auto-fixable-1-level-deep: Using nested ternary operators make the code unreadable. Use if/else or switch with if/else. If it's JSX then move it out into a function or a variable. It's fine to use nestedTernary in JSX when it makes code more readable.
|
|
163
|
+
"no-nested-ternary": "warn",
|
|
164
|
+
// auto-fixable: Enforces no braces where they can be omitted.
|
|
165
|
+
"arrow-body-style": ["error", "as-needed"],
|
|
166
|
+
// auto-fixable: Suggests using template literals instead of string concatenation.
|
|
167
|
+
"prefer-template": "error",
|
|
168
|
+
// auto-fixable: Disallows ternary operators when simpler alternatives exist.
|
|
169
|
+
"no-unneeded-ternary": ["error", { defaultAssignment: false }],
|
|
170
|
+
// not-auto-fixable: Enforces declaring default params last
|
|
171
|
+
"default-param-last": "error",
|
|
172
|
+
// not-auto-fixable: Remove redundant async-awaits
|
|
173
|
+
"no-return-await": "warn",
|
|
174
|
+
// not-auto-fixable: Disallow empty block statements
|
|
175
|
+
"no-empty": ["error", { allowEmptyCatch: true }],
|
|
176
|
+
// not-auto-fixable: Enforce return statements in callbacks of array methods.
|
|
177
|
+
"array-callback-return": ["error"],
|
|
178
|
+
// auto-fixable: Partially fixable. Unless there's a need to the this keyword, there's no advantage of using a plain function.
|
|
179
|
+
"prefer-arrow-callback": ["error", { allowUnboundThis: true }],
|
|
180
|
+
// not-auto-fixable: Convert multiple imports from same module into a single import.
|
|
181
|
+
"no-duplicate-imports": ["error", { includeExports: true }],
|
|
182
|
+
// auto-fixable: Partially fixable. In JavaScript, there are a lot of different ways to convert value types. Allow only readable coercions.
|
|
183
|
+
"no-implicit-coercion": ["error", { allow: ["!!"] }],
|
|
184
|
+
// auto-fixable: Require let or const instead of var.
|
|
185
|
+
"no-var": "error",
|
|
186
|
+
// auto-fixable: This rule conflicts with prettier rules. Thus we've NOT kept this rule in react file. This rule ensures we don't add blank lines in JSX.
|
|
187
|
+
"react/jsx-newline": ["error", { prevent: true }],
|
|
188
|
+
// not-auto-fixable: Disallow async functions which have no await expression
|
|
189
|
+
"require-await": "error",
|
|
190
|
+
// auto-fixable: This rule ensures immediate returns in functions where constants are declared and then directly returned.
|
|
191
|
+
"sonarjs/prefer-immediate-return": "error",
|
|
192
|
+
// not-auto-fixable: This rule enforces merging adjacent collapsible if statements.
|
|
193
|
+
"sonarjs/no-collapsible-if": "error",
|
|
194
|
+
// not-auto-fixable: This rule prevents identical conditions inside if-else statements.
|
|
195
|
+
"sonarjs/no-identical-conditions": "error",
|
|
196
|
+
// not-auto-fixable: This rule prevents using a function with no return as output, passing it to another function, or assigning its result to a variable.
|
|
197
|
+
"sonarjs/no-use-of-empty-return-value": "error",
|
|
198
|
+
// not-auto-fixable: This rule prevents using loops with at most one iteration.
|
|
199
|
+
"sonarjs/no-one-iteration-loop": "error",
|
|
200
|
+
// not-auto-fixable: This rule prevents using catch clause that only throws an error.
|
|
201
|
+
"sonarjs/no-useless-catch": "error",
|
|
202
|
+
// not-auto-fixable: This rule warns against "eval(variable)" which can allow an attacker to run arbitrary code inside your process.
|
|
203
|
+
"security/detect-eval-with-expression": "warn",
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
]);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
import globals from "globals";
|
|
3
|
+
// Currently we are using this section for excluding certain files from certain rules.
|
|
4
|
+
export default defineConfig([
|
|
5
|
+
{
|
|
6
|
+
files: [
|
|
7
|
+
"**/.prettierrc.js",
|
|
8
|
+
"app/assets/**/*",
|
|
9
|
+
"app/javascript/packs/**/*",
|
|
10
|
+
"**/*.json",
|
|
11
|
+
],
|
|
12
|
+
|
|
13
|
+
rules: {
|
|
14
|
+
"import/order": "off",
|
|
15
|
+
"react-hooks/rules-of-hooks": "off",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
files: ["app/javascript/packs/**/*.{js,jsx}"],
|
|
20
|
+
|
|
21
|
+
rules: { "no-redeclare": "off" },
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
files: ["**/*.spec.js", "**/*.spec.jsx", "**/*.test.jsx"],
|
|
25
|
+
|
|
26
|
+
languageOptions: { globals: { ...globals.jest } },
|
|
27
|
+
},
|
|
28
|
+
]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
|
|
3
|
+
export default defineConfig([
|
|
4
|
+
{
|
|
5
|
+
rules: {
|
|
6
|
+
// not-auto-fixable: ensure people use async/await promising chaining rather than using "then-catch-finally" statements
|
|
7
|
+
"promise/prefer-await-to-then": "error",
|
|
8
|
+
// auto-fixable: avoid calling "new" on a Promise static method like reject, resolve etc
|
|
9
|
+
"promise/no-new-statics": "error",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
]);
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
|
|
3
|
+
export default defineConfig([
|
|
4
|
+
{
|
|
5
|
+
rules: {
|
|
6
|
+
// not-auto-fixable: Prevent missing props validation in a React component definition.
|
|
7
|
+
"react/prop-types": "off",
|
|
8
|
+
// not-auto-fixable: Detect unescaped HTML entities, which might represent malformed tags.
|
|
9
|
+
"react/no-unescaped-entities": "off",
|
|
10
|
+
// not-auto-fixable: Prevent missing displayName in a React component definition. Useful when using React extensions in browser and checking for component name.
|
|
11
|
+
"react/display-name": "error",
|
|
12
|
+
// not-auto-fixable: Reports when this.state is accessed within setState.
|
|
13
|
+
"react/no-access-state-in-setstate": "error",
|
|
14
|
+
// not-auto-fixable: Prevent usage of dangerous JSX props. Currently jam3 plugin will take care of handling this.
|
|
15
|
+
"react/no-danger": "off",
|
|
16
|
+
// not-auto-fixable: Report when a DOM element is using both children and dangerouslySetInnerHTML.
|
|
17
|
+
"react/no-danger-with-children": "warn",
|
|
18
|
+
// not-auto-fixable: Prevent definitions of unused prop types.
|
|
19
|
+
"react/no-unused-prop-types": "error",
|
|
20
|
+
// not-auto-fixable: Report missing key props in iterators/collection literals. Important rule!
|
|
21
|
+
"react/jsx-key": ["error", { checkFragmentShorthand: true }],
|
|
22
|
+
// not-auto-fixable: Enforce no duplicate props.
|
|
23
|
+
"react/jsx-no-duplicate-props": "error",
|
|
24
|
+
// not-auto-fixable: Disallow undeclared variables in JSX.
|
|
25
|
+
"react/jsx-no-undef": "error",
|
|
26
|
+
// not-auto-fixable: Enforce PascalCase for user-defined JSX components.
|
|
27
|
+
"react/jsx-pascal-case": ["error", { allowNamespace: true }],
|
|
28
|
+
// not-auto-fixable: Prevent variables used in JSX to be marked as unused.
|
|
29
|
+
"react/jsx-uses-vars": "error",
|
|
30
|
+
// not-auto-fixable: Ensures https://reactjs.org/docs/hooks-rules.html.
|
|
31
|
+
"react-hooks/rules-of-hooks": "error",
|
|
32
|
+
// not-auto-fixable: Ensures https://reactjs.org/docs/hooks-rules.html - Checks effect dependencies.
|
|
33
|
+
"react-hooks/exhaustive-deps": "warn",
|
|
34
|
+
// auto-fixable: A fragment is redundant if it contains only one child, or if it is the child of a html element, and is not a keyed fragment.
|
|
35
|
+
"react/jsx-no-useless-fragment": ["error", { allowExpressions: true }],
|
|
36
|
+
// auto-fixable: Prefer arrow function expressions for component declaration.
|
|
37
|
+
"react/function-component-definition": [
|
|
38
|
+
"error",
|
|
39
|
+
{
|
|
40
|
+
namedComponents: "arrow-function",
|
|
41
|
+
unnamedComponents: "arrow-function",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
// auto-fixable: Components without children can be self-closed to avoid unnecessary extra closing tag.
|
|
45
|
+
"react/self-closing-comp": ["error", { component: true, html: true }],
|
|
46
|
+
// auto-fixable: Wrapping multiline JSX in parentheses can improve readability and/or convenience.
|
|
47
|
+
"react/jsx-wrap-multilines": [
|
|
48
|
+
"error",
|
|
49
|
+
{
|
|
50
|
+
declaration: "parens-new-line",
|
|
51
|
+
assignment: "parens-new-line",
|
|
52
|
+
return: "parens-new-line",
|
|
53
|
+
arrow: "parens-new-line",
|
|
54
|
+
condition: "parens-new-line",
|
|
55
|
+
logical: "parens-new-line",
|
|
56
|
+
prop: "ignore",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
// not-auto-fixable: Make sure files containing JSX is having .jsx extension.
|
|
60
|
+
"react/jsx-filename-extension": ["error", { allow: "as-needed" }],
|
|
61
|
+
// auto-fixable: Omit mentioning the "true" value if it can be implicitly understood in props.
|
|
62
|
+
"react/jsx-boolean-value": "error",
|
|
63
|
+
// auto-fixable: Partially fixable. Make sure the state and setter have symmertic naming.
|
|
64
|
+
"react/hook-use-state": "error",
|
|
65
|
+
// auto-fixable: Shorthand notations should always be at the top and also enforce props alphabetical sorting.
|
|
66
|
+
"react/jsx-sort-props": [
|
|
67
|
+
"error",
|
|
68
|
+
{
|
|
69
|
+
callbacksLast: true,
|
|
70
|
+
shorthandFirst: true,
|
|
71
|
+
multiline: "last",
|
|
72
|
+
reservedFirst: false,
|
|
73
|
+
locale: "auto",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
// auto-fixable: Disallow unnecessary curly braces in JSX props and/or children.
|
|
77
|
+
"react/jsx-curly-brace-presence": [
|
|
78
|
+
"error",
|
|
79
|
+
{
|
|
80
|
+
props: "never",
|
|
81
|
+
children: "never",
|
|
82
|
+
// JSX prop values that are JSX elements should be enclosed in braces.
|
|
83
|
+
propElementValues: "always",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
// not-auto-fixable: Disallow creating unstable components inside components.
|
|
87
|
+
"react/no-unstable-nested-components": ["error", { allowAsProps: true }],
|
|
88
|
+
// not-auto-fixable: Disallow missing React when using JSX.
|
|
89
|
+
"react/react-in-jsx-scope": "off",
|
|
90
|
+
// not-auto-fixable: Prevent React to be incorrectly marked as unused.
|
|
91
|
+
"react/jsx-uses-react": "off",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
]);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
|
|
3
|
+
import buildPathGroupsBasedOnWebpackAliases from "../../../eslint/helpers/index.mjs";
|
|
4
|
+
|
|
5
|
+
const pathGroups =
|
|
6
|
+
buildPathGroupsBasedOnWebpackAliases.buildPathGroupsBasedOnWebpackAliases({
|
|
7
|
+
customAliasPath: "resolve.js",
|
|
8
|
+
commonAliasPath:
|
|
9
|
+
"node_modules/@bigbinary/neeto-commons-frontend/configs/nanos/webpack/resolve.js",
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const pathGroupForKeepingReactImportsAtTop = {
|
|
13
|
+
pattern: "react+(-native|)",
|
|
14
|
+
group: "external",
|
|
15
|
+
position: "before",
|
|
16
|
+
};
|
|
17
|
+
pathGroups.push(pathGroupForKeepingReactImportsAtTop);
|
|
18
|
+
|
|
19
|
+
export default defineConfig([
|
|
20
|
+
{
|
|
21
|
+
rules: {
|
|
22
|
+
"import/order": [
|
|
23
|
+
"error",
|
|
24
|
+
{
|
|
25
|
+
"newlines-between": "always",
|
|
26
|
+
alphabetize: { order: "asc", caseInsensitive: true },
|
|
27
|
+
warnOnUnassignedImports: true,
|
|
28
|
+
groups: [
|
|
29
|
+
"builtin",
|
|
30
|
+
"external",
|
|
31
|
+
"internal",
|
|
32
|
+
"index",
|
|
33
|
+
"sibling",
|
|
34
|
+
"parent",
|
|
35
|
+
"object",
|
|
36
|
+
"type",
|
|
37
|
+
],
|
|
38
|
+
pathGroups,
|
|
39
|
+
pathGroupsExcludedImportTypes: ["react", "react-native"],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
]);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
|
|
4
|
+
import commonConfiguration from "../../eslint/index.mjs";
|
|
5
|
+
import globalsConfig from "../../eslint/globals.mjs";
|
|
6
|
+
import enforcedConfig from "../../eslint/imports/enforced.mjs";
|
|
7
|
+
import orderConfig from "../../eslint/imports/order.mjs";
|
|
8
|
+
import overridesConfig from "../../eslint/overrides.mjs";
|
|
9
|
+
import promiseConfig from "../../eslint/promise.mjs";
|
|
10
|
+
import reactConfig from "../../eslint/react.mjs";
|
|
11
|
+
|
|
12
|
+
export default defineConfig([
|
|
13
|
+
js.configs.recommended,
|
|
14
|
+
...commonConfiguration,
|
|
15
|
+
globalsConfig,
|
|
16
|
+
orderConfig,
|
|
17
|
+
overridesConfig,
|
|
18
|
+
enforcedConfig,
|
|
19
|
+
reactConfig,
|
|
20
|
+
promiseConfig,
|
|
21
|
+
]);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
2
|
+
|
|
3
|
+
import buildPathGroupsBasedOnWebpackAliases from "../../../eslint/helpers/index.mjs";
|
|
4
|
+
import commonConfig from "../../../eslint/imports/order.mjs";
|
|
5
|
+
|
|
6
|
+
const pathGroups =
|
|
7
|
+
buildPathGroupsBasedOnWebpackAliases.buildPathGroupsBasedOnWebpackAliases({
|
|
8
|
+
customAliasPath: "resolve.js",
|
|
9
|
+
commonAliasPath:
|
|
10
|
+
"node_modules/@bigbinary/neeto-commons-frontend/configs/nextjs/webpack/resolve.js",
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const pathGroupForKeepingReactImportsAtTop = {
|
|
14
|
+
pattern: "react+(-native|)",
|
|
15
|
+
group: "external",
|
|
16
|
+
position: "before",
|
|
17
|
+
};
|
|
18
|
+
pathGroups.push(pathGroupForKeepingReactImportsAtTop);
|
|
19
|
+
|
|
20
|
+
export default defineConfig([
|
|
21
|
+
{
|
|
22
|
+
rules: {
|
|
23
|
+
"import/order": [
|
|
24
|
+
"error",
|
|
25
|
+
{
|
|
26
|
+
"newlines-between": "always",
|
|
27
|
+
alphabetize: { order: "asc", caseInsensitive: true },
|
|
28
|
+
warnOnUnassignedImports: true,
|
|
29
|
+
groups: [
|
|
30
|
+
"builtin",
|
|
31
|
+
"external",
|
|
32
|
+
"internal",
|
|
33
|
+
"index",
|
|
34
|
+
"sibling",
|
|
35
|
+
"parent",
|
|
36
|
+
"object",
|
|
37
|
+
"type",
|
|
38
|
+
],
|
|
39
|
+
pathGroups,
|
|
40
|
+
pathGroupsExcludedImportTypes: ["react", "react-native"],
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
...commonConfig,
|
|
46
|
+
]);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
|
|
4
|
+
import commonConfiguration from "../../eslint/index.mjs";
|
|
5
|
+
import globalsConfig from "../../eslint/globals.mjs";
|
|
6
|
+
import enforcedConfig from "../../eslint/imports/enforced.mjs";
|
|
7
|
+
import orderConfig from "../../eslint/imports/order.mjs";
|
|
8
|
+
import overridesConfig from "../../eslint/overrides.mjs";
|
|
9
|
+
import promiseConfig from "../../eslint/promise.mjs";
|
|
10
|
+
import reactConfig from "../../eslint/react.mjs";
|
|
11
|
+
|
|
12
|
+
export default defineConfig([
|
|
13
|
+
js.configs.recommended,
|
|
14
|
+
...commonConfiguration,
|
|
15
|
+
globalsConfig,
|
|
16
|
+
orderConfig,
|
|
17
|
+
overridesConfig,
|
|
18
|
+
enforcedConfig,
|
|
19
|
+
reactConfig,
|
|
20
|
+
promiseConfig,
|
|
21
|
+
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/constants/index.js"],"sourcesContent":["export const BASE_API_V1_URL = \"/api/v1\";\n\nexport const DEFAULT_PAGE_SIZE = 30;\nexport const DEFAULT_PAGE_INDEX = 1;\nexport const DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\n// Constants for translation\nexport const SINGULAR = { count: 1 };\nexport const PLURAL = { count: 2 };\n\nexport * from \"./regex\";\n\n// Base URL for Neeto assets\nexport const CLOUDFRONT_BASE_URL = \"https://d2v7kzglnr2dnh.cloudfront.net\";\n"],"names":["BASE_API_V1_URL","DEFAULT_PAGE_SIZE","DEFAULT_PAGE_INDEX","DEFAULT_STALE_TIME","SINGULAR","count","PLURAL","CLOUDFRONT_BASE_URL"],"mappings":";;;;AAAO,IAAMA,eAAe,GAAG
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/constants/index.js"],"sourcesContent":["export const BASE_API_V1_URL = \"/api/v1\";\n\nexport const DEFAULT_PAGE_SIZE = 30;\nexport const DEFAULT_PAGE_INDEX = 1;\nexport const DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\n// Constants for translation\nexport const SINGULAR = { count: 1 };\nexport const PLURAL = { count: 2 };\n\nexport * from \"./regex\";\n\n// Base URL for Neeto assets\nexport const CLOUDFRONT_BASE_URL = \"https://d2v7kzglnr2dnh.cloudfront.net\";\n"],"names":["BASE_API_V1_URL","DEFAULT_PAGE_SIZE","DEFAULT_PAGE_INDEX","DEFAULT_STALE_TIME","SINGULAR","count","PLURAL","CLOUDFRONT_BASE_URL"],"mappings":";;;;AAAO,IAAMA,eAAe,GAAG;AAExB,IAAMC,iBAAiB,GAAG;AAC1B,IAAMC,kBAAkB,GAAG;AACrBC,IAAAA,kBAAkB,GAAG,QAAU;;AAE5C;AACO,IAAMC,QAAQ,GAAG;AAAEC,EAAAA,KAAK,EAAE;AAAE;AAC5B,IAAMC,MAAM,GAAG;AAAED,EAAAA,KAAK,EAAE;AAAE;;AAIjC;AACO,IAAME,mBAAmB,GAAG;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regex.js","sources":["../../../src/constants/regex.js"],"sourcesContent":["export const VALID_EMAIL_REGEX = /^[\\w+-.]+@[a-z\\d-]+(\\.[a-z\\d-]+)*\\.[a-z]+$/i;\n\nexport const VALID_URL_REGEX =\n /^((https?):\\/\\/)?(www.)?[a-z0-9-]+(\\.[a-z]{2,}){1,3}(#?\\/?[a-zA-Z0-9#-]+)*\\/?(\\?[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+(&[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+)*)?$/;\n\nexport const VALID_SLUG_REGEX = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;\n"],"names":["VALID_EMAIL_REGEX","VALID_URL_REGEX","VALID_SLUG_REGEX"],"mappings":";;AAAO,IAAMA,iBAAiB,GAAG
|
|
1
|
+
{"version":3,"file":"regex.js","sources":["../../../src/constants/regex.js"],"sourcesContent":["export const VALID_EMAIL_REGEX = /^[\\w+-.]+@[a-z\\d-]+(\\.[a-z\\d-]+)*\\.[a-z]+$/i;\n\nexport const VALID_URL_REGEX =\n /^((https?):\\/\\/)?(www.)?[a-z0-9-]+(\\.[a-z]{2,}){1,3}(#?\\/?[a-zA-Z0-9#-]+)*\\/?(\\?[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+(&[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+)*)?$/;\n\nexport const VALID_SLUG_REGEX = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;\n"],"names":["VALID_EMAIL_REGEX","VALID_URL_REGEX","VALID_SLUG_REGEX"],"mappings":";;AAAO,IAAMA,iBAAiB,GAAG;AAE1B,IAAMC,eAAe,GAC1B;AAEK,IAAMC,gBAAgB,GAAG;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":".eslintrc.js","sources":["../../../src/cypress-utils/.eslintrc.js"],"sourcesContent":["// DO NOT ADD ANY OTHER RULES TO THIS FILE WITHOUT\n// CONSULTING WITH THE WHEEL TEAM.\n\nmodule.exports = {\n root: true,\n extends: [\"../../.eslintrc\", \"plugin:cypress/recommended\"],\n rules: {\n // disable async/await for cypress given that cypress doesn't allow async/await syntax\n // https://docs.cypress.io/faq/questions/using-cypress-faq#Can-I-use-the-new-ES7-async-await-syntax\n \"promise/prefer-await-to-then\": \"off\",\n \"import/order\": [\n \"error\",\n {\n \"newlines-between\": \"always\",\n alphabetize: { order: \"asc\", caseInsensitive: true },\n warnOnUnassignedImports: true,\n groups: [\n \"builtin\",\n \"external\",\n \"internal\",\n \"index\",\n \"sibling\",\n \"parent\",\n \"object\",\n \"type\",\n ],\n /*\n * Currently we check for existence of webpack alias\n * config and then iterate over the aliases and create\n * these pathGroups. Only caveat with this mechanism\n * is that in VSCode eslint plugin won't dynamically\n * read it. But eslint cli would!\n */\n // Ignore react imports so that they're always ordered to the top of the file.\n pathGroupsExcludedImportTypes: [\"react\", \"react-native\"],\n },\n ],\n \"@bigbinary/neeto/use-react-query-for-managing-remote-data\": \"off\",\n },\n};\n"],"names":["module","root","rules","alphabetize","order","caseInsensitive","warnOnUnassignedImports","groups","pathGroupsExcludedImportTypes"],"mappings":";;;;AAAA;AACA;;AAEAA,IAAAA,SAAc,GAAG;AACfC,EAAAA,IAAI,EAAE,IAAI;AACV,EAAA,SAAA,EAAS,CAAC,iBAAiB,EAAE,4BAA4B,CAAC;AAC1DC,EAAAA,KAAK,EAAE;AACL;AACA;AACA,IAAA,8BAA8B,EAAE,KAAK;IACrC,cAAc,EAAE,CACd,OAAO,EACP;AACE,MAAA,kBAAkB,EAAE,QAAQ;AAC5BC,MAAAA,WAAW,EAAE;AAAEC,QAAAA,KAAK,EAAE,KAAK;AAAEC,QAAAA,eAAe,EAAE
|
|
1
|
+
{"version":3,"file":".eslintrc.js","sources":["../../../src/cypress-utils/.eslintrc.js"],"sourcesContent":["// DO NOT ADD ANY OTHER RULES TO THIS FILE WITHOUT\n// CONSULTING WITH THE WHEEL TEAM.\n\nmodule.exports = {\n root: true,\n extends: [\"../../.eslintrc\", \"plugin:cypress/recommended\"],\n rules: {\n // disable async/await for cypress given that cypress doesn't allow async/await syntax\n // https://docs.cypress.io/faq/questions/using-cypress-faq#Can-I-use-the-new-ES7-async-await-syntax\n \"promise/prefer-await-to-then\": \"off\",\n \"import/order\": [\n \"error\",\n {\n \"newlines-between\": \"always\",\n alphabetize: { order: \"asc\", caseInsensitive: true },\n warnOnUnassignedImports: true,\n groups: [\n \"builtin\",\n \"external\",\n \"internal\",\n \"index\",\n \"sibling\",\n \"parent\",\n \"object\",\n \"type\",\n ],\n /*\n * Currently we check for existence of webpack alias\n * config and then iterate over the aliases and create\n * these pathGroups. Only caveat with this mechanism\n * is that in VSCode eslint plugin won't dynamically\n * read it. But eslint cli would!\n */\n // Ignore react imports so that they're always ordered to the top of the file.\n pathGroupsExcludedImportTypes: [\"react\", \"react-native\"],\n },\n ],\n \"@bigbinary/neeto/use-react-query-for-managing-remote-data\": \"off\",\n },\n};\n"],"names":["module","root","rules","alphabetize","order","caseInsensitive","warnOnUnassignedImports","groups","pathGroupsExcludedImportTypes"],"mappings":";;;;AAAA;AACA;;AAEAA,IAAAA,SAAc,GAAG;AACfC,EAAAA,IAAI,EAAE,IAAI;AACV,EAAA,SAAA,EAAS,CAAC,iBAAiB,EAAE,4BAA4B,CAAC;AAC1DC,EAAAA,KAAK,EAAE;AACL;AACA;AACA,IAAA,8BAA8B,EAAE,KAAK;IACrC,cAAc,EAAE,CACd,OAAO,EACP;AACE,MAAA,kBAAkB,EAAE,QAAQ;AAC5BC,MAAAA,WAAW,EAAE;AAAEC,QAAAA,KAAK,EAAE,KAAK;AAAEC,QAAAA,eAAe,EAAE;OAAM;AACpDC,MAAAA,uBAAuB,EAAE,IAAI;AAC7BC,MAAAA,MAAM,EAAE,CACN,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,CACP;AACD;AACR;AACA;AACA;AACA;AACA;AACA;AACQ;AACAC,MAAAA,6BAA6B,EAAE,CAAC,OAAO,EAAE,cAAc;AACzD,KAAC,CACF;AACD,IAAA,2DAA2D,EAAE;AAC/D;AACF,CAAC;;;;;;"}
|