-
Notifications
You must be signed in to change notification settings - Fork 131
/
file-name.js
74 lines (46 loc) · 3.82 KB
/
file-name.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// example - valid: true, filename: "myModule.js"
angular.module('myModule', []);
// example - valid: true, filename: "app/SomeController.js"
app.controller('SomeController', function() {});
// example - valid: true, filename: "app/utils/myUtils.js"
app.factory('myUtils', function() {});
// example - valid: true, filename: "src/app/awesomeModule/beautifulDirective.js"
app.directive('beautifulDirective', function() {});
// example - valid: true, filename: "src/app/awesomeModule/beautifulComponent.js"
app.component('beautifulComponent', {});
// example - valid: false, filename: "src/app/filters.js", errorMessage: "Filename must be \"usefulFilter.js\""
app.filter('usefulFilter', function() {});
// example - valid: true, options: [{"typeSeparator":"dot"}], filename: "src/app/usefulFilter.filter.js"
app.filter('usefulFilter', function() {});
// example - valid: false, options: [{"typeSeparator":"dot"}], filename: "src/app/Some.controller.js", errorMessage: "Filename must be \"SomeController.controller.js\""
app.controller('SomeController', function() {});
// example - valid: true, options: [{"typeSeparator":"dash"}], filename: "app/utils/myUtils-service.js"
app.factory('myUtils', function() {});
// example - valid: true, options: [{"typeSeparator":"underscore"}], filename: "src/app/awesomeModule/beautifulDirective_directive.js"
app.directive('beautifulDirective', function() {});
// example - valid: true, options: [{"typeSeparator":"dot", "ignoreTypeSuffix": true}], filename: "src/app/useful.filter.js"
app.filter('usefulFilter', function() {});
// example - valid: true, options: [{"typeSeparator":"dot", "ignoreTypeSuffix": true}], filename: "src/app/Some.controller.js"
app.controller('SomeController', function() {});
// example - valid: true, options: [{"typeSeparator":"dash", "ignoreTypeSuffix": true}], filename: "app/utils/myUtils-service.js"
app.factory('myUtils', function() {});
// example - valid: true, options: [{"typeSeparator":"underscore", "ignoreTypeSuffix": true}], filename: "src/app/awesomeModule/beautiful_directive.js"
app.directive('beautifulDirective', function() {});
// example - valid: true, options: [{"typeSeparator":"underscore", "nameStyle": "underscore"}], filename: "src/app/tab_navigation_directive.js"
app.directive('tabNavigation', function() {});
// example - valid: true, options: [{"typeSeparator":"dot", "nameStyle": "dash", "ignoreTypeSuffix": true}], filename: "src/app/user-profile.directive.js"
app.directive('userProfileDirective', function() {});
// example - valid: true, options: [{"typeSeparator":"dot", "ignorePrefix": "ui"}], filename: "src/app/userUtils.service.js"
angular.factory('uiUserUtils', uiUserUtils);
// example - valid: true, options: [{"typeSeparator":"dot", "ignorePrefix": "ui."}], filename: "src/app/userUtils.service.js"
angular.factory('ui.UserUtils', uiUserUtils);
// example - valid: true, options: [{"typeSeparator":"dot", "ignorePrefix": "ui."}], filename: "src/app/utils.module.js"
angular.module('ui.utils', function(){});
// example - valid: true, options: [{"typeSeparator":"dot", "ignorePrefix": "/^ui./"}], filename: "src/app/utils.module.js"
angular.module('ui.utils', function(){});
// example - valid: true, options: [{"typeSeparator":"dot", "componentTypeMappings": {"factory": "factory", "provider": "provider"}}], filename: "src/app/users.factory.js"
angular.factory('users', function(){});
// example - valid: true, options: [{"typeSeparator":"dot", "componentTypeMappings": {"factory": "factory", "provider": "provider"}}], filename: "src/app/users.provider.js"
angular.provider('users', function(){});
// example - valid: false, options: [{"typeSeparator":"dot", "componentTypeMappings": {"factory": "factory", "provider": "provider"}}], filename: "src/app/users.service.js", errorMessage: "Filename must be \"users.provider.js\""
angular.provider('users', function(){});