Skip to content

Commit eaa18a6

Browse files
author
naman-contentstack
committed
Merge v2-dev in feat/DX-8625
2 parents 512423d + 68e8c5a commit eaa18a6

69 files changed

Lines changed: 2546 additions & 3464 deletions

Some content is hidden

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

.talismanrc

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
fileignoreconfig:
22
- filename: pnpm-lock.yaml
3-
checksum: 1215ef6c0dfe2200186bb5d842d7fce7ee7d7ea5954224a38553e9c574b9f9da
3+
checksum: 49856e7bac5d502aea70519fb31c86e6a0deb6afdfdd911162dfd43188fe3938
4+
- filename: packages/contentstack-apps-cli/eslint.config.js
5+
checksum: 22e7f364a33612f0100f7b5f6e2f1d28491298cbaca1debf806cd0a988c8bb2c
6+
- filename: packages/contentstack-asset-management/eslint.config.js
7+
checksum: b951a153138f42ee34ab7c0e17827637e25e2d7cb89e150ba378ba533f6d23a7
8+
- filename: packages/contentstack-import-setup/eslint.config.js
9+
checksum: d487ec978f0dc2471c68c618bf77f9cc7feb1d745d4bb1d84c28f218f132a2b3
10+
- filename: packages/contentstack-import/eslint.config.js
11+
checksum: 2aeebb2c8d4836490b8aacdda15a9951df41a405c72d5758ef656fe8a31314cc
12+
- filename: packages/contentstack-export/eslint.config.js
13+
checksum: bb451c301e84929aca8c284cb74636de5fd851b18654e07d0eae5e88b0a729ac
14+
- filename: packages/contentstack-clone/eslint.config.js
15+
checksum: 148993140399d12ae033602585f84c06c6a04b0a96b8d7811303211543962ba7
16+
- filename: packages/contentstack-query-export/eslint.config.js
17+
checksum: b87cecdd9c351066fbda88fc5984a48cade05b227a5ce5fbb84aed36805bf9ed
18+
- filename: packages/contentstack-branches/eslint.config.js
19+
checksum: 7b043a59fc9c523d5f772c1b81d6d4b6c65fb7f8edb8df73e48ba821e7298f0b
20+
- filename: packages/contentstack-content-type/eslint.config.js
21+
checksum: 26da78717a38d8e7464a069626213dd3010efa6e50f91efbc996f26b18346948
422
version: '1.0'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"pnpm": "^10.28.0"
77
},
88
"engines": {
9-
"node": ">=18.0.0"
9+
"node": ">=22.0.0"
1010
},
1111
"private": true,
1212
"scripts": {

packages/contentstack-apps-cli/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/contentstack-apps-cli/.eslintrc

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import tseslint from 'typescript-eslint';
2+
import globals from 'globals';
3+
4+
export default [
5+
...tseslint.configs.recommended,
6+
{
7+
ignores: [
8+
'lib/**/*',
9+
'test/**/*',
10+
'dist/**/*',
11+
],
12+
},
13+
{
14+
languageOptions: {
15+
parser: tseslint.parser,
16+
parserOptions: {
17+
project: './tsconfig.json',
18+
},
19+
sourceType: 'module',
20+
globals: {
21+
...globals.node,
22+
},
23+
},
24+
plugins: {
25+
'@typescript-eslint': tseslint.plugin,
26+
},
27+
rules: {
28+
'@typescript-eslint/no-unused-vars': [
29+
'error',
30+
{
31+
args: 'none',
32+
},
33+
],
34+
'@typescript-eslint/prefer-namespace-keyword': 'error',
35+
quotes: 'off',
36+
semi: 'off',
37+
'@typescript-eslint/no-redeclare': 'off',
38+
eqeqeq: ['error', 'smart'],
39+
'id-match': 'error',
40+
'no-eval': 'error',
41+
'no-var': 'error',
42+
'@typescript-eslint/no-explicit-any': 'off',
43+
'@typescript-eslint/no-require-imports': 'off',
44+
'prefer-const': 'error',
45+
},
46+
},
47+
];

packages/contentstack-apps-cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"axios": "^1.16.1",
4747
"chai": "^4.5.0",
4848
"dotenv": "^16.6.1",
49-
"eslint": "^8.57.1",
49+
"eslint": "^10.5.0",
5050
"eslint-config-oclif": "^6.0.157",
5151
"eslint-config-oclif-typescript": "^3.1.14",
5252
"mocha": "^10.8.2",
@@ -80,7 +80,7 @@
8080
},
8181
"scripts": {
8282
"build": "npm run clean && shx rm -rf lib && tsc -b",
83-
"lint": "eslint . --ext .ts --config .eslintrc",
83+
"lint": "eslint .",
8484
"postpack": "shx rm -f oclif.manifest.json",
8585
"posttest": "npm run lint",
8686
"prepack": "npm run build && oclif manifest && oclif readme",
@@ -91,7 +91,7 @@
9191
"test:unit:report:json": "mocha --reporter json --reporter-options output=report.json --forbid-only \"test/unit/**/*.test.ts\" && nyc --reporter=clover --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
9292
},
9393
"engines": {
94-
"node": ">=16"
94+
"node": ">=22.0.0"
9595
},
9696
"bugs": "https://github.com/contentstack/cli-plugins/issues",
9797
"keywords": [

packages/contentstack-asset-management/.eslintrc

Lines changed: 0 additions & 54 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import tseslint from 'typescript-eslint';
2+
import globals from 'globals';
3+
import oclif from 'eslint-config-oclif-typescript';
4+
5+
export default [
6+
...tseslint.configs.recommended,
7+
oclif,
8+
{
9+
languageOptions: {
10+
parser: tseslint.parser,
11+
parserOptions: {
12+
project: './tsconfig.json',
13+
},
14+
sourceType: 'module',
15+
globals: {
16+
...globals.node,
17+
},
18+
},
19+
plugins: {
20+
'@typescript-eslint': tseslint.plugin,
21+
},
22+
rules: {
23+
'@typescript-eslint/no-unused-vars': [
24+
'error',
25+
{
26+
args: 'none',
27+
},
28+
],
29+
'@typescript-eslint/prefer-namespace-keyword': 'error',
30+
'@typescript-eslint/quotes': [
31+
'error',
32+
'single',
33+
{
34+
avoidEscape: true,
35+
allowTemplateLiterals: true,
36+
},
37+
],
38+
semi: 'off',
39+
'@typescript-eslint/type-annotation-spacing': 'error',
40+
'@typescript-eslint/no-redeclare': 'off',
41+
eqeqeq: ['error', 'smart'],
42+
'id-match': 'error',
43+
'no-eval': 'error',
44+
'no-var': 'error',
45+
quotes: 'off',
46+
indent: 'off',
47+
camelcase: 'off',
48+
'comma-dangle': 'off',
49+
'arrow-parens': 'off',
50+
'operator-linebreak': 'off',
51+
'object-curly-spacing': 'off',
52+
'node/no-missing-import': 'off',
53+
'padding-line-between-statements': 'off',
54+
'@typescript-eslint/ban-ts-ignore': 'off',
55+
'unicorn/no-abusive-eslint-disable': 'off',
56+
'unicorn/consistent-function-scoping': 'off',
57+
'@typescript-eslint/no-use-before-define': 'off',
58+
},
59+
},
60+
];

packages/contentstack-asset-management/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
"@types/node": "^20.17.50",
4949
"@types/sinon": "^17.0.4",
5050
"chai": "^4.4.1",
51-
"eslint": "^8.57.1",
51+
"eslint": "^10.5.0",
5252
"eslint-config-oclif": "^6.0.68",
5353
"mocha": "^10.8.2",
5454
"nyc": "^15.1.0",
5555
"oclif": "^4.23.8",
5656
"sinon": "^17.0.2",
5757
"source-map-support": "^0.5.21",
5858
"ts-node": "^10.9.2",
59-
"typescript": "^5.8.3"
59+
"typescript": "^5.9.3"
6060
}
6161
}

packages/contentstack-audit/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)