Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

daml-types.ts: Lint tests as well #4208

Merged
merged 2 commits into from
Jan 25, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
daml-types.ts: Lint tests as well
Also simplify file selection a bit.

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
hurryabit committed Jan 24, 2020
commit 56a68d0b55902aecc8f40c1fa48da4b3857f2a67
9 changes: 4 additions & 5 deletions language-support/ts/daml-types/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ load("@sdk_version//:sdk_version.bzl", "sdk_version")

ts_library(
name = "daml-types",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.test.ts"],
),
srcs = glob(["**/*.ts"]),
data = [
":LICENSE",
":package.json",
Expand All @@ -42,8 +39,10 @@ eslint_test(
name = "lint",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.test.ts"],
exclude = ["lib/**/*"],
),
data = ["tsconfig.json"],
tsconfig = "tsconfig.eslint.json",
)

pkg_npm(
Expand Down
2 changes: 1 addition & 1 deletion language-support/ts/daml-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
"project": "./tsconfig.eslint.json"
},
"plugins": [
"@typescript-eslint"
Expand Down
7 changes: 7 additions & 0 deletions language-support/ts/daml-types/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"files": [
"index.ts",
"index.test.ts"
]
}
6 changes: 1 addition & 5 deletions language-support/ts/daml-types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,5 @@
"declaration": true,
"sourceMap": true
},
"include": ["**/*.ts"],
"exclude": [
"**/*.test.ts",
"lib/**/*"
]
"files": ["index.ts"]
}