@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(() => angular.configs.tsAll.map((config) => ({
7
- ...config,
8
- files: sources,
9
- plugins: {
10
- ...config.plugins,
11
- '@chris.araneo/ng-perfectionist': ngPerfectionist,
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
- rules: {
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,CACd,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CACvB,CAAC,MAAM,EAAE,EAAE,CACT,CAAC;IACC,GAAG,MAAM;IACT,KAAK,EAAE,OAAO;IACd,OAAO,EAAE;QACP,GAAG,MAAM,CAAC,OAAO;QACjB,gCAAgC,EAAE,eAAe;KAClD;IACD,KAAK,EAAE;QACL,GAAG,MAAM,CAAC,KAAK;QACf,oCAAoC,EAAE;YACpC,OAAO;YACP;gBACE,MAAM,EAAE,MAAM,IAAI,KAAK;gBACvB,KAAK,EAAE,YAAY;gBACnB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,oCAAoC,EAAE;YACpC,OAAO;YACP;gBACE,MAAM,EAAE,MAAM,IAAI,KAAK;gBACvB,KAAK,EAAE,WAAW;gBAClB,IAAI,EAAE,WAAW;aAClB;SACF;QACD,gCAAgC,EAAE,KAAK;QACvC,2DAA2D,EACzD,KAAK;QACP,2CAA2C,EAAE,KAAK;QAClD,gCAAgC,EAAE,KAAK;QACvC,uDAAuD,EAAE,OAAO;QAChE,0DAA0D,EACxD,OAAO;QACT,4DAA4D,EAC1D,OAAO;QACT,uDAAuD,EAAE,OAAO;QAChE,uDAAuD,EAAE,OAAO;KACjE;CACF,CAAkB,CACtB,CACF,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chris.araneo/eslint-config",
3
- "version": "0.0.135",
3
+ "version": "0.0.136",
4
4
  "description": "ESLint shareable configuration",
5
5
  "keywords": [
6
6
  "eslint",