@chris.araneo/eslint-config 0.0.135 → 0.0.136
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.
|
@@ -3,40 +3,43 @@ import angular from 'angular-eslint';
|
|
|
3
3
|
import { match } from 'ts-pattern';
|
|
4
4
|
export const getAngularSourcesConfigs = ({ prefix, sources, } = {}) => match(sources?.length ?? 0)
|
|
5
5
|
.with(0, () => [])
|
|
6
|
-
.otherwise(() =>
|
|
7
|
-
...config
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
.otherwise(() => [
|
|
7
|
+
...angular.configs.tsAll.map((config) => ({
|
|
8
|
+
...config,
|
|
9
|
+
files: sources,
|
|
10
|
+
})),
|
|
11
|
+
{
|
|
12
|
+
files: sources,
|
|
13
|
+
plugins: {
|
|
14
|
+
'@chris.araneo/ng-perfectionist': ngPerfectionist,
|
|
15
|
+
},
|
|
16
|
+
rules: {
|
|
17
|
+
'@angular-eslint/component-selector': [
|
|
18
|
+
'error',
|
|
19
|
+
{
|
|
20
|
+
prefix: prefix ?? 'app',
|
|
21
|
+
style: 'kebab-case',
|
|
22
|
+
type: 'element',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
'@angular-eslint/directive-selector': [
|
|
26
|
+
'error',
|
|
27
|
+
{
|
|
28
|
+
prefix: prefix ?? 'app',
|
|
29
|
+
style: 'camelCase',
|
|
30
|
+
type: 'attribute',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
'@angular-eslint/no-forward-ref': 'off',
|
|
34
|
+
'@angular-eslint/prefer-on-push-component-change-detection': 'off',
|
|
35
|
+
'@angular-eslint/prefer-output-emitter-ref': 'off',
|
|
36
|
+
'@angular-eslint/prefer-signals': 'off',
|
|
37
|
+
'@chris.araneo/ng-perfectionist/sort-component-imports': 'error',
|
|
38
|
+
'@chris.araneo/ng-perfectionist/sort-component-style-urls': 'error',
|
|
39
|
+
'@chris.araneo/ng-perfectionist/sort-ng-module-declarations': 'error',
|
|
40
|
+
'@chris.araneo/ng-perfectionist/sort-ng-module-exports': 'error',
|
|
41
|
+
'@chris.araneo/ng-perfectionist/sort-ng-module-imports': 'error',
|
|
42
|
+
},
|
|
12
43
|
},
|
|
13
|
-
|
|
14
|
-
...config.rules,
|
|
15
|
-
'@angular-eslint/component-selector': [
|
|
16
|
-
'error',
|
|
17
|
-
{
|
|
18
|
-
prefix: prefix ?? 'app',
|
|
19
|
-
style: 'kebab-case',
|
|
20
|
-
type: 'element',
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
'@angular-eslint/directive-selector': [
|
|
24
|
-
'error',
|
|
25
|
-
{
|
|
26
|
-
prefix: prefix ?? 'app',
|
|
27
|
-
style: 'camelCase',
|
|
28
|
-
type: 'attribute',
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
'@angular-eslint/no-forward-ref': 'off',
|
|
32
|
-
'@angular-eslint/prefer-on-push-component-change-detection': 'off',
|
|
33
|
-
'@angular-eslint/prefer-output-emitter-ref': 'off',
|
|
34
|
-
'@angular-eslint/prefer-signals': 'off',
|
|
35
|
-
'@chris.araneo/ng-perfectionist/sort-component-imports': 'error',
|
|
36
|
-
'@chris.araneo/ng-perfectionist/sort-component-style-urls': 'error',
|
|
37
|
-
'@chris.araneo/ng-perfectionist/sort-ng-module-declarations': 'error',
|
|
38
|
-
'@chris.araneo/ng-perfectionist/sort-ng-module-exports': 'error',
|
|
39
|
-
'@chris.araneo/ng-perfectionist/sort-ng-module-imports': 'error',
|
|
40
|
-
},
|
|
41
|
-
})));
|
|
44
|
+
]);
|
|
42
45
|
//# sourceMappingURL=angular-eslint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-eslint.js","sourceRoot":"/","sources":["src/angular/angular-eslint.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,8CAA8C,CAAC;AAC3E,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAOnC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EACvC,MAAM,EACN,OAAO,MACE,EAAE,EAAmB,EAAE,CAChC,KAAK,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,CAAC;KACxB,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;KACjB,SAAS,CAAC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"angular-eslint.js","sourceRoot":"/","sources":["src/angular/angular-eslint.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,8CAA8C,CAAC;AAC3E,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAOnC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EACvC,MAAM,EACN,OAAO,MACE,EAAE,EAAmB,EAAE,CAChC,KAAK,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,CAAC;KACxB,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;KACjB,SAAS,CAAC,GAAG,EAAE,CAAC;IACf,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAC1B,CAAC,MAAM,EAAE,EAAE,CACT,CAAC;QACC,GAAG,MAAM;QACT,KAAK,EAAE,OAAO;KACf,CAAkB,CACtB;IACD;QACE,KAAK,EAAE,OAAO;QACd,OAAO,EAAE;YACP,gCAAgC,EAAE,eAAe;SAClD;QACD,KAAK,EAAE;YACL,oCAAoC,EAAE;gBACpC,OAAO;gBACP;oBACE,MAAM,EAAE,MAAM,IAAI,KAAK;oBACvB,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,oCAAoC,EAAE;gBACpC,OAAO;gBACP;oBACE,MAAM,EAAE,MAAM,IAAI,KAAK;oBACvB,KAAK,EAAE,WAAW;oBAClB,IAAI,EAAE,WAAW;iBAClB;aACF;YACD,gCAAgC,EAAE,KAAK;YACvC,2DAA2D,EAAE,KAAK;YAClE,2CAA2C,EAAE,KAAK;YAClD,gCAAgC,EAAE,KAAK;YACvC,uDAAuD,EAAE,OAAO;YAChE,0DAA0D,EAAE,OAAO;YACnE,4DAA4D,EAAE,OAAO;YACrE,uDAAuD,EAAE,OAAO;YAChE,uDAAuD,EAAE,OAAO;SACjE;KACF;CACF,CAAC,CAAC"}
|