@o3r/eslint-config 13.5.0-prerelease.2 → 13.5.0-prerelease.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/eslint-config",
3
- "version": "13.5.0-prerelease.2",
3
+ "version": "13.5.0-prerelease.21",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,7 +37,7 @@
37
37
  "build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
38
38
  },
39
39
  "dependencies": {
40
- "@o3r/schematics": "~13.5.0-prerelease.2"
40
+ "@o3r/schematics": "~13.5.0-prerelease.21"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@angular-devkit/core": "^20.0.0",
@@ -46,8 +46,8 @@
46
46
  "@angular/compiler": "^20.0.0",
47
47
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
48
48
  "@eslint/js": "^8.57.0 || ^9.22.0",
49
- "@o3r/eslint-plugin": "~13.5.0-prerelease.2",
50
- "@o3r/schematics": "~13.5.0-prerelease.2",
49
+ "@o3r/eslint-plugin": "~13.5.0-prerelease.21",
50
+ "@o3r/schematics": "~13.5.0-prerelease.21",
51
51
  "@schematics/angular": "^20.0.0",
52
52
  "@stylistic/eslint-plugin": "~5.6.0",
53
53
  "@typescript-eslint/parser": "^8.15.0",
@@ -68,23 +68,22 @@
68
68
  "globby": "^11.1.0",
69
69
  "jest": "^29.7.0",
70
70
  "jsonc-eslint-parser": "^2.4.0",
71
- "ts-node": "^10.9.2",
72
71
  "type-fest": "^4.30.1",
73
72
  "typescript": "^5.9.0",
74
73
  "typescript-eslint": "^8.15.0",
75
74
  "yaml-eslint-parser": "^1.2.2"
76
75
  },
77
76
  "devDependencies": {
78
- "@angular-devkit/core": "~20.3.0",
79
- "@angular-devkit/schematics": "~20.3.0",
80
- "@angular/compiler": "~20.3.0",
77
+ "@angular-devkit/core": "~20.3.11",
78
+ "@angular-devkit/schematics": "~20.3.11",
79
+ "@angular/compiler": "~20.3.13",
81
80
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
82
81
  "@eslint/js": "~9.39.0",
83
82
  "@nx/eslint-plugin": "~21.6.0",
84
- "@o3r/build-helpers": "~13.5.0-prerelease.2",
85
- "@o3r/eslint-plugin": "~13.5.0-prerelease.2",
86
- "@o3r/test-helpers": "~13.5.0-prerelease.2",
87
- "@schematics/angular": "~20.3.0",
83
+ "@o3r/build-helpers": "~13.5.0-prerelease.21",
84
+ "@o3r/eslint-plugin": "~13.5.0-prerelease.21",
85
+ "@o3r/test-helpers": "~13.5.0-prerelease.21",
86
+ "@schematics/angular": "~20.3.11",
88
87
  "@stylistic/eslint-plugin": "~5.6.0",
89
88
  "@types/jest": "~29.5.2",
90
89
  "@types/node": "~22.18.0",
@@ -110,7 +109,6 @@
110
109
  "rxjs": "^7.8.1",
111
110
  "semver": "^7.5.2",
112
111
  "ts-jest": "~29.4.0",
113
- "ts-node": "~10.9.2",
114
112
  "tslib": "^2.6.2",
115
113
  "type-fest": "^4.30.1",
116
114
  "typescript": "~5.9.2",
@@ -2,6 +2,14 @@
2
2
  const stylistic = require('@stylistic/eslint-plugin');
3
3
  const { convertWarningsToErrors } = require('../utils.cjs');
4
4
 
5
+ const defaultCommatDangleOptions = {
6
+ arrays: 'never',
7
+ objects: 'never',
8
+ imports: 'always-multiline',
9
+ exports: 'always-multiline',
10
+ functions: 'never'
11
+ };
12
+
5
13
  /**
6
14
  * @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigArray}
7
15
  */
@@ -15,13 +23,7 @@ const config = [
15
23
  ...convertWarningsToErrors(stylistic.configs.recommended),
16
24
  '@stylistic/arrow-parens': ['error', 'always'],
17
25
  '@stylistic/brace-style': ['error', '1tbs'],
18
- '@stylistic/comma-dangle': ['error', {
19
- arrays: 'never',
20
- objects: 'never',
21
- imports: 'always-multiline',
22
- exports: 'always-multiline',
23
- functions: 'never'
24
- }],
26
+ '@stylistic/comma-dangle': ['error', defaultCommatDangleOptions],
25
27
  '@stylistic/indent': [
26
28
  'error',
27
29
  2,
@@ -95,6 +97,18 @@ const config = [
95
97
  'inside'
96
98
  ]
97
99
  }
100
+ },
101
+ {
102
+ name: '@o3r/eslint-config/stylistic-es-overrides',
103
+ files: [
104
+ '**/*.{c,m}{t,j}s'
105
+ ],
106
+ rules: {
107
+ '@stylistic/comma-dangle': ['error', {
108
+ ...defaultCommatDangleOptions,
109
+ generics: 'ignore'
110
+ }]
111
+ }
98
112
  }
99
113
  ];
100
114