Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
b4db722
First pass
ar2rsawseen Apr 4, 2025
118f90d
lint fix
ar2rsawseen Apr 4, 2025
38e2540
Second pass
ar2rsawseen Apr 4, 2025
89afd9d
remove old compatability plugin
ar2rsawseen Apr 4, 2025
e4ee1ab
build fix
ar2rsawseen Apr 4, 2025
a1d19ac
Put back countly.view
ar2rsawseen Apr 4, 2025
cefbdc6
Template
ar2rsawseen Apr 4, 2025
e437467
Fixes
ar2rsawseen Apr 4, 2025
724cb8b
eslint fixes
ar2rsawseen Apr 5, 2025
c5f322a
put back highlight
ar2rsawseen Apr 5, 2025
26101a5
Pass 3
ar2rsawseen Apr 5, 2025
d528bfe
add leaflet
ar2rsawseen Apr 5, 2025
0739ae7
getTickObj
ar2rsawseen Apr 5, 2025
d4f24c6
pace fix
ar2rsawseen Apr 5, 2025
c2ade00
fix: prevent redirecting to details page on start rating table status…
gabrieloliveirapinto Apr 16, 2025
787f5a1
Merge branch 'master' into ar2rsawseen/cleanup
can-angun Apr 22, 2025
a4e8110
Merge remote-tracking branch 'origin/release.24.05' into SER-1971-whe…
gabrieloliveirapinto Apr 22, 2025
270dcdd
feat: add api endpoint to bulk update star rating widget status
gabrieloliveirapinto Apr 23, 2025
36da045
feat: add status bulk edit
gabrieloliveirapinto Apr 23, 2025
f7eb60d
chore: Update CHANGELOG
gabrieloliveirapinto Apr 23, 2025
93e657d
feat: add loading state to widget status badge
gabrieloliveirapinto Apr 23, 2025
7d4b8fb
Improved dependabot
ar2rsawseen Apr 24, 2025
512194f
Merge branch 'master' into ar2rsawseen/master
ar2rsawseen Apr 24, 2025
3cbf506
Fixed the code for fixing the SER-1971
savascountly Apr 24, 2025
6b05515
Merge pull request #6172 from Countly/ar2rsawseen/master
ar2rsawseen Apr 24, 2025
04ca5eb
Bump moment from 2.29.4 to 2.30.1 in /ui-tests
dependabot[bot] Apr 24, 2025
fc849d8
Bump moment-timezone from 0.5.35 to 0.5.48 in /bin/scripts/timezones
dependabot[bot] Apr 24, 2025
fa99373
Bump mocha from 10.8.2 to 11.1.0 in /api/utils/countly-request
dependabot[bot] Apr 24, 2025
8d13cff
Bump puppeteer from 24.7.1 to 24.7.2
dependabot[bot] Apr 24, 2025
9ee8425
Update dependabot.yml
ar2rsawseen Apr 24, 2025
2eea3cb
Merge pull request #6174 from Countly/dependabot/npm_and_yarn/ui-test…
ar2rsawseen Apr 24, 2025
22f637c
Merge branch 'master' into dependabot/npm_and_yarn/bin/scripts/timezo…
ar2rsawseen Apr 24, 2025
b5804bb
Bump chai from 5.1.1 to 5.2.0 in /ui-tests
dependabot[bot] Apr 24, 2025
d4cc4d5
Merge pull request #6175 from Countly/dependabot/npm_and_yarn/bin/scr…
ar2rsawseen Apr 24, 2025
95de728
Merge branch 'master' into ar2rsawseen-patch-41
ar2rsawseen Apr 24, 2025
b425a9e
Bump node-fetch from 2.6.7 to 3.3.2 in /bin/scripts/timezones
dependabot[bot] Apr 24, 2025
cafbb25
Merge pull request #6186 from Countly/ar2rsawseen-patch-41
ar2rsawseen Apr 24, 2025
09a5e0b
Merge branch 'master' into dependabot/npm_and_yarn/api/utils/countly-…
ar2rsawseen Apr 24, 2025
0408ba9
Bump the actions group with 6 updates
dependabot[bot] Apr 24, 2025
e02d46f
Merge pull request #6177 from Countly/dependabot/npm_and_yarn/api/uti…
ar2rsawseen Apr 24, 2025
8df5e71
Merge branch 'master' into dependabot/npm_and_yarn/bin/scripts/timezo…
ar2rsawseen Apr 24, 2025
2112ea8
Merge pull request #6178 from Countly/dependabot/npm_and_yarn/bin/scr…
ar2rsawseen Apr 24, 2025
bde0c3a
Merge branch 'master' into dependabot/npm_and_yarn/puppeteer-24.7.2
ar2rsawseen Apr 24, 2025
850fb35
Merge pull request #6182 from Countly/dependabot/npm_and_yarn/puppete…
ar2rsawseen Apr 24, 2025
ac494fa
Merge branch 'master' into dependabot/npm_and_yarn/ui-tests/chai-5.2.0
ar2rsawseen Apr 24, 2025
e01cf02
Merge pull request #6183 from Countly/dependabot/npm_and_yarn/ui-test…
ar2rsawseen Apr 24, 2025
402a211
Bump @faker-js/faker from 8.2.0 to 9.7.0 in /ui-tests
dependabot[bot] Apr 24, 2025
8069e09
Fix labels
ar2rsawseen Apr 24, 2025
7e31e42
Merge branch 'master' into ar2rsawseen/master
ar2rsawseen Apr 24, 2025
0ae13a0
Fixes
ar2rsawseen Apr 24, 2025
2878c2d
Merge pull request #6187 from Countly/ar2rsawseen/master
ar2rsawseen Apr 25, 2025
e8aba14
Merge branch 'master' into dependabot/npm_and_yarn/ui-tests/faker-js/…
ar2rsawseen Apr 25, 2025
8ddb85a
Merge pull request #6181 from Countly/dependabot/npm_and_yarn/ui-test…
ar2rsawseen Apr 25, 2025
1020983
Merge branch 'master' into dependabot/github_actions/actions-64de86c0d2
ar2rsawseen Apr 25, 2025
cd7bc41
Merge pull request #6185 from Countly/dependabot/github_actions/actio…
ar2rsawseen Apr 25, 2025
85a6847
Localization fixes (#6112)
ar2rsawseen Apr 28, 2025
69230e2
[views] Use aggregation to get heatmap data
widatama Apr 16, 2025
a4fc372
[views] Add meta to heatmap result
widatama Apr 17, 2025
9b69a2d
[views] Add old drill event collection to heatmap result
widatama Apr 18, 2025
0fa59aa
[views] Reorganize test files
widatama Apr 18, 2025
54de0eb
[views] Add tests for heatmap
widatama Apr 23, 2025
f05cc60
[views] Remove old getHeatmap
widatama Apr 23, 2025
f584fda
Update changelog
widatama Apr 24, 2025
1ace39e
Merge pull request #6169 from Countly/heatmap-neo-ingestion-master
Cookiezaurs Apr 29, 2025
a49a991
Merge branch 'master' into ar2rsawseen/cleanup
ar2rsawseen Apr 29, 2025
a28d001
[views] disable heatmap tests
ar2rsawseen Apr 29, 2025
01703b8
[views] remove heatmap tests
ar2rsawseen Apr 29, 2025
a57cdfe
Clean up UI in tests
ar2rsawseen Apr 29, 2025
a193918
feat: add loading skeleton to status tag
gabrieloliveirapinto Apr 29, 2025
b75c402
feat: use global cly-status-tag to display widget status
gabrieloliveirapinto Apr 29, 2025
d20dcc0
Merge pull request #6164 from Countly/SER-1971-when-user-try-to-make-…
Cookiezaurs Apr 30, 2025
4e78e11
Merge remote-tracking branch 'origin/release.24.05' into SER-1975-the…
gabrieloliveirapinto Apr 30, 2025
745b813
chore: Update CHANGELOG
gabrieloliveirapinto Apr 30, 2025
f728cb7
fix: remove background color from rating consent input suffix
gabrieloliveirapinto Apr 30, 2025
2d6b6f5
chore: update CHANGELOG
gabrieloliveirapinto Apr 30, 2025
d48cfa6
Bump mocha from 11.1.0 to 11.2.2 in /api/utils/countly-request
dependabot[bot] May 2, 2025
cdcafe2
Bump puppeteer from 24.7.2 to 24.8.0
dependabot[bot] May 5, 2025
da249a6
Update index.js (#6197)
ar2rsawseen May 6, 2025
b610c8e
Merge branch 'master' into dependabot/npm_and_yarn/puppeteer-24.8.0
ar2rsawseen May 6, 2025
263499e
new eslint changes and proposal (#6196)
kanwarujjaval May 6, 2025
edfd3cc
Merge branch 'master' into dependabot/npm_and_yarn/puppeteer-24.8.0
ar2rsawseen May 6, 2025
1d5a1b3
Merge pull request #6195 from Countly/dependabot/npm_and_yarn/puppete…
ar2rsawseen May 6, 2025
72f6525
Fix dependencies
ar2rsawseen May 6, 2025
ff85a16
Merge pull request #6199 from Countly/ar2rsawseen/master2
ar2rsawseen May 6, 2025
9e98823
Merge branch 'master' into ar2rsawseen/cleanup
ar2rsawseen May 6, 2025
a38296a
[core] Changes to top events job. Fetching data from aggregated event…
May 7, 2025
9450901
linting
May 7, 2025
fc49af8
remove unused function
May 7, 2025
d8d4920
Merge pull request #6190 from Countly/SER-1975-there-an-status-instan…
Cookiezaurs May 7, 2025
7c835dc
Merge branch 'release.24.05' into SER-1406-design-create-new-survey-c…
Cookiezaurs May 7, 2025
0075de4
Merge pull request #6202 from Countly/fixes.24-10
Cookiezaurs May 7, 2025
e4f9041
Merge pull request #6191 from Countly/SER-1406-design-create-new-surv…
Cookiezaurs May 7, 2025
320f253
fix: prevent error when ref or dropdown are undefined
gabrieloliveirapinto May 8, 2025
9e38c74
Merge pull request #6204 from Countly/fix-prevent-dropdown-error-when…
Cookiezaurs May 8, 2025
bdacd13
Merge branch 'master' into next
ar2rsawseen May 8, 2025
dc050a3
[core] Changes for event omit script to validate data in new model an…
May 8, 2025
bd28bce
Merge branch 'release.24.10' into fixes.24-10
Cookiezaurs May 8, 2025
4775082
Merge pull request #6206 from Countly/fixes.24-10
Cookiezaurs May 8, 2025
d4aac70
Update CHANGELOG.md
Cookiezaurs May 8, 2025
1a7551a
Merge pull request #6207 from Countly/Cookiezaurs-patch-1
Cookiezaurs May 8, 2025
fe74bb7
Merge branch 'release.24.10' into resolve-conflicts-24.05->24.10
Cookiezaurs May 8, 2025
79243e2
Merge pull request #6208 from Countly/resolve-conflicts-24.05->24.10
Cookiezaurs May 8, 2025
9a28c7d
Update CHANGELOG.md
Cookiezaurs May 9, 2025
bc73702
Merge pull request #6211 from Countly/Cookiezaurs-patch-2
Cookiezaurs May 9, 2025
2bc610f
Merge branch 'release.24.10'
ar2rsawseen May 9, 2025
0dd4681
Update CHANGELOG.md
Cookiezaurs May 9, 2025
fbfdc41
Merge pull request #6213 from Countly/Cookiezaurs-patch-3
Cookiezaurs May 9, 2025
682a4fe
[core] Updated views omitting script
May 9, 2025
a931f5e
Merge branch 'master' into anna/master
Cookiezaurs May 9, 2025
1d7491d
Merge pull request #6214 from Countly/anna/master
Cookiezaurs May 9, 2025
3903334
Bump sass from 1.87.0 to 1.88.0
dependabot[bot] May 12, 2025
67c3b8c
Bump slackapi/slack-github-action in the actions group
dependabot[bot] May 12, 2025
da52e41
Merge branch 'master' into dependabot/npm_and_yarn/api/utils/countly-…
ar2rsawseen May 12, 2025
d69e5bf
Merge pull request #6193 from Countly/dependabot/npm_and_yarn/api/uti…
ar2rsawseen May 12, 2025
f50670d
Merge branch 'master' into dependabot/npm_and_yarn/sass-1.88.0
ar2rsawseen May 12, 2025
751f492
Update Changelog
ar2rsawseen May 12, 2025
6820579
[core] Fixes for license installer script
May 12, 2025
1f433b5
Merge branch 'master' into anna/master
Cookiezaurs May 12, 2025
681d8e1
Merge pull request #6219 from Countly/anna/master
Cookiezaurs May 12, 2025
cc74488
Merge branch 'master' into dependabot/npm_and_yarn/sass-1.88.0
ar2rsawseen May 13, 2025
addcfdc
Merge pull request #6215 from Countly/dependabot/npm_and_yarn/sass-1.…
ar2rsawseen May 13, 2025
8880c61
Merge branch 'master' into dependabot/github_actions/actions-80bdc12dd6
ar2rsawseen May 13, 2025
0bb25bf
Bump supertest from 7.1.0 to 7.1.1
dependabot[bot] May 13, 2025
52c3f90
Bump semver from 7.7.1 to 7.7.2
dependabot[bot] May 13, 2025
ece8836
local: changed micro copy for flex promotion banner.
frknbasaran May 13, 2025
afb9f79
fix: remove secondary text from banner, we don't need that.
frknbasaran May 13, 2025
605c31b
local: removed unnecessary localization key.
frknbasaran May 13, 2025
7d253dc
Update CHANGELOG.md
coskunaydinoglu May 13, 2025
3c7c07b
Update CHANGELOG.md
coskunaydinoglu May 13, 2025
d02ab27
Merge pull request #6217 from Countly/dependabot/github_actions/actio…
ar2rsawseen May 13, 2025
da714d1
Merge branch 'master' into dependabot/npm_and_yarn/supertest-7.1.1
ar2rsawseen May 13, 2025
c0d9f37
Update Changelog
ar2rsawseen May 13, 2025
e2a7fa2
Merge pull request #6220 from Countly/dependabot/npm_and_yarn/superte…
ar2rsawseen May 13, 2025
345d9e9
Merge branch 'master' into dependabot/npm_and_yarn/semver-7.7.2
ar2rsawseen May 13, 2025
cf7b827
Bump puppeteer from 24.8.0 to 24.8.2
dependabot[bot] May 13, 2025
7ecd016
update changelog
ar2rsawseen May 13, 2025
dbff22f
Merge branch 'master' into SER-2424-asset-preview-is-not-working-corr…
coskunaydinoglu May 13, 2025
1c3dcc9
Merge pull request #6221 from Countly/dependabot/npm_and_yarn/semver-…
ar2rsawseen May 13, 2025
57e492d
Merge branch 'master' into dependabot/npm_and_yarn/puppeteer-24.8.2
ar2rsawseen May 13, 2025
025757a
update changelog
ar2rsawseen May 13, 2025
81f786a
Bump nodemailer from 6.10.1 to 7.0.3
dependabot[bot] May 13, 2025
4dc3db6
Merge pull request #6209 from Countly/dependabot/npm_and_yarn/puppete…
ar2rsawseen May 13, 2025
dcde89a
Merge branch 'master' into dependabot/npm_and_yarn/nodemailer-7.0.3
ar2rsawseen May 13, 2025
7c9023b
update changelog
ar2rsawseen May 13, 2025
3baaa93
Merge branch 'master' into SER-2424-asset-preview-is-not-working-corr…
coskunaydinoglu May 13, 2025
6d2c8b2
Merge pull request #6225 from Countly/SER-2424-asset-preview-is-not-w…
coskunaydinoglu May 13, 2025
5a2d173
Update changelog
widatama May 14, 2025
bf644bc
Merge branch 'master' into dependabot/npm_and_yarn/nodemailer-7.0.3
ar2rsawseen May 14, 2025
291cce8
Merge pull request #6210 from Countly/dependabot/npm_and_yarn/nodemai…
ar2rsawseen May 14, 2025
5fa404c
Merge branch 'master' into lite-banner
ar2rsawseen May 14, 2025
009b9c2
Bump lint-staged from 15.5.2 to 16.0.0
dependabot[bot] May 14, 2025
1ed4647
Merge pull request #6224 from frknbasaran/lite-banner
ar2rsawseen May 14, 2025
981129a
Merge branch 'master' into ab-testing-result
ar2rsawseen May 14, 2025
04f7f53
Merge pull request #6227 from Countly/ab-testing-result
ar2rsawseen May 14, 2025
ad73c23
Merge branch 'master' into dependabot/npm_and_yarn/lint-staged-16.0.0
ar2rsawseen May 14, 2025
b02aadf
Update changelog
ar2rsawseen May 14, 2025
47d1984
Merge pull request #6216 from Countly/dependabot/npm_and_yarn/lint-st…
ar2rsawseen May 14, 2025
10647a7
Merge branch 'master' into ar2rsawseen/cleanup
ar2rsawseen May 14, 2025
a34014c
Merge branch 'next' into ar2rsawseen/cleanup
ar2rsawseen May 14, 2025
af6f9ca
Update main.yml
ar2rsawseen May 14, 2025
9af7530
Update main.yml
ar2rsawseen May 14, 2025
fc0e828
Add upgrade scripts
ar2rsawseen May 14, 2025
cc407f9
Put in legacy lib back
ar2rsawseen May 16, 2025
90d9353
Merge pull request #6120 from Countly/ar2rsawseen/cleanup
ar2rsawseen May 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ exclude_paths:
- 'frontend/express/public/localization/**'
- 'frontend/express/public/fonts/**'
- 'frontend/express/public/images/**'
- 'frontend/express/public/stylesheets/amaranjs/**'
- 'frontend/express/public/stylesheets/font-awesome/**'
- 'frontend/express/public/stylesheets/ionicons/**'
- 'frontend/express/public/stylesheets/material/**'
- 'frontend/express/public/stylesheets/selectize/**'
- 'bin/backup/**'
- 'bin/upgrade/**'
- 'bin/**'
Expand Down
257 changes: 240 additions & 17 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "eslint:recommended",
"rules": {
// "quotes": ["warn", "single", { "avoidEscape": true }],
"require-atomic-updates": "off",
"block-spacing": [
"error",
Expand Down Expand Up @@ -118,6 +119,240 @@
"unicode-bom": [
"error",
"never"
],
"no-restricted-properties": [
"warn",
{
"object": "Promise",
"property": "map",
"message": "Bluebird-specific method 'Promise.map' detected. Suggestion: use native arrays with Promise.all or a library like 'p-map'."
},
{
"object": "Promise",
"property": "reduce",
"message": "Bluebird-specific method 'Promise.reduce' detected. Suggestion: use Array.reduce plus async/await or a concurrency library."
},
{
"object": "Promise",
"property": "filter",
"message": "Bluebird-specific method 'Promise.filter' detected. Suggestion: use Array.filter plus async/await or a concurrency library."
},
{
"object": "Promise",
"property": "each",
"message": "Bluebird-specific method 'Promise.each' detected. Suggestion: use a for-loop/forEach with async/await."
},
{
"object": "Promise",
"property": "props",
"message": "Bluebird-specific method 'Promise.props' detected. Suggestion: use Promise.all with Object.entries or a custom approach."
},
{
"object": "Promise",
"property": "join",
"message": "Bluebird-specific method 'Promise.join' detected. Suggestion: use Promise.all([...]) and destructuring in .then."
},
{
"object": "Promise",
"property": "try",
"message": "Bluebird-specific method 'Promise.try' detected. Suggestion: use a try/catch block or an async function."
},
{
"object": "Promise",
"property": "attempt",
"message": "Bluebird-specific method 'Promise.attempt' detected. Suggestion: same as 'Promise.try'—use try/catch or async."
},
{
"object": "Promise",
"property": "method",
"message": "Bluebird-specific method 'Promise.method' detected. Suggestion: define an async function or return a native Promise."
},
{
"object": "Promise",
"property": "promisify",
"message": "Bluebird-specific method 'Promise.promisify' detected. Suggestion: use native 'util.promisify' or wrap in a new Promise."
},
{
"object": "Promise",
"property": "promisifyAll",
"message": "Bluebird-specific method 'Promise.promisifyAll' detected. Suggestion: consider 'util.promisify' for each function or a similar library."
},
{
"object": "Promise",
"property": "fromCallback",
"message": "Bluebird-specific method 'Promise.fromCallback' detected. Suggestion: use new Promise(...) or 'util.promisify'."
},
{
"object": "Promise",
"property": "coroutine",
"message": "Bluebird-specific method 'Promise.coroutine' detected. Suggestion: use native async/await."
},
{
"object": "Promise",
"property": "spawn",
"message": "Bluebird-specific method 'Promise.spawn' detected. Suggestion: use native async/await."
},
{
"object": "Promise",
"property": "using",
"message": "Bluebird-specific method 'Promise.using' detected. Suggestion: use try/finally or a resource-management library."
},
{
"object": "Promise",
"property": "disposer",
"message": "Bluebird-specific method 'Promise.disposer' detected. Suggestion: use try/finally or a resource-management library."
},
{
"object": "Promise",
"property": "settle",
"message": "Bluebird-specific method 'Promise.settle' detected. Suggestion: use native 'Promise.allSettled'."
},

/* ---------- Same methods on the Bluebird object itself ---------- */
{
"object": "Bluebird",
"property": "map",
"message": "Bluebird-specific method 'Bluebird.map' detected. Suggestion: use array mapping + Promise.all or 'p-map'."
},
{
"object": "Bluebird",
"property": "reduce",
"message": "Bluebird-specific method 'Bluebird.reduce' detected. Suggestion: use array reduce + async/await or concurrency library."
},
{
"object": "Bluebird",
"property": "filter",
"message": "Bluebird-specific method 'Bluebird.filter' detected. Suggestion: use array filter + async/await or concurrency library."
},
{
"object": "Bluebird",
"property": "each",
"message": "Bluebird-specific method 'Bluebird.each' detected. Suggestion: use a for-loop or forEach + async/await."
},
{
"object": "Bluebird",
"property": "props",
"message": "Bluebird-specific method 'Bluebird.props' detected. Suggestion: use Promise.all with object entries or a custom approach."
},
{
"object": "Bluebird",
"property": "join",
"message": "Bluebird-specific method 'Bluebird.join' detected. Suggestion: use Promise.all([...]) and destructuring."
},
{
"object": "Bluebird",
"property": "try",
"message": "Bluebird-specific method 'Bluebird.try' detected. Suggestion: use a try/catch block or async function."
},
{
"object": "Bluebird",
"property": "attempt",
"message": "Bluebird-specific method 'Bluebird.attempt' detected. Suggestion: use a try/catch block or async function."
},
{
"object": "Bluebird",
"property": "method",
"message": "Bluebird-specific method 'Bluebird.method' detected. Suggestion: define an async function or return a native Promise."
},
{
"object": "Bluebird",
"property": "promisify",
"message": "Bluebird-specific method 'Bluebird.promisify' detected. Suggestion: use native 'util.promisify' or wrap in a new Promise."
},
{
"object": "Bluebird",
"property": "promisifyAll",
"message": "Bluebird-specific method 'Bluebird.promisifyAll' detected. Suggestion: consider 'util.promisify' or a similar library."
},
{
"object": "Bluebird",
"property": "fromCallback",
"message": "Bluebird-specific method 'Bluebird.fromCallback' detected. Suggestion: use new Promise(...) or 'util.promisify'."
},
{
"object": "Bluebird",
"property": "coroutine",
"message": "Bluebird-specific method 'Bluebird.coroutine' detected. Suggestion: use native async/await."
},
{
"object": "Bluebird",
"property": "spawn",
"message": "Bluebird-specific method 'Bluebird.spawn' detected. Suggestion: use native async/await."
},
{
"object": "Bluebird",
"property": "using",
"message": "Bluebird-specific method 'Bluebird.using' detected. Suggestion: use try/finally or a resource-management library."
},
{
"object": "Bluebird",
"property": "disposer",
"message": "Bluebird-specific method 'Bluebird.disposer' detected. Suggestion: use try/finally or a resource-management library."
},
{
"object": "Bluebird",
"property": "settle",
"message": "Bluebird-specific method 'Bluebird.settle' detected. Suggestion: use native 'Promise.allSettled'."
}
],
"no-restricted-syntax": [
"warn",
{
"selector": "CallExpression[callee.property.name='tap']",
"message": "Bluebird-specific instance method '.tap()' detected. Suggestion: use '.then(value => { ...; return value; })'."
},
{
"selector": "CallExpression[callee.property.name='tapCatch']",
"message": "Bluebird-specific instance method '.tapCatch()' detected. Suggestion: use '.catch(error => { ...; throw error; })'."
},
{
"selector": "CallExpression[callee.property.name='spread']",
"message": "Bluebird-specific instance method '.spread()' detected. Suggestion: use '.then(([a, b]) => ... )' with array destructuring."
},
{
"selector": "CallExpression[callee.type='MemberExpression'][callee.property.name='bind'][callee.object.name=/^(Promise|Bluebird|BPromise)$/]",
"message": "Bluebird-specific '.bind()' detected on a Bluebird promise. Suggestion: manually bind 'this' or use arrow functions."
},
{
"selector": "CallExpression[callee.property.name='delay']",
"message": "Bluebird-specific instance method '.delay()' detected. Suggestion: use setTimeout() or a library (e.g., p-delay)."
},
{
"selector": "CallExpression[callee.property.name='timeout']",
"message": "Bluebird-specific instance method '.timeout()' detected. Suggestion: use p-timeout or similar library."
},
{
"selector": "CallExpression[callee.property.name='return']",
"message": "Bluebird-specific instance method '.return()' detected. Suggestion: use '.then(() => someValue)' or rewrite chain."
},
{
"selector": "CallExpression[callee.property.name='throw']",
"message": "Bluebird-specific instance method '.throw()' detected. Suggestion: use '.then(() => { throw error; })'."
},
{
"selector": "CallExpression[callee.property.name='asCallback']",
"message": "Bluebird-specific instance method '.asCallback()' detected. Suggestion: use 'util.callbackify' or rewrite manually."
},
{
"selector": "CallExpression[callee.property.name='nodeify']",
"message": "Bluebird-specific instance method '.nodeify()' detected. Suggestion: use 'util.callbackify' or rewrite manually."
},
{
"selector": "CallExpression[callee.property.name='reflect']",
"message": "Bluebird-specific instance method '.reflect()' detected. Suggestion: use 'Promise.allSettled' or custom handling."
},
{
"selector": "CallExpression[callee.property.name='caught']",
"message": "Bluebird-specific instance method '.caught()' detected. Suggestion: use '.catch()' with condition or separate logic."
},
{
"selector": "CallExpression[callee.property.name='catchReturn']",
"message": "Bluebird-specific instance method '.catchReturn()' detected. Suggestion: use '.catch(err => fallbackValue)' or similar."
},
{
"selector": "CallExpression[callee.property.name='catchThrow']",
"message": "Bluebird-specific instance method '.catchThrow()' detected. Suggestion: use '.catch(err => { throw newError; })'."
}
]
},
"overrides": [
Expand All @@ -142,28 +377,16 @@
{
"files": [
"plugins/content/frontend/content-blocks/**/*.js",
"plugins/journey_engine/frontend/builder/**/*.js",
"plugins/content/frontend/content-blocks/**/*.vue",
"plugins/journey_engine/frontend/builder/**/*.vue"
],
"plugins": [
"vue",
"@stylistic"
"plugins/journey_engine/frontend/builder/**/*.js"
],
"extends": [
"eslint:recommended",
"plugin:vue/vue3-essential",
"plugin:vue/vue3-strongly-recommended",
"plugin:vue/vue3-recommended"
"eslint:recommended"
],
"rules": {
// override these post initial content release, to make them fit with countly convention
"no-console": ["error"],
"@stylistic/quotes": ["error", "single"],
"@stylistic/quote-props": ["error", "as-needed"],
"no-unused-vars": "off",
"vue/no-unused-vars": ["error", {
"ignorePattern": "^_"
"no-unused-vars": ["error", {
"argsIgnorePattern": "^_", // unused function args
"varsIgnorePattern": "^_" // unused variables
}]
},
"parserOptions": {
Expand Down
Loading
Loading