eslint-config-angular-strict 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +17 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -110,15 +110,28 @@ export default [
|
|
|
110
110
|
{
|
|
111
111
|
accessorPairPositioning: 'getThenSet',
|
|
112
112
|
order: [
|
|
113
|
-
|
|
114
|
-
{
|
|
113
|
+
// Decorated properties (@Input, @Output, @ViewChild, etc.)
|
|
114
|
+
{ groupByDecorator: '/.*/', type: 'property', sort: 'alphabetical' },
|
|
115
|
+
// Static properties
|
|
116
|
+
{ accessibility: 'public', static: true, type: 'property', sort: 'alphabetical' },
|
|
117
|
+
{ accessibility: 'private', static: true, type: 'property', sort: 'alphabetical' },
|
|
118
|
+
// Instance properties
|
|
119
|
+
{ accessibility: 'public', static: false, type: 'property', sort: 'alphabetical' },
|
|
120
|
+
{ accessibility: 'private', static: false, type: 'property', sort: 'alphabetical' },
|
|
121
|
+
// Constructor
|
|
115
122
|
'constructor',
|
|
123
|
+
// Angular lifecycle methods (ng*)
|
|
116
124
|
{ name: '/^ng/', type: 'method', sort: 'alphabetical' },
|
|
125
|
+
// Accessors
|
|
117
126
|
'[accessor-pairs]',
|
|
118
127
|
{ kind: 'get', sort: 'alphabetical' },
|
|
119
128
|
{ kind: 'set', sort: 'alphabetical' },
|
|
120
|
-
|
|
121
|
-
{ static:
|
|
129
|
+
// Static methods
|
|
130
|
+
{ accessibility: 'public', static: true, type: 'method', sort: 'alphabetical' },
|
|
131
|
+
{ accessibility: 'private', static: true, type: 'method', sort: 'alphabetical' },
|
|
132
|
+
// Instance methods
|
|
133
|
+
{ accessibility: 'public', static: false, type: 'method', sort: 'alphabetical' },
|
|
134
|
+
{ accessibility: 'private', static: false, type: 'method', sort: 'alphabetical' },
|
|
122
135
|
],
|
|
123
136
|
},
|
|
124
137
|
],
|