Skip to content

Commit

Permalink
refactor(lint-rules): move tslint-rules into a lint-rules directory
Browse files Browse the repository at this point in the history
This is being done in preperation of including style lint rules in dev-infra as well.

Breaking Change: tslint rules are now imported from @angular/build-tooling/lint-rules/tslint
  • Loading branch information
josephperrott committed Feb 17, 2023
1 parent 33d813f commit dc08392
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .ng-dev/commit-message.mts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const commitMessage: CommitMessageConfig = {
'ts-circular-dependencies',
]),
...buildScopesFor('apps', []),
...buildScopesFor('tslint-rules', []),
...buildScopesFor('lint-rules', ['tslint']),
...buildScopesFor('shared-scripts', []),
...buildScopesFor('circleci-orb', []),
],
Expand Down
4 changes: 2 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ pkg_npm(
"tsconfig.json",
":index.bzl",
"//bazel:static_files",
"//lint-rules/tslint:static_files",
"//shared-scripts:static_files",
"//tslint-rules:static_files",
],
substitutions = NPM_PACKAGE_SUBSTITUTIONS,
deps = [
"//tslint-rules:lib",
"//lint-rules/tslint:lib",
],
)
# END-INTERNAL
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ basePackageSubstitutions = {
"rlocation \"dev-infra/": "rlocation \"npm/@angular/build-tooling/",
"//bazel/": "@npm//@angular/build-tooling/bazel/",
"//bazel:": "@npm//@angular/build-tooling/bazel:",
"//tslint-rules/": "@npm//@angular/build-tooling/tslint-rules/",
"//tslint-rules:": "@npm//@angular/build-tooling/tslint-rules:",
"//lint-rules/tslint/": "@npm//@angular/build-tooling/tslint/",
"//lint-rules/tslint:": "@npm//@angular/build-tooling/tslint:",
"//shared-scripts/": "@npm//@angular/build-tooling/shared-scripts/",
"//shared-scripts:": "@npm//@angular/build-tooling/shared-scripts:",
"//:tsconfig.json": "@npm//@angular/build-tooling:tsconfig.json",
Expand All @@ -36,5 +36,5 @@ BZL_DEFAULTS_ALLOW_PACKAGES = [
"github-actions",
"ng-dev",
"tools",
"tslint-rules",
"lint-rules/tslint",
]
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/6049f681741399cf73aea088680f58375c12592a/src/schemas/json/tslint.json",
"rulesDirectory": ["./tslint-rules"],
"rulesDirectory": ["./lint-rules/tslint"],
"rules": {
"ts-node-loader": true,
"no-shadowed-variable": true,
Expand Down

0 comments on commit dc08392

Please sign in to comment.