📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
adjust eslint rules
Blue Mouse1ddeb88e89b8
diff --git a/app/pages/Billing/index.tsx b/app/pages/Billing/index.tsxindex adcb4c8f4..665cf7c1d 100644--- a/app/pages/Billing/index.tsx+++ b/app/pages/Billing/index.tsx@@ -208,7 +208,7 @@ const Billing: React.FC<IBilling> = ({ ssrAuthenticated, ssrTheme }): JSX.Elemen{t('billing.nextBillDateIs', {date: language === 'en'? dayjs(nextBillDate).locale(language).format('MMMM D, YYYY')- : dayjs(nextBillDate).locale(language).format('D MMMM, YYYY')+ : dayjs(nextBillDate).locale(language).format('D MMMM, YYYY'),})}</p>)}@@ -323,7 +323,7 @@ const Billing: React.FC<IBilling> = ({ ssrAuthenticated, ssrTheme }): JSX.Elemenvalue: usageinfo.captcha === 0 ? 0 : (usageinfo.captcha/ maxEventsCount) * 100,lightColour: '#65a30d',darkColour: '#4d7c0f',- }+ },]}/>)}diff --git a/app/pages/Captcha/View/ViewCaptcha.helpers.tsx b/app/pages/Captcha/View/ViewCaptcha.helpers.tsxindex 533f916fa..931f54489 100644--- a/app/pages/Captcha/View/ViewCaptcha.helpers.tsx+++ b/app/pages/Captcha/View/ViewCaptcha.helpers.tsx@@ -154,7 +154,7 @@ const getSettings = (chart: any, timeBucket: string, activeChartMetrics: {...chart,}, activeChartMetrics),types: {- results: chartType === chartTypes.line ? area() : bar()+ results: chartType === chartTypes.line ? area() : bar(),},colors: {results: '#2563EB',diff --git a/app/pages/Captcha/View/ViewCaptcha.tsx b/app/pages/Captcha/View/ViewCaptcha.tsxindex 0908579cd..802a62cdc 100644--- a/app/pages/Captcha/View/ViewCaptcha.tsx+++ b/app/pages/Captcha/View/ViewCaptcha.tsx@@ -50,7 +50,7 @@ import {} from './Panels'import {onCSVExportClick, getFormatDate, panelIconMapping, typeNameMapping, validFilters, validPeriods,- validTimeBacket, noRegionPeriods, getSettings, CHART_METRICS_MAPPING, getColumns+ validTimeBacket, noRegionPeriods, getSettings, CHART_METRICS_MAPPING, getColumns,} from './ViewCaptcha.helpers'import CCRow from './components/CCRow'import RefRow from './components/RefRow'diff --git a/app/pages/MainPage/Pricing.tsx b/app/pages/MainPage/Pricing.tsxindex ca174f547..87f3ae889 100644--- a/app/pages/MainPage/Pricing.tsx+++ b/app/pages/MainPage/Pricing.tsx@@ -304,7 +304,7 @@ const Pricing = ({ t, language, authenticated, isBillingPage }: IPricing) => {className={({ checked }) =>cx(checked ? 'bg-slate-900 dark:bg-indigo-700 text-gray-50' : 'text-gray-500 dark:text-gray-200',- 'cursor-pointer rounded-md px-2.5 flex justify-center items-center'+ 'cursor-pointer rounded-md px-2.5 flex justify-center items-center',)}>@@ -318,7 +318,7 @@ const Pricing = ({ t, language, authenticated, isBillingPage }: IPricing) => {className={({ checked }) =>cx(checked ? 'bg-slate-900 dark:bg-indigo-700 text-gray-50' : 'text-gray-500 dark:text-gray-200',- 'cursor-pointer rounded-md px-2.5 flex justify-center items-center'+ 'cursor-pointer rounded-md px-2.5 flex justify-center items-center',)}>diff --git a/package.json b/package.jsonindex 6a77863d8..d63a68834 100644--- a/package.json+++ b/package.json@@ -87,64 +87,17 @@"react-hooks"],"rules": {- "arrow-body-style": "off",- "arrow-parens": "off",- "import/no-cycle": "off",- "import/no-named-as-default": "off",- "import/no-named-as-default-member": "off",- "import/prefer-default-export": "off",- "import/no-unresolved": "off",- "no-param-reassign": "off",- "@typescript-eslint/camelcase": "off",- "camelcase": "off",- "import/extensions": "off",- "jsx-a11y/click-events-have-key-events": "off",- "jsx-a11y/control-has-associated-label": "off",- "jsx-a11y/label-has-for": "off",- "jsx-a11y/no-noninteractive-element-interactions": "off","testing-library/prefer-user-event": "off",- "jsx-a11y/no-static-element-interactions": "off","jsx-quotes": ["error","prefer-single"],- "linebreak-style": "off",- "lines-between-class-members": "off","lodash/prefer-lodash-method": "warn",- "import/newline-after-import": "off",+ "comma-dangle": ["warn", "always-multiline"],"@typescript-eslint/consistent-type-imports": "off","jsx-a11y/anchor-has-content": "off",- "consistent-return": "off",- "max-len": "off",- "no-console": "off",- "no-bitwise": "off",- "no-continue": "off",- "no-empty-function": "off",- "no-nested-ternary": "off",- "no-plusplus": "off",- "no-underscore-dangle": "off","no-unused-vars": "off",- "react/display-name": "warn",- "react/jsx-filename-extension": [- "warn",- {- "extensions": [- ".js",- ".jsx",- ".tsx",- ".ts"- ]- }- ],- "react/jsx-props-no-spreading": "off",- "react/prefer-stateless-function": "off",- "react/prop-types": "off",- "react/state-in-constructor": "off",- "react/static-property-placement": "off","react-hooks/rules-of-hooks": "error",- "react/react-in-jsx-scope": "off",- "react-hooks/exhaustive-deps": "warn",- "react/function-component-definition": "off","semi": ["error","never"