Skip to content

Commit 305a8c7

Browse files
alan-agius4clydin
authored andcommitted
test: use ng-dev tool to format bazel files
(cherry picked from commit 89eb50a)
1 parent 30ac7a4 commit 305a8c7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.ng-dev/format.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ export const format: FormatConfig = {
77
'prettier': {
88
matchers: ['**/*.{ts,js,json,yml,yaml,md}'],
99
},
10+
'buildifier': true,
1011
};

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
],
2121
"scripts": {
2222
"admin": "node ./bin/devkit-admin",
23-
"bazel:format": "find . -type f \\( -name \"*.bzl\" -or -name WORKSPACE -or -name BUILD -or -name BUILD.bazel \\) ! -path \"*/node_modules/*\" | xargs buildifier -v --warnings=attr-cfg,attr-license,attr-non-empty,attr-output-default,attr-single-file,constant-glob,ctx-args,depset-iteration,depset-union,dict-concatenation,duplicated-name,filetype,git-repository,http-archive,integer-division,load,load-on-top,native-build,native-package,output-group,package-name,package-on-top,positional-args,redefined-variable,repository-name,same-origin-load,string-iteration,unused-variable",
24-
"bazel:lint": "yarn bazel:format --lint=warn",
25-
"bazel:lint-fix": "yarn bazel:format --lint=fix",
2623
"bazel:test": "bazel test //packages/... //goldens/public-api/... ",
2724
"build": "node ./bin/devkit-admin build",
2825
"build-tsc": "tsc -p tsconfig.json",

0 commit comments

Comments
 (0)