Skip to content

Commit 937c993

Browse files
Merge pull request #2573 from contentstack/v2-dev
DX | 18-05-2026 | Release
2 parents 97e6c7b + 199e688 commit 937c993

41 files changed

Lines changed: 3015 additions & 2080 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/unit-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
working-directory: ./packages/contentstack-auth
3232
run: pnpm test
3333
# Commented out in v2-beta production
34-
# - name: Test contentstack-utilities
35-
# working-directory: ./packages/contentstack-utilities
36-
# run: pnpm test
34+
- name: Test contentstack-utilities
35+
working-directory: ./packages/contentstack-utilities
36+
run: pnpm test

.talismanrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
fileignoreconfig:
22
- filename: pnpm-lock.yaml
33
checksum: cf79b3b8a81987734d472d57beee8b3a68923a54511492aba4c7f2ba30b5308f
4+
- filename: packages/contentstack/README.md
5+
checksum: 67721902ddcb841f6059e77e27d6d99612249cfec3d58e42dbfdfdb636ca271a
46
version: '1.0'

eslint.config.base.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import tseslint from 'typescript-eslint';
2+
3+
export const typescriptConfig = tseslint.configs.recommended;
4+
5+
export const baseRules = {
6+
eqeqeq: ['error', 'smart'],
7+
'id-match': 'error',
8+
'no-eval': 'error',
9+
'no-var': 'error',
10+
'@typescript-eslint/no-unused-vars': ['error', { args: 'none' }],
11+
'@typescript-eslint/prefer-namespace-keyword': 'error',
12+
semi: 'off',
13+
'@typescript-eslint/no-redeclare': 'off',
14+
'@typescript-eslint/no-explicit-any': 'off',
15+
};

packages/contentstack-auth/.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/contentstack-auth/.eslintrc

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { typescriptConfig, baseRules } from '../../eslint.config.base.js';
2+
3+
export default [
4+
...typescriptConfig,
5+
{
6+
files: ['src/**/*.ts'],
7+
rules: {
8+
...baseRules,
9+
'@typescript-eslint/ban-types': 'off',
10+
'@typescript-eslint/quotes': 'off',
11+
'@typescript-eslint/type-annotation-spacing': 'off',
12+
},
13+
},
14+
{
15+
ignores: ['lib/**'],
16+
},
17+
];

packages/contentstack-auth/package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-auth",
33
"description": "Contentstack CLI plugin for authentication activities",
4-
"version": "2.0.0-beta.11",
4+
"version": "2.0.0-beta.12",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"scripts": {
@@ -15,10 +15,9 @@
1515
"lint": "eslint src/**/*.ts"
1616
},
1717
"dependencies": {
18-
"@contentstack/cli-command": "~2.0.0-beta.6",
19-
"@contentstack/cli-utilities": "~2.0.0-beta.7",
18+
"@contentstack/cli-command": "~2.0.0-beta.7",
19+
"@contentstack/cli-utilities": "~2.0.0-beta.8",
2020
"@oclif/core": "^4.10.5",
21-
"@oclif/plugin-help": "^6.2.44",
2221
"otplib": "^12.0.1"
2322
},
2423
"overrides": {
@@ -27,20 +26,18 @@
2726
}
2827
},
2928
"devDependencies": {
30-
"@fancy-test/nock": "^0.1.1",
31-
"@oclif/plugin-help": "^6.2.44",
32-
"@oclif/test": "^4.1.18",
29+
"@oclif/test": "^4.1.13",
3330
"@types/chai": "^4.3.20",
34-
"@types/mkdirp": "^1.0.2",
3531
"@types/mocha": "^8.2.3",
3632
"@types/node": "^14.18.63",
3733
"@types/sinon": "^21.0.1",
3834
"chai": "^4.5.0",
39-
"dotenv": "^16.6.1",
40-
"eslint": "^8.57.1",
35+
"dotenv": "^16.4.7",
36+
"eslint": "^9.26.0",
4137
"eslint-config-oclif": "^5.2.2",
4238
"eslint-config-oclif-typescript": "^3.1.14",
4339
"mocha": "10.8.2",
40+
"nock": "^13.5.6",
4441
"nyc": "^15.1.0",
4542
"oclif": "^4.23.0",
4643
"sinon": "^21.1.2",

packages/contentstack-auth/src/interfaces/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line @typescript-eslint/no-redeclare
21
export interface AuthOptions {
32
contentstackClient: any;
43
}

packages/contentstack-command/.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/contentstack-command/.eslintrc

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)