Skip to content

Commit 1dce052

Browse files
committed
fix(JS): Rename CommonJS scripts to .cjs extension, keep type: module as the project default. Update and fix ESLint configuration.
- Renames JavaScript files in flux-build-scripts and api-docs/openapi/plugins to .cjs file extension to declare them as CommonJS module syntax.
1 parent f53eaf8 commit 1dce052

30 files changed

+1358
-177
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
command: cd api-docs && bash generate-api-docs.sh
3232
- run:
3333
name: Inject Flux stdlib frontmatter
34-
command: node ./flux-build-scripts/inject-flux-stdlib-frontmatter.js
34+
command: node ./flux-build-scripts/inject-flux-stdlib-frontmatter.cjs
3535
- run:
3636
name: Update Flux/InfluxDB versions
37-
command: node ./flux-build-scripts/update-flux-versions.js
37+
command: node ./flux-build-scripts/update-flux-versions.cjs
3838
- save_cache:
3939
key: install-{{ .Environment.CACHE_VERSION }}-{{ checksum ".circleci/config.yml" }}
4040
paths:

api-docs/.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins:
2-
- './../openapi/plugins/docs-plugin.js'
2+
- './../openapi/plugins/docs-plugin.cjs'
33
extends:
44
- recommended
55
- docs/all

api-docs/influxdb/cloud/.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins:
2-
- '../../openapi/plugins/docs-plugin.js'
2+
- '../../openapi/plugins/docs-plugin.cjs'
33
extends:
44
- recommended
55
- docs/all

api-docs/influxdb/v2/.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins:
2-
- '../../openapi/plugins/docs-plugin.js'
2+
- '../../openapi/plugins/docs-plugin.cjs'
33
extends:
44
- recommended
55
- docs/all

api-docs/influxdb3/cloud-dedicated/.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins:
2-
- '../../openapi/plugins/docs-plugin.js'
2+
- '../../openapi/plugins/docs-plugin.cjs'
33
extends:
44
- recommended
55
- docs/all

api-docs/influxdb3/cloud-serverless/.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins:
2-
- '../../openapi/plugins/docs-plugin.js'
2+
- '../../openapi/plugins/docs-plugin.cjs'
33
extends:
44
- recommended
55
- docs/all

api-docs/influxdb3/clustered/.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins:
2-
- '../../openapi/plugins/docs-plugin.js'
2+
- '../../openapi/plugins/docs-plugin.cjs'
33
extends:
44
- recommended
55
- docs/all

api-docs/influxdb3/core/.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins:
2-
- '../../openapi/plugins/docs-plugin.js'
2+
- '../../openapi/plugins/docs-plugin.cjs'
33
extends:
44
- recommended
55
- docs/all

api-docs/influxdb3/enterprise/.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins:
2-
- '../../openapi/plugins/docs-plugin.js'
2+
- '../../openapi/plugins/docs-plugin.cjs'
33
extends:
44
- recommended
55
- docs/all

0 commit comments

Comments
 (0)