File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ The following patterns are **not** considered problems with default config;
37
37
// valid with filename: src/app/awesomeModule/beautifulDirective.js
38
38
app.directive('beautifulDirective', function() {});
39
39
40
+ // valid with filename: src/app/awesomeModule/beautifulComponent.js
41
+ app.component('beautifulComponent', {});
42
+
40
43
The following patterns are considered problems when configured ` {"typeSeparator":"dot"} ` :
41
44
42
45
/*eslint angular/file-name: [2,{"typeSeparator":"dot"}]*/
@@ -110,6 +113,16 @@ The following patterns are **not** considered problems when configured `{"typeSe
110
113
// valid with filename: src/app/userUtils.service.js
111
114
angular.factory('uiUserUtils', uiUserUtils)
112
115
116
+ The following patterns are ** not** considered problems when configured ` {"typeSeparator":"dot","ignorePrefix":"ui."} ` :
117
+
118
+ /*eslint angular/file-name: [2,{"typeSeparator":"dot","ignorePrefix":"ui."}]*/
119
+
120
+ // valid with filename: src/app/userUtils.service.js
121
+ angular.factory('ui.UserUtils', uiUserUtils)
122
+
123
+ // valid with filename: src/app/utils.module.js
124
+ angular.module('ui.utils', function(){})
125
+
113
126
## Version
114
127
115
128
This rule was introduced in eslint-plugin-angular 0.7.0
You can’t perform that action at this time.
0 commit comments