@taiga-ui/eslint-plugin-experience-next 0.257.0 → 0.258.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/README.md CHANGED
@@ -6,6 +6,8 @@ npm i -D eslint @taiga-ui/eslint-plugin-experience-next
6
6
 
7
7
  `eslint.config.ts`
8
8
 
9
+ **Attention**: package does not support commonjs, use `eslint.config.{ts,mjs,js}` instead of `eslint.config.cjs`
10
+
9
11
  ```js
10
12
  import taiga from 'projects/eslint-plugin-experience-next';
11
13
 
@@ -31,4 +33,24 @@ export default [
31
33
  ];
32
34
  ```
33
35
 
34
- **Attention**: package does not support commonjs, use `eslint.config.{ts,mjs,js}` instead of `eslint.config.cjs`
36
+ ### taiga.configs.recommended
37
+
38
+ - ✅ = recommended
39
+ - 🔧 = fixable
40
+ - 💡 = has suggestions
41
+
42
+ | Rule | Description | ✅ | 🔧 | 💡 |
43
+ | --------------------------- | --------------------------------------------------------------------------------------------- | --- | --- | --- |
44
+ | decorator-key-sort | Sorts the keys of the object passed to the `@Component/@Injectable/@NgModule/@Pipe` decorator | | 🔧 | |
45
+ | injection-token-description | They are required to provide a description for `InjectionToken` | ✅ | | |
46
+ | no-deep-imports | Disables deep imports of Taiga UI packages | | 🔧 | |
47
+ | no-implicit-public | Prevents the use of the public modifier in classes | | 🔧 | |
48
+ | no-private-esnext-fields | Prevents the use of the ESNext private methods | ✅ | | |
49
+ | standalone-imports-sort | Sort imports alphabetically | | 🔧 | |
50
+
51
+ ### taiga.configs['taiga-specific']
52
+
53
+ | Rule | Description | ✅ | 🔧 | 💡 |
54
+ | ---------------------- | ------------------------------------------------------------------------------------------- | --- | --- | --- |
55
+ | prefer-deep-imports | Allow deep imports of Taiga UI packages | | 🔧 | |
56
+ | strict-tui-doc-example | If you use the addon-doc, there will be a hint that you are importing something incorrectly | | 🔧 | |
package/index.d.ts CHANGED
@@ -2,16 +2,21 @@ import type { ConfigArray } from 'typescript-eslint';
2
2
  declare const plugin: {
3
3
  configs: {
4
4
  readonly recommended: ConfigArray;
5
- readonly ["entry-points"]: ConfigArray;
6
- readonly ["taiga-naming"]: ConfigArray;
5
+ readonly ["taiga-specific"]: ConfigArray;
7
6
  };
8
7
  meta: {
9
8
  name: any;
10
9
  version: any;
11
10
  };
12
11
  rules: {
12
+ 'decorator-key-sort': import("eslint").Rule.RuleModule;
13
+ 'injection-token-description': import("eslint").Rule.RuleModule;
13
14
  'no-deep-imports': import("eslint").Rule.RuleModule;
15
+ 'no-implicit-public': import("eslint").Rule.RuleModule;
16
+ 'no-private-esnext-fields': import("eslint").Rule.RuleModule;
14
17
  'prefer-deep-imports': import("eslint").Rule.RuleModule;
18
+ 'standalone-imports-sort': import("eslint").Rule.RuleModule;
19
+ 'strict-tui-doc-example': import("eslint").Rule.RuleModule;
15
20
  };
16
21
  };
17
22
  export default plugin;