Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a38cf34
Snyk fixes
netrajpatel Apr 17, 2026
dad79f8
Merge branch 'development' into snyk-fixes
harshitha-cstk Apr 24, 2026
005c1b7
Merge pull request #2526 from contentstack/snyk-fixes
harshitha-cstk Apr 24, 2026
b6c8d54
SRE: axios version bump and version overide
netrajpatel Apr 27, 2026
d80c4b4
Merge pull request #2549 from contentstack/fix/dx-6700
netrajpatel Apr 27, 2026
6e93062
uuid, short-uuid and eslint major version bump
netrajpatel Apr 28, 2026
90c36b3
Upgraded eslint to v9
netrajpatel Apr 28, 2026
5b3d987
Merge pull request #2550 from contentstack/fix/dx-6701
netrajpatel Apr 28, 2026
09cdf0b
Cleanup unused plugins
netrajpatel Apr 28, 2026
d56506c
Centralise uuid and short-uuid helpers from utilities
netrajpatel Apr 28, 2026
b061cd5
Merge pull request #2554 from contentstack/chore/dx-6715
netrajpatel Apr 29, 2026
80ceb82
Merge branch 'development' into chore/DX-6926
netrajpatel Apr 30, 2026
afcfdf8
Merge pull request #2555 from contentstack/chore/DX-6926
cs-raj May 4, 2026
3240cdc
revert: cli version bump
cs-raj May 4, 2026
46bda4f
Merge pull request #2556 from contentstack/revert/version-bump
cs-raj May 4, 2026
e2c13a0
chore: version bump
cs-raj May 4, 2026
861ddab
Merge pull request #2557 from contentstack/chore/version-bump
cs-raj May 4, 2026
316215b
Merge pull request #2547 from contentstack/development
cs-raj May 4, 2026
7f5b9d0
chore: core version bump
cs-raj May 4, 2026
a7f324d
Merge pull request #2558 from contentstack/chore/version-bump-2
cs-raj May 4, 2026
d42918a
Merge branch 'main' into development
cs-raj May 4, 2026
ad34fcb
Merge pull request #2560 from contentstack/back-merge
cs-raj May 4, 2026
60fc680
Merge pull request #2559 from contentstack/development
cs-raj May 4, 2026
72750c7
Merge pull request #2561 from contentstack/chore/back-merge
cs-raj May 4, 2026
3c46c96
Merge branch 'development' into v2-dev
cs-raj May 5, 2026
c9fa465
chore: lock file update
cs-raj May 5, 2026
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
15 changes: 15 additions & 0 deletions eslint.config.base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import tseslint from 'typescript-eslint';

export const typescriptConfig = tseslint.configs.recommended;

export const baseRules = {
eqeqeq: ['error', 'smart'],
'id-match': 'error',
'no-eval': 'error',
'no-var': 'error',
'@typescript-eslint/no-unused-vars': ['error', { args: 'none' }],
'@typescript-eslint/prefer-namespace-keyword': 'error',
semi: 'off',
'@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/no-explicit-any': 'off',
};
2 changes: 0 additions & 2 deletions packages/contentstack-auth/.eslintignore

This file was deleted.

36 changes: 0 additions & 36 deletions packages/contentstack-auth/.eslintrc

This file was deleted.

17 changes: 17 additions & 0 deletions packages/contentstack-auth/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { typescriptConfig, baseRules } from '../../eslint.config.base.js';

export default [
...typescriptConfig,
{
files: ['src/**/*.ts'],
rules: {
...baseRules,
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/quotes': 'off',
'@typescript-eslint/type-annotation-spacing': 'off',
},
},
{
ignores: ['lib/**'],
},
];
11 changes: 4 additions & 7 deletions packages/contentstack-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"@contentstack/cli-command": "~2.0.0-beta.6",
"@contentstack/cli-utilities": "~2.0.0-beta.7",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.44",
"otplib": "^12.0.1"
},
"overrides": {
Expand All @@ -27,20 +26,18 @@
}
},
"devDependencies": {
"@fancy-test/nock": "^0.1.1",
"@oclif/plugin-help": "^6.2.44",
"@oclif/test": "^4.1.18",
"@oclif/test": "^4.1.13",
"@types/chai": "^4.3.20",
"@types/mkdirp": "^1.0.2",
"@types/mocha": "^8.2.3",
"@types/node": "^14.18.63",
"@types/sinon": "^21.0.1",
"chai": "^4.5.0",
"dotenv": "^16.6.1",
"eslint": "^8.57.1",
"dotenv": "^16.4.7",
"eslint": "^9.26.0",
"eslint-config-oclif": "^5.2.2",
"eslint-config-oclif-typescript": "^3.1.14",
"mocha": "10.8.2",
"nock": "^13.5.6",
"nyc": "^15.1.0",
"oclif": "^4.23.0",
"sinon": "^21.1.2",
Expand Down
1 change: 0 additions & 1 deletion packages/contentstack-auth/src/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-redeclare
export interface AuthOptions {
contentstackClient: any;
}
Expand Down
2 changes: 0 additions & 2 deletions packages/contentstack-command/.eslintignore

This file was deleted.

31 changes: 0 additions & 31 deletions packages/contentstack-command/.eslintrc

This file was deleted.

12 changes: 12 additions & 0 deletions packages/contentstack-command/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { typescriptConfig, baseRules } from '../../eslint.config.base.js';

export default [
...typescriptConfig,
{
files: ['src/**/*.ts'],
rules: baseRules,
},
{
ignores: ['lib/**'],
},
];
8 changes: 3 additions & 5 deletions packages/contentstack-command/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@
"dependencies": {
"@contentstack/cli-utilities": "~2.0.0-beta.7",
"contentstack": "^3.27.0",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.44"
"@oclif/core": "^4.10.5"
},
"overrides": {
"@oclif/core": {
"picomatch": "^4.0.4"
}
},
"devDependencies": {
"@oclif/test": "^4.1.18",
"@types/mkdirp": "^1.0.2",
"@oclif/test": "^4.1.13",
"@types/mocha": "^8.2.3",
"@types/node": "^14.18.63",
"eslint": "^8.57.1",
"eslint": "^9.26.0",
"eslint-config-oclif": "^6.0.15",
"eslint-config-oclif-typescript": "^3.1.14",
"mocha": "10.8.2",
Expand Down
2 changes: 0 additions & 2 deletions packages/contentstack-config/.eslintignore

This file was deleted.

34 changes: 0 additions & 34 deletions packages/contentstack-config/.eslintrc

This file was deleted.

43 changes: 43 additions & 0 deletions packages/contentstack-config/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import mochaPlugin from 'eslint-plugin-mocha';
import { FlatCompat } from '@eslint/eslintrc';
import { baseRules } from '../../eslint.config.base.js';

const compat = new FlatCompat();

export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
...compat.config(mochaPlugin.configs.recommended),
{
files: ['src/**/*.ts', 'test/**/*.ts'],
rules: {
...baseRules,
'unicorn/no-abusive-eslint-disable': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
indent: 'off',
'object-curly-spacing': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'mocha/no-async-describe': 'off',
'mocha/no-identical-title': 'off',
'mocha/no-mocha-arrows': 'off',
'mocha/no-setup-in-describe': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'prefer-const': 'error',
'no-fallthrough': 'error',
'no-prototype-builtins': 'off',
},
},
{
files: ['*.d.ts'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
ignores: ['lib/**'],
},
];
8 changes: 3 additions & 5 deletions packages/contentstack-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
"@contentstack/cli-command": "~2.0.0-beta.6",
"@contentstack/cli-utilities": "~2.0.0-beta.7",
"@contentstack/utils": "~1.9.1",
"@oclif/core": "^4.10.5",
"@oclif/plugin-help": "^6.2.44",
"lodash": "^4.18.1"
"@oclif/core": "^4.8.3"
},
"overrides": {
"@oclif/core": {
Expand All @@ -33,8 +31,8 @@
"@types/node": "^14.18.63",
"@types/sinon": "^21.0.1",
"chai": "^4.5.0",
"eslint": "^8.57.1",
"eslint-config-oclif": "^6.0.157",
"eslint": "^9.26.0",
"eslint-config-oclif": "^6.0.62",
"eslint-config-oclif-typescript": "^3.1.14",
"mocha": "10.8.2",
"nyc": "^15.1.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/contentstack-utilities/.eslintignore

This file was deleted.

36 changes: 0 additions & 36 deletions packages/contentstack-utilities/.eslintrc

This file was deleted.

17 changes: 17 additions & 0 deletions packages/contentstack-utilities/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { typescriptConfig, baseRules } from '../../eslint.config.base.js';

export default [
...typescriptConfig,
{
files: ['src/**/*.ts'],
rules: {
...baseRules,
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
},
},
{
ignores: ['lib/**'],
},
];
9 changes: 5 additions & 4 deletions packages/contentstack-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@contentstack/management": "~1.30.1",
"@contentstack/marketplace-sdk": "^1.5.1",
"@oclif/core": "^4.10.5",
"axios": "^1.15.0",
"axios": "^1.15.2",
"chalk": "^5.6.2",
"cli-cursor": "^3.1.0",
"cli-progress": "^3.12.0",
Expand All @@ -53,7 +53,8 @@
"traverse": "^0.6.11",
"tty-table": "^4.2.3",
"unique-string": "^2.0.0",
"uuid": "^9.0.1",
"short-uuid": "^6.0.0",
"uuid": "^14.0.0",
"winston": "^3.19.0",
"xdg-basedir": "^4.0.0"
},
Expand All @@ -71,8 +72,8 @@
"@types/sinon": "^21.0.0",
"@types/traverse": "^0.6.37",
"chai": "^4.5.0",
"eslint": "^8.57.1",
"eslint-config-oclif": "^6.0.157",
"eslint": "^9.26.0",
"eslint-config-oclif": "^6.0.62",
"eslint-config-oclif-typescript": "^3.1.14",
"fancy-test": "^2.0.42",
"mocha": "10.8.2",
Expand Down
1 change: 0 additions & 1 deletion packages/contentstack-utilities/src/fs-utility/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ export async function getFileList(dirName: string, onlyName = true): Promise<str

for (const item of items) {
if (item.isDirectory()) {
/* eslint-disable no-await-in-loop */
files = [...files, ...(await getFileList(`${dirName}/${item.name}`))];
} else {
files.push(onlyName ? item.name : `${dirName}/${item.name}`);
Expand Down
Loading
Loading