@taiga-ui/eslint-plugin-experience-next 0.304.0 → 0.305.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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ConfigArray } from 'typescript-eslint';
1
+ import { type ConfigArray } from 'typescript-eslint';
2
2
  declare const plugin: {
3
3
  configs: {
4
4
  readonly recommended: ConfigArray;
package/index.esm.js CHANGED
@@ -571,7 +571,8 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require$1(
571
571
  },
572
572
  processor: angular.processInlineTemplates,
573
573
  rules: {
574
- '@typescript-eslint/no-import-type-side-effects': 'error',
574
+ '@typescript-eslint/no-import-type-side-effects': 'off',
575
+ // verbatimModuleSyntax should be false
575
576
  'no-void': ['error', {
576
577
  allowAsStatement: true
577
578
  }],
@@ -695,13 +696,7 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require$1(
695
696
  '@typescript-eslint/consistent-type-definitions': 'error',
696
697
  '@typescript-eslint/consistent-type-imports': ['error', {
697
698
  disallowTypeAnnotations: false,
698
- /*
699
- One important difference is that import { type x } from 'x'
700
- will be compiled to import 'x', so x will be included in
701
- a bundle and any side effects of the code will run.
702
- Import type { x } from 'x' will not edit any import.
703
- */
704
- fixStyle: 'separate-type-imports',
699
+ fixStyle: 'inline-type-imports',
705
700
  prefer: 'type-imports'
706
701
  }],
707
702
  '@typescript-eslint/dot-notation': ['error', {
@@ -837,17 +832,6 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require$1(
837
832
  '@typescript-eslint/require-await': 'error',
838
833
  '@typescript-eslint/restrict-plus-operands': 'error',
839
834
  '@typescript-eslint/sort-type-constituents': 'error',
840
- '@typescript-eslint/strict-boolean-expressions': ['error', {
841
- allowAny: true,
842
- allowNullableBoolean: true,
843
- allowNullableEnum: false,
844
- allowNullableNumber: true,
845
- allowNullableObject: true,
846
- allowNullableString: true,
847
- allowNumber: true,
848
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
849
- allowString: true
850
- }],
851
835
  '@typescript-eslint/switch-exhaustiveness-check': ['error', {
852
836
  considerDefaultExhaustiveForUnions: true,
853
837
  allowDefaultCaseForExhaustiveSwitch: true,
@@ -872,14 +856,16 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require$1(
872
856
  allowArrowFunctions: true
873
857
  }],
874
858
  'guard-for-in': 'error',
875
- 'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
859
+ 'import/consistent-type-specifier-style': ['error', 'prefer-inline'],
876
860
  'import/first': 'error',
877
861
  'import/newline-after-import': ['error', {
878
862
  count: 1
879
863
  }],
880
864
  'import/no-absolute-path': 'error',
881
865
  'import/no-cycle': 'error',
882
- 'import/no-duplicates': 'error',
866
+ 'import/no-duplicates': ['error', {
867
+ 'prefer-inline': true
868
+ }],
883
869
  'import/no-mutable-exports': 'error',
884
870
  'import/no-self-import': 'error',
885
871
  'import/no-useless-path-segments': ['error', {
@@ -1145,7 +1131,6 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require$1(
1145
1131
  '@typescript-eslint/restrict-plus-operands': 'off',
1146
1132
  '@typescript-eslint/restrict-template-expressions': 'off',
1147
1133
  '@typescript-eslint/return-await': 'off',
1148
- '@typescript-eslint/strict-boolean-expressions': 'off',
1149
1134
  '@typescript-eslint/switch-exhaustiveness-check': 'off',
1150
1135
  '@typescript-eslint/unbound-method': 'off',
1151
1136
  '@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
@@ -1279,6 +1264,8 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require$1(
1279
1264
  '@typescript-eslint/prefer-nullish-coalescing': 'off',
1280
1265
  '@typescript-eslint/prefer-readonly-parameter-types': 'off',
1281
1266
  '@typescript-eslint/restrict-template-expressions': 'off',
1267
+ '@typescript-eslint/strict-boolean-expressions': 'off',
1268
+ // @see https://github.com/taiga-family/toolkit/issues/1181
1282
1269
  '@typescript-eslint/unbound-method': 'off',
1283
1270
  camelcase: 'off',
1284
1271
  'class-methods-use-this': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/eslint-plugin-experience-next",
3
- "version": "0.304.0",
3
+ "version": "0.305.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
  "main": "index.ts",
@@ -1,3 +1,3 @@
1
- import type { Rule } from 'eslint';
1
+ import { type Rule } from 'eslint';
2
2
  declare const config: Rule.RuleModule;
3
3
  export default config;
@@ -1,3 +1,3 @@
1
- import type { Rule } from 'eslint';
1
+ import { type Rule } from 'eslint';
2
2
  declare const config: Rule.RuleModule;
3
3
  export default config;
@@ -1,3 +1,3 @@
1
- import type { Rule } from 'eslint';
1
+ import { type Rule } from 'eslint';
2
2
  declare const config: Rule.RuleModule;
3
3
  export default config;
@@ -1,3 +1,3 @@
1
- import type { Rule } from 'eslint';
1
+ import { type Rule } from 'eslint';
2
2
  declare const config: Rule.RuleModule;
3
3
  export default config;
@@ -1,3 +1,3 @@
1
- import type { Rule } from 'eslint';
1
+ import { type Rule } from 'eslint';
2
2
  declare const config: Rule.RuleModule;
3
3
  export default config;
@@ -1,3 +1,3 @@
1
- import type { Rule } from 'eslint';
1
+ import { type Rule } from 'eslint';
2
2
  declare const config: Rule.RuleModule;
3
3
  export default config;
@@ -1,3 +1,3 @@
1
- import type { Rule } from 'eslint';
1
+ import { type Rule } from 'eslint';
2
2
  declare const config: Rule.RuleModule;
3
3
  export default config;
@@ -1,3 +1,3 @@
1
- import type { Rule } from 'eslint';
1
+ import { type Rule } from 'eslint';
2
2
  declare const config: Rule.RuleModule;
3
3
  export default config;
@@ -1,3 +1,3 @@
1
- import type { Rule } from 'eslint';
1
+ import { type Rule } from 'eslint';
2
2
  declare const config: Rule.RuleModule;
3
3
  export default config;
@@ -1,3 +1,2 @@
1
- import type { TypeChecker } from 'typescript';
2
- import ts from 'typescript';
1
+ import ts, { type TypeChecker } from 'typescript';
3
2
  export declare function getFieldTypes(type: ts.Type, checker: TypeChecker): string[];