eslint-config-beslogic 4.3.0 → 4.3.2
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/CHANGELOG.md +5 -0
- package/angular.mjs +4 -0
- package/javascript.mjs +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.3.2
|
|
4
|
+
|
|
5
|
+
- Disabled `@angular-eslint/no-host-metadata-property` as it is now the recommendation for signals. See <https://github.com/angular-eslint/angular-eslint/discussions/2303>
|
|
6
|
+
- Allowed `0n` as a magic value by default
|
|
7
|
+
|
|
3
8
|
## 4.3.0
|
|
4
9
|
|
|
5
10
|
- Correctly also disable `compilerOptions.emitDecoratorMetadata` when disabling `compilerOptions.experimentalDecorators` out of the box
|
package/angular.mjs
CHANGED
|
@@ -202,6 +202,10 @@ export default tseslint.config(
|
|
|
202
202
|
"style": "camelCase"
|
|
203
203
|
}
|
|
204
204
|
],
|
|
205
|
+
// Deprecated in v18, removed in v19.
|
|
206
|
+
// TODO: Adopt the inverse rule once it's been created. This is the recommendation for signals
|
|
207
|
+
// See https://github.com/angular-eslint/angular-eslint/discussions/2303
|
|
208
|
+
"@angular-eslint/no-host-metadata-property": "off",
|
|
205
209
|
"@angular-eslint/prefer-on-push-component-change-detection": "off",
|
|
206
210
|
// We need to disable the autofix because some of the "new" standalone components
|
|
207
211
|
// would still be declared in their module. This breaks Angular and requires manual changes.
|
package/javascript.mjs
CHANGED
|
@@ -46,6 +46,8 @@ export const noMagicNumbersConfig = {
|
|
|
46
46
|
// "detectObjects": true,
|
|
47
47
|
"enforceConst": true,
|
|
48
48
|
"ignore": [
|
|
49
|
+
// Used in Falsy type definition
|
|
50
|
+
"0n",
|
|
49
51
|
// Access first element
|
|
50
52
|
0,
|
|
51
53
|
// Off by one indexes & comparisons
|
|
@@ -437,7 +439,7 @@ export default tseslint.config(
|
|
|
437
439
|
// Packages.
|
|
438
440
|
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
|
|
439
441
|
["^@?\\w"],
|
|
440
|
-
// Absolute imports and other imports such as Vue
|
|
442
|
+
// Absolute imports and other imports such as Vue or Next style `@/foo`.
|
|
441
443
|
// Anything not matched in another group.
|
|
442
444
|
["^"],
|
|
443
445
|
// Relative imports.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-beslogic",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "ESLint rules, plugins and configs used at Beslogic",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"// dependencies": "Run for ourselves when we install dependencies w/o running npm i afterward",
|