Skip to content

Commit

Permalink
chore: follow-up to remove the other eslint_test in next.js example
Browse files Browse the repository at this point in the history
I just missed this in the previous PR.
  • Loading branch information
alexeagle committed Dec 6, 2023
1 parent 53d1344 commit 6edace9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
2 changes: 1 addition & 1 deletion frontend/next.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "bazel build next",
"export": "bazel build next_export",
"start": "ibazel run next_start",
"lint": "bazel build --config=lint //next.js/pages:all",
"lint": "bazel build --config=lint //next.js/pages/...",
"test": "bazel test ... --test_lang_filters=jest --build_tests_only"
},
"dependencies": {
Expand Down
24 changes: 1 addition & 23 deletions frontend/next.js/pages/api/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,34 +1,12 @@
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")
load("@npm//next.js:eslint/package_json.bzl", eslint_bin = "bin")

SRCS = [
"hello.ts",
]

ts_project(
name = "api",
srcs = SRCS,
srcs = ["hello.ts"],
declaration = True,
resolve_json_module = True,
transpiler = "tsc",
tsconfig = "//next.js:tsconfig",
visibility = ["//next.js/pages:__subpackages__"],
deps = ["//next.js:node_modules/next"],
)

eslint_bin.eslint_test(
name = "eslint_test",
args = [
"--config $(location //next.js:eslintrc)",
] + ["{}/{}".format(
package_name(),
s,
) for s in SRCS],
data = SRCS + [
"//next.js:eslintrc",
"//next.js:node_modules/@next/eslint-plugin-next",
"//next.js:node_modules/eslint-config-next",
"//next.js:node_modules/next",
],
tags = ["lint"],
)

0 comments on commit 6edace9

Please sign in to comment.