Skip to content

Commit

Permalink
update eslintignore and lint all clients
Browse files Browse the repository at this point in the history
  • Loading branch information
apinkert committed Jan 30, 2024
1 parent badf70c commit 75b6cf2
Show file tree
Hide file tree
Showing 25 changed files with 461 additions and 574 deletions.
7 changes: 6 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
node_modules
node_modules
**/base.ts
**/api.ts
**/configuration.ts
**/index.ts
**/*.d.ts
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"test": "npm-run-all --parallel test:*",
"build": "nx run-many -t build",
"lint": "nx run-many -t lint",
"lint:fix": "nx run-many -t lint --fix",
"version": "nx run-many -t version --dryRun"
},
"workspaces": [
Expand Down
50 changes: 25 additions & 25 deletions packages/approval/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "@redhat-cloud-services/approval-client",
"version": "1.2.13",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/approval-api/master/public/doc/openapi-3-v1.2.json' npm run generate"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
"name": "@redhat-cloud-services/approval-client",
"version": "1.2.13",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/approval-api/master/public/doc/openapi-3-v1.2.json' npm run generate"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/build-utils/executors.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"description": "builder executor"
}
}
}
}
2 changes: 0 additions & 2 deletions packages/build-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"version": "0.0.1",
"dependencies": {
"@nx/devkit": "17.1.3",
"build-utils": "^2.0.12",
"jest": "^29.7.0",
"semver": "^7.5.4",
"tslib": "^2.0.0",
"zod": "^3.22.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ describe('Builder Executor', () => {
const output = await executor(options, {} as ExecutorContext);
expect(output.success).toBe(true);
});
});
});
2 changes: 1 addition & 1 deletion packages/build-utils/src/executors/builder/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ export default async function runExecutor(options: BuilderExecutorSchemaType, co
return {
success: true,
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ describe('SyncDependencies Executor', () => {
it('can run', async () => {
expect(true).toBe(true);
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ export default async function syncDependencies(options: SyncDependenciesExecutor
console.error(error);
return { success: false };
}
}
}
50 changes: 25 additions & 25 deletions packages/catalog/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "@redhat-cloud-services/catalog-client",
"version": "1.2.14",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/catalog-api/master/public/doc/openapi-3-v1.3.json' npm run generate"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
"name": "@redhat-cloud-services/catalog-client",
"version": "1.2.14",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/catalog-api/master/public/doc/openapi-3-v1.3.json' npm run generate"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
}
56 changes: 28 additions & 28 deletions packages/config-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "@redhat-cloud-services/config-manager-client",
"version": "1.2.13",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/config-manager/master/internal/http/v2/openapi.json' npm run generate"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
"name": "@redhat-cloud-services/config-manager-client",
"version": "1.2.13",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/config-manager/master/internal/http/v2/openapi.json' npm run generate"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
}
56 changes: 28 additions & 28 deletions packages/entitlements/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "@redhat-cloud-services/entitlements-client",
"version": "1.2.13",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/entitlements-api/master/swagger/api.spec.json' npm run generate"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
"name": "@redhat-cloud-services/entitlements-client",
"version": "1.2.13",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/entitlements-api/master/swagger/api.spec.json' npm run generate"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
}
50 changes: 25 additions & 25 deletions packages/host-inventory/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "@redhat-cloud-services/host-inventory-client",
"version": "1.2.13",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/insights-host-inventory/master/swagger/api.spec.yaml' npm run generate"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
"name": "@redhat-cloud-services/host-inventory-client",
"version": "1.2.13",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/insights-host-inventory/master/swagger/api.spec.yaml' npm run generate"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
}
56 changes: 28 additions & 28 deletions packages/insights/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "@redhat-cloud-services/insights-client",
"version": "1.2.14",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://cloud.redhat.com/api/insights/v1/openapi.json' npm run generate && ./postProcess.sh"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
"name": "@redhat-cloud-services/insights-client",
"version": "1.2.14",
"description": "",
"main": "./index.js",
"module": "./esm/index.js",
"typings": "./index.d.ts",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RedHatInsights/javascript-clients.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/RedHatInsights/javascript-clients/issues"
},
"homepage": "https://github.com/RedHatInsights/javascript-clients#readme",
"scripts": {
"doc": "typedoc --theme markdown --out doc --gitRevision master index.ts",
"generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file",
"generate:prod": "SPEC='https://cloud.redhat.com/api/insights/v1/openapi.json' npm run generate && ./postProcess.sh"
},
"dependencies": {
"axios": "^0.27.2",
"tslib": "^2.6.2"
}
}
Loading

0 comments on commit 75b6cf2

Please sign in to comment.