Skip to content

Commit 476f555

Browse files
committed
chore: move typescript config to new package
1 parent 70047c5 commit 476f555

File tree

195 files changed

+1906
-400
lines changed

Some content is hidden

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

195 files changed

+1906
-400
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: pnpm install --frozen-lockfile
2626

2727
- name: Run linter
28-
run: pnpm xo
28+
run: pnpm -r xo
2929

3030
check-ts:
3131
name: Run typescript checks

clients/amazon-warehousing-and-distribution-api-2024-05-09/package.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"dist/**/*.d.ts"
1919
],
2020
"scripts": {
21+
"xo": "xo",
2122
"check:ts": "tsc --noEmit",
2223
"build:cjs": "tsc -p tsconfig.json",
2324
"build:es": "tsc -p tsconfig.es.json",
@@ -29,7 +30,7 @@
2930
"axios": "^1.11.0"
3031
},
3132
"devDependencies": {
32-
"@sp-api-sdk/auth": "workspace:*"
33+
"@sp-api-sdk/typescript-config": "workspace:*"
3334
},
3435
"repository": {
3536
"type": "git",
@@ -49,5 +50,26 @@
4950
"sp api",
5051
"sp sdk",
5152
"amazon warehousing and distribution api"
52-
]
53+
],
54+
"xo": {
55+
"extends": [
56+
"xo-bizon"
57+
],
58+
"settings": {
59+
"import/internal-regex": "^@sp-api-sdk/"
60+
},
61+
"semicolon": false,
62+
"space": 2,
63+
"prettier": true,
64+
"ignores": [
65+
"src/api-model/**"
66+
],
67+
"rules": {
68+
"unicorn/prevent-abbreviations": "off"
69+
}
70+
},
71+
"prettier": {
72+
"printWidth": 100,
73+
"jsxSingleQuote": true
74+
}
5375
}

clients/amazon-warehousing-and-distribution-api-2024-05-09/tsconfig.es.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "../../tsconfig.es.json",
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "@sp-api-sdk/typescript-config/esm.json",
34
"compilerOptions": {
45
"outDir": "dist/es"
56
},

clients/amazon-warehousing-and-distribution-api-2024-05-09/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "@sp-api-sdk/typescript-config/commonjs.json",
34
"compilerOptions": {
45
"rootDir": "src",
56
"declarationDir": "dist/types",

clients/aplus-content-api-2020-11-01/package.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"dist/**/*.d.ts"
1919
],
2020
"scripts": {
21+
"xo": "xo",
2122
"check:ts": "tsc --noEmit",
2223
"build:cjs": "tsc -p tsconfig.json",
2324
"build:es": "tsc -p tsconfig.es.json",
@@ -29,7 +30,7 @@
2930
"axios": "^1.11.0"
3031
},
3132
"devDependencies": {
32-
"@sp-api-sdk/auth": "workspace:*"
33+
"@sp-api-sdk/typescript-config": "workspace:*"
3334
},
3435
"repository": {
3536
"type": "git",
@@ -49,5 +50,26 @@
4950
"sp api",
5051
"sp sdk",
5152
"aplus content api"
52-
]
53+
],
54+
"xo": {
55+
"extends": [
56+
"xo-bizon"
57+
],
58+
"settings": {
59+
"import/internal-regex": "^@sp-api-sdk/"
60+
},
61+
"semicolon": false,
62+
"space": 2,
63+
"prettier": true,
64+
"ignores": [
65+
"src/api-model/**"
66+
],
67+
"rules": {
68+
"unicorn/prevent-abbreviations": "off"
69+
}
70+
},
71+
"prettier": {
72+
"printWidth": 100,
73+
"jsxSingleQuote": true
74+
}
5375
}

clients/aplus-content-api-2020-11-01/tsconfig.es.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "../../tsconfig.es.json",
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "@sp-api-sdk/typescript-config/esm.json",
34
"compilerOptions": {
45
"outDir": "dist/es"
56
},

clients/aplus-content-api-2020-11-01/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "@sp-api-sdk/typescript-config/commonjs.json",
34
"compilerOptions": {
45
"rootDir": "src",
56
"declarationDir": "dist/types",

clients/application-integrations-api-2024-04-01/package.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"dist/**/*.d.ts"
1919
],
2020
"scripts": {
21+
"xo": "xo",
2122
"check:ts": "tsc --noEmit",
2223
"build:cjs": "tsc -p tsconfig.json",
2324
"build:es": "tsc -p tsconfig.es.json",
@@ -29,7 +30,7 @@
2930
"axios": "^1.11.0"
3031
},
3132
"devDependencies": {
32-
"@sp-api-sdk/auth": "workspace:*"
33+
"@sp-api-sdk/typescript-config": "workspace:*"
3334
},
3435
"repository": {
3536
"type": "git",
@@ -49,5 +50,26 @@
4950
"sp api",
5051
"sp sdk",
5152
"application integrations api"
52-
]
53+
],
54+
"xo": {
55+
"extends": [
56+
"xo-bizon"
57+
],
58+
"settings": {
59+
"import/internal-regex": "^@sp-api-sdk/"
60+
},
61+
"semicolon": false,
62+
"space": 2,
63+
"prettier": true,
64+
"ignores": [
65+
"src/api-model/**"
66+
],
67+
"rules": {
68+
"unicorn/prevent-abbreviations": "off"
69+
}
70+
},
71+
"prettier": {
72+
"printWidth": 100,
73+
"jsxSingleQuote": true
74+
}
5375
}

clients/application-integrations-api-2024-04-01/tsconfig.es.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "../../tsconfig.es.json",
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "@sp-api-sdk/typescript-config/esm.json",
34
"compilerOptions": {
45
"outDir": "dist/es"
56
},

clients/application-integrations-api-2024-04-01/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "@sp-api-sdk/typescript-config/commonjs.json",
34
"compilerOptions": {
45
"rootDir": "src",
56
"declarationDir": "dist/types",

0 commit comments

Comments
 (0)