Skip to content

Commit 21a1ac0

Browse files
remove eslint (#264)
This change ensures compatibility with projects using CommonJS (require()) by removing the "type": "module" field from dgraph-js's package.json. --------- Co-authored-by: Ryan Fox-Tyler <60440289+ryanfoxtyler@users.noreply.github.com>
1 parent 20f8da7 commit 21a1ac0

File tree

7 files changed

+2
-11
lines changed

7 files changed

+2
-11
lines changed

.trunk/trunk.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ lint:
2727
- generated/**
2828
enabled:
2929
- trivy@0.59.1
30-
- eslint@9.19.0
3130
- actionlint@1.7.7
3231
- checkov@3.2.365
3332
- git-diff-check

examples/simple/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as dgraph from "dgraph-js"
2-
1+
const dgraph = require("dgraph-js")
32
// Drop All - discard all data, schema and start from a clean slate.
43
async function dropAll(dgraphClient) {
54
const op = new dgraph.Operation()

examples/simple/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "simple",
3-
"type": "module",
43
"dependencies": {
54
"dgraph-js": "^24.1.0",
65
"@grpc/grpc-js": "1.8.22"

examples/tls/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const fs = require('fs');
22
const path = require('path');
3-
4-
import * as dgraph from "dgraph-js";
3+
const dgraph = require("dgraph-js")
54

65
// Create a client stub.
76
function newClientStub() {

examples/tls/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "tls",
3-
"type": "module",
43
"dependencies": {
54
"dgraph-js": "^24.0.0"
65
},

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "24.1.0",
44
"description": "Official javascript client for Dgraph",
55
"license": "Apache-2.0",
6-
"type": "module",
76
"repository": {
87
"type": "git",
98
"url": "https://github.com/hypermodeinc/dgraph-js.git"
@@ -33,8 +32,6 @@
3332
"@trunkio/launcher": "^1.3.2",
3433
"@types/google-protobuf": "^3.15.12",
3534
"@types/node": "^22.10.5",
36-
"eslint": "^9.18.0",
37-
"@eslint/js": "^9.18.0",
3835
"grpc-tools": "^1.12.4",
3936
"jest": "^29.7.0",
4037
"ts-jest": "^29.2.5",

0 commit comments

Comments
 (0)