@asd14/eslint-config 10.3.0 → 12.0.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.
Files changed (55) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +24 -177
  3. package/dist/types/eslint.config.d.ts +212 -0
  4. package/dist/types/src/configs/node-jest.d.ts +17 -0
  5. package/dist/types/src/configs/node.d.ts +210 -0
  6. package/dist/types/src/configs/nx.d.ts +66 -0
  7. package/dist/types/src/configs/react-jest.d.ts +20 -0
  8. package/dist/types/src/configs/react.d.ts +1481 -0
  9. package/dist/types/src/configs/ts-node.d.ts +252 -0
  10. package/dist/types/src/index.d.ts +6 -0
  11. package/dist/types/src/rules/base.d.ts +16 -0
  12. package/dist/types/src/rules/import.d.ts +44 -0
  13. package/dist/types/src/rules/jsdoc.d.ts +40 -0
  14. package/dist/types/src/rules/react.d.ts +120 -0
  15. package/dist/types/src/rules/rtl.d.ts +13 -0
  16. package/dist/types/src/rules/typescript.d.ts +53 -0
  17. package/dist/types/src/rules/unicorn.d.ts +42 -0
  18. package/dist/types/src/utils/find-up-sync.d.ts +34 -0
  19. package/dist/types/tsconfig.tsbuildinfo +1 -0
  20. package/package.json +52 -65
  21. package/src/configs/node-jest.js +29 -0
  22. package/src/configs/node.js +65 -0
  23. package/src/configs/nx.js +121 -0
  24. package/src/configs/react-jest.js +16 -0
  25. package/src/configs/react.js +86 -0
  26. package/src/configs/ts-node.js +23 -0
  27. package/src/index.js +6 -0
  28. package/src/rules/base.js +24 -0
  29. package/src/rules/import.js +55 -0
  30. package/src/rules/jsdoc.js +49 -0
  31. package/{rules → src/rules}/react.js +41 -27
  32. package/src/rules/rtl.js +6 -0
  33. package/src/rules/typescript.js +88 -0
  34. package/{rules → src/rules}/unicorn.js +19 -41
  35. package/src/utils/find-up-sync.js +56 -0
  36. package/rules/best-practices.js +0 -11
  37. package/rules/comments.js +0 -46
  38. package/rules/errors.js +0 -112
  39. package/rules/es6.js +0 -48
  40. package/rules/html.js +0 -59
  41. package/rules/import-ts.js +0 -41
  42. package/rules/import.js +0 -101
  43. package/rules/jsdoc-ts.js +0 -8
  44. package/rules/jsdoc.js +0 -103
  45. package/rules/json.js +0 -9
  46. package/rules/node.js +0 -56
  47. package/rules/prettier.js +0 -16
  48. package/rules/promise.js +0 -68
  49. package/rules/style.js +0 -252
  50. package/rules/variables.js +0 -70
  51. package/targets/node-esm.js +0 -25
  52. package/targets/node-ts.js +0 -36
  53. package/targets/node.js +0 -36
  54. package/targets/react-ts.js +0 -94
  55. package/targets/react.js +0 -90
@@ -0,0 +1,66 @@
1
+ export namespace nxConfig {
2
+ let name: "ASD14 config for source files inside an NX monorepo";
3
+ let plugins: {
4
+ readonly "@nx": Plugin;
5
+ };
6
+ let rules: {
7
+ readonly "@nx/enforce-module-boundaries": ["error", {
8
+ readonly allow: readonly [];
9
+ readonly depConstraints: readonly [{
10
+ sourceTag: string;
11
+ onlyDependOnLibsWithTags: string[];
12
+ }, {
13
+ sourceTag: string;
14
+ onlyDependOnLibsWithTags: string[];
15
+ }, {
16
+ sourceTag: string;
17
+ onlyDependOnLibsWithTags: string[];
18
+ }, {
19
+ sourceTag: string;
20
+ onlyDependOnLibsWithTags: string[];
21
+ }, {
22
+ sourceTag: string;
23
+ onlyDependOnLibsWithTags: string[];
24
+ }, {
25
+ sourceTag: string;
26
+ onlyDependOnLibsWithTags: string[];
27
+ }, {
28
+ sourceTag: string;
29
+ onlyDependOnLibsWithTags: string[];
30
+ }, {
31
+ sourceTag: string;
32
+ onlyDependOnLibsWithTags: string[];
33
+ }, {
34
+ sourceTag: string;
35
+ onlyDependOnLibsWithTags: string[];
36
+ }, {
37
+ sourceTag: string;
38
+ onlyDependOnLibsWithTags: string[];
39
+ }, {
40
+ sourceTag: string;
41
+ bannedExternalImports: string[];
42
+ }];
43
+ }];
44
+ };
45
+ }
46
+ export namespace nxDevConfig {
47
+ let name_1: "ASD14 config for dev files inside an NX monorepo";
48
+ export { name_1 as name };
49
+ let plugins_1: {
50
+ readonly "@nx": Plugin;
51
+ };
52
+ export { plugins_1 as plugins };
53
+ let rules_1: {
54
+ readonly "import/no-extraneous-dependencies": ["error", {
55
+ readonly packageDir: readonly ["./", string];
56
+ }];
57
+ readonly "@nx/enforce-module-boundaries": ["error", {
58
+ readonly allow: readonly [];
59
+ readonly depConstraints: readonly [{
60
+ readonly sourceTag: "*";
61
+ readonly onlyDependOnLibsWithTags: readonly ["type:lib"];
62
+ }];
63
+ }];
64
+ };
65
+ export { rules_1 as rules };
66
+ }
@@ -0,0 +1,20 @@
1
+ /** @satisfies {import("eslint").Linter.Config} */
2
+ export const reactJestConfig: {
3
+ readonly name: "ASD14 config for React test files";
4
+ readonly plugins: {
5
+ readonly [x: string]: import("eslint").ESLint.Plugin;
6
+ };
7
+ readonly rules: {
8
+ readonly "jest/require-top-level-describe": "error";
9
+ readonly "jest/consistent-test-it": ["error", {
10
+ readonly fn: "test";
11
+ readonly withinDescribe: "test";
12
+ }];
13
+ readonly "jest/valid-title": ["error", {
14
+ readonly mustMatch: {
15
+ readonly test: "^given \\[.*\\] should \\[.*\\]$";
16
+ };
17
+ }];
18
+ };
19
+ readonly languageOptions: import("eslint").Linter.LanguageOptions | undefined;
20
+ };