@taiga-ui/eslint-plugin-experience-next 0.357.0 → 0.359.0
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/index.esm.js +15 -28
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -326,6 +326,8 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], {
|
|
|
326
326
|
'@angular-eslint/no-outputs-metadata-property': 'off',
|
|
327
327
|
'@angular-eslint/no-queries-metadata-property': 'error',
|
|
328
328
|
'@angular-eslint/no-uncalled-signals': 'error',
|
|
329
|
+
'@angular-eslint/prefer-host-metadata-property': 'error',
|
|
330
|
+
'@angular-eslint/prefer-inject': 'error',
|
|
329
331
|
'@angular-eslint/prefer-on-push-component-change-detection': 'error',
|
|
330
332
|
'@angular-eslint/prefer-output-readonly': 'error',
|
|
331
333
|
'@angular-eslint/prefer-signals': angularVersion >= modernAngularRules.preferSignals ? 'error' : 'off',
|
|
@@ -751,6 +753,14 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], {
|
|
|
751
753
|
'no-empty': ['error', { allowEmptyCatch: true }],
|
|
752
754
|
'no-extra-boolean-cast': 'error',
|
|
753
755
|
'no-implicit-coercion': ['error', { allow: ['!!'] }],
|
|
756
|
+
'no-irregular-whitespace': [
|
|
757
|
+
'error',
|
|
758
|
+
{
|
|
759
|
+
skipRegExps: false,
|
|
760
|
+
skipStrings: false,
|
|
761
|
+
skipTemplates: false,
|
|
762
|
+
},
|
|
763
|
+
],
|
|
754
764
|
'no-loop-func': 'error',
|
|
755
765
|
'no-nested-ternary': 'error',
|
|
756
766
|
'no-prototype-builtins': 'off',
|
|
@@ -790,14 +800,6 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], {
|
|
|
790
800
|
message: "Don't use TuiDestroyService, please use `takeUntilDestroyed()` function instead.",
|
|
791
801
|
selector: "Identifier[name='TuiDestroyService']",
|
|
792
802
|
},
|
|
793
|
-
{
|
|
794
|
-
message: 'Always prefer using the host property over @HostListener. That decorator exists exclusively for backwards compatibility',
|
|
795
|
-
selector: "Identifier[name='HostListener']",
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
message: 'Always prefer using the host property over @HostBinding. That decorator exists exclusively for backwards compatibility',
|
|
799
|
-
selector: "Identifier[name='HostBinding']",
|
|
800
|
-
},
|
|
801
803
|
{
|
|
802
804
|
message: 'Use `map(() => value)` instead of `mapTo(value)`, the operator is deprecated',
|
|
803
805
|
selector: "CallExpression[callee.name='mapTo']",
|
|
@@ -818,26 +820,6 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], {
|
|
|
818
820
|
message: 'Provide initial value to .reduce() method. Possible runtime error: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Reduce_of_empty_array_with_no_initial_value',
|
|
819
821
|
selector: "CallExpression[arguments.length=1] > MemberExpression.callee > Identifier.property[name='reduce']",
|
|
820
822
|
},
|
|
821
|
-
{
|
|
822
|
-
message: 'Please use `inject(Type)` function instead.',
|
|
823
|
-
selector: "Decorator[expression.callee.name='Inject']",
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
message: 'Please use `inject(Type, { self: true })` function instead.',
|
|
827
|
-
selector: "Decorator[expression.callee.name='Self']",
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
message: 'Please use `inject(Type, { skipSelf: true })` function instead.',
|
|
831
|
-
selector: "Decorator[expression.callee.name='SkipSelf']",
|
|
832
|
-
},
|
|
833
|
-
{
|
|
834
|
-
message: 'Please use `inject(Type, { optional: true })` function instead.',
|
|
835
|
-
selector: "Decorator[expression.callee.name='Optional']",
|
|
836
|
-
},
|
|
837
|
-
{
|
|
838
|
-
message: 'Please use `inject(Type, { host: true })` function instead.',
|
|
839
|
-
selector: "Decorator[expression.callee.name='Host']",
|
|
840
|
-
},
|
|
841
823
|
{
|
|
842
824
|
message: 'Please use `inject(INJECTOR)` instead',
|
|
843
825
|
selector: "CallExpression[callee.name='inject'][arguments.0.name='Injector']",
|
|
@@ -1117,6 +1099,11 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], {
|
|
|
1117
1099
|
'package-json/require-description': ['error', { ignorePrivate: true }],
|
|
1118
1100
|
'package-json/require-type': ['off', { ignorePrivate: true }],
|
|
1119
1101
|
},
|
|
1102
|
+
}, {
|
|
1103
|
+
files: ['**/*.html', '**/*.cy.ts', '**/*.spec.ts'],
|
|
1104
|
+
rules: {
|
|
1105
|
+
'no-irregular-whitespace': 'off',
|
|
1106
|
+
},
|
|
1120
1107
|
});
|
|
1121
1108
|
function projectJsonExist(filename) {
|
|
1122
1109
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/eslint-plugin-experience-next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.359.0",
|
|
4
4
|
"description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"eslint-plugin-file-progress": "^3.0.2",
|
|
25
25
|
"eslint-plugin-import": "^2.32.0",
|
|
26
26
|
"eslint-plugin-jest": "^29.1.0",
|
|
27
|
-
"eslint-plugin-package-json": "^0.
|
|
27
|
+
"eslint-plugin-package-json": "^0.68.0",
|
|
28
28
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
29
29
|
"eslint-plugin-playwright": "^2.3.0",
|
|
30
30
|
"eslint-plugin-prettier": "^5.5.4",
|