@@ -35,6 +35,15 @@ module.exports = {
3535 }
3636 } ,
3737 rules : {
38+ 'no-warning-comments' : [ 'error' , { 'terms' : [ 'todo' , 'fixme' ] , 'location' : 'anywhere' } ] ,
39+ 'no-console' : 'error' ,
40+
41+ /**
42+ * Declaration sort is handled by import/order rule.
43+ * This rule handles order within {}-brackets only.
44+ */
45+ 'sort-imports' : [ 'error' , { 'ignoreDeclarationSort' : true } ] ,
46+
3847 'rxjs-angular/prefer-async-pipe' : 'error' ,
3948 'rxjs-angular/prefer-composition' : 'error' ,
4049 'rxjs-angular/prefer-takeuntil' : 'error' ,
@@ -65,8 +74,19 @@ module.exports = {
6574 // '@angular-eslint/require-localize-metadata': 'error', // TODO: Error
6675 '@angular-eslint/use-component-selector' : 'error' ,
6776
68- 'no-warning-comments' : [ 'error' , { 'terms' : [ 'todo' , 'fixme' ] , 'location' : 'anywhere' } ] ,
69- 'no-console' : 'error' ,
77+ 'import/no-absolute-path' : 'error' ,
78+ 'import/newline-after-import' : [ 'error' , { 'count' : 1 } ] ,
79+ 'import/order' : [
80+ 'error' ,
81+ {
82+ 'groups' : [ 'builtin' , 'external' , 'parent' , 'sibling' , 'index' ] ,
83+ 'newlines-between' : 'always' ,
84+ 'alphabetize' : {
85+ 'order' : 'asc' ,
86+ 'caseInsensitive' : true
87+ }
88+ }
89+ ] ,
7090 } ,
7191 } ,
7292 {
0 commit comments