@raisenow/tamaro-cli 1.7.0-dev.0 → 1.7.0-dev.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.
Files changed (128) hide show
  1. package/.eslintignore +7 -0
  2. package/.eslintrc.cjs +148 -0
  3. package/.history/.eslintignore_20220609190420 +4 -0
  4. package/.history/.eslintignore_20230911190227 +6 -0
  5. package/.history/.eslintignore_20230911211247 +7 -0
  6. package/.history/.eslintignore_20230911211250 +7 -0
  7. package/.history/.eslintrc_20230911201601.js +49 -0
  8. package/.history/.eslintrc_20230911201643.js +49 -0
  9. package/.history/.eslintrc_20230911201735.js +49 -0
  10. package/.history/.eslintrc_20230911201913.js +64 -0
  11. package/.history/.eslintrc_20230911202002.js +62 -0
  12. package/.history/.eslintrc_20230911202138.js +133 -0
  13. package/.history/.eslintrc_20230911202140.js +133 -0
  14. package/.history/.eslintrc_20230911202145.js +133 -0
  15. package/.history/.eslintrc_20230911202147.js +133 -0
  16. package/.history/.eslintrc_20230911202406.js +133 -0
  17. package/.history/.eslintrc_20230911202447.js +133 -0
  18. package/.history/.eslintrc_20230911202453.js +133 -0
  19. package/.history/.eslintrc_20230911202511.js +133 -0
  20. package/.history/.eslintrc_20230911202527.js +133 -0
  21. package/.history/.eslintrc_20230911202639.js +125 -0
  22. package/.history/.eslintrc_20230911202721.js +149 -0
  23. package/.history/.eslintrc_20230911202746.js +149 -0
  24. package/.history/.eslintrc_20240423125702.cjs +148 -0
  25. package/.history/.gitignore_20220609190420 +14 -0
  26. package/.history/.gitignore_20230911185959 +4 -0
  27. package/.history/.gitignore_20230911190006 +4 -0
  28. package/.history/.gitignore_20230911190007 +4 -0
  29. package/.history/.nmprc_20241004144025 +0 -0
  30. package/.history/.nmprc_20241004144041 +1 -0
  31. package/.history/.npmrc_20241004144040 +1 -0
  32. package/.history/.npmrc_20241004144152 +1 -0
  33. package/.history/.npmrc_20241004145639 +2 -0
  34. package/.history/.npmrc_20241004145649 +1 -0
  35. package/.history/.nvmrc_20250729181039 +1 -0
  36. package/.history/.prettierignore_20220609190420 +5 -0
  37. package/.history/.prettierignore_20230911190242 +7 -0
  38. package/.history/.prettierignore_20230911190245 +7 -0
  39. package/.history/.prettierignore_20230911211301 +8 -0
  40. package/.history/CHANGELOG_20250729195139.md +28 -0
  41. package/.history/CHANGELOG_20250729195148.md +29 -0
  42. package/.history/CHANGELOG_20250729195156.md +28 -0
  43. package/.history/CHANGELOG_20250729195218.md +29 -0
  44. package/.history/CHANGELOG_20250729195223.md +27 -0
  45. package/.history/CHANGELOG_20250729195506.md +29 -0
  46. package/.history/CHANGELOG_20250729224404.md +30 -0
  47. package/.history/CHANGELOG_20250729224411.md +30 -0
  48. package/.history/CHANGELOG_20250730124538.md +41 -0
  49. package/.history/CHANGELOG_20250730124603.md +38 -0
  50. package/.history/CHANGELOG_20250730124627.md +36 -0
  51. package/.history/CHANGELOG_20250730124638.md +36 -0
  52. package/.history/CHANGELOG_20250730124640.md +36 -0
  53. package/.history/README_20230911145033.md +245 -0
  54. package/.history/README_20230911151749.md +245 -0
  55. package/.history/README_20230911151844.md +245 -0
  56. package/.history/README_20230911153040.md +245 -0
  57. package/.history/README_20230911202959.md +245 -0
  58. package/.history/bitbucket-pipelines_20250729111540.yml +46 -0
  59. package/.history/bitbucket-pipelines_20250729210338.yml +46 -0
  60. package/.history/bitbucket-pipelines_20250729210340.yml +46 -0
  61. package/.history/bitbucket-pipelines_20250729210342.yml +46 -0
  62. package/.history/bitbucket-pipelines_20250729222234.yml +47 -0
  63. package/.history/bitbucket-pipelines_20250729222554.yml +47 -0
  64. package/.history/bitbucket-pipelines_20250729222555.yml +47 -0
  65. package/.history/bitbucket-pipelines_20250729223022.yml +46 -0
  66. package/.history/bitbucket-pipelines_20250729223024.yml +46 -0
  67. package/.history/cli_20241005014539 +3 -0
  68. package/.history/cli_20241005014542 +3 -0
  69. package/.history/cli_20241005014848 +3 -0
  70. package/.history/dist/chunk-FICM3HUI_20230912183408.js +302 -0
  71. package/{dist/chunk-ALQDGTID.js → .history/dist/chunk-FICM3HUI_20230912201610.js} +45 -150
  72. package/.history/package_20250729182417.json +111 -0
  73. package/.history/package_20250729182419.json +111 -0
  74. package/.history/package_20250729182618.json +110 -0
  75. package/.history/package_20250729182834.json +110 -0
  76. package/.history/package_20250729183032.json +110 -0
  77. package/.history/package_20250729183033.json +110 -0
  78. package/.history/package_20250729185750.json +110 -0
  79. package/.history/package_20250729185815.json +110 -0
  80. package/.history/package_20250729185846.json +110 -0
  81. package/.history/package_20250729185854.json +110 -0
  82. package/.history/package_20250729185943.json +110 -0
  83. package/.history/package_20250729190645.json +110 -0
  84. package/.history/package_20250729195934.json +110 -0
  85. package/.history/package_20250729200013.json +110 -0
  86. package/.history/package_20250729200056.json +110 -0
  87. package/.history/package_20250729200434.json +110 -0
  88. package/.history/package_20250729200808.json +110 -0
  89. package/.history/package_20250729200944.json +110 -0
  90. package/.history/package_20250729214420.json +114 -0
  91. package/.history/package_20250729223112.json +110 -0
  92. package/.history/package_20250729223127.json +110 -0
  93. package/.history/package_20250729223134.json +110 -0
  94. package/.history/package_20250730124647.json +114 -0
  95. package/.history/tsconfig_20241005001442.json +34 -0
  96. package/.history/tsconfig_20241005001500.json +34 -0
  97. package/.history/tsconfig_20241005001540.json +34 -0
  98. package/.history/tsconfig_20241005014429.json +42 -0
  99. package/.history/tsconfig_20241005014436.json +42 -0
  100. package/.history/tsconfig_20241005014439.json +38 -0
  101. package/.history/tsconfig_20241005014455.json +38 -0
  102. package/.history/tsconfig_20241005014521.json +38 -0
  103. package/.history/vitest.config_20250729214539.ts +0 -0
  104. package/.history/vitest.config_20250729214659.ts +24 -0
  105. package/.history/vitest.config_20250729214748.ts +21 -0
  106. package/.history/vitest.config_20250729214825.ts +21 -0
  107. package/.history/vitest.config_20250729214902.ts +21 -0
  108. package/.history/vitest.config_20250729222125.ts +20 -0
  109. package/.history/vitest.config_20250729222213.ts +20 -0
  110. package/.idea/codeStyles/Project.xml +131 -0
  111. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  112. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  113. package/.idea/misc.xml +17 -0
  114. package/.idea/modules.xml +8 -0
  115. package/.idea/prettier.xml +6 -0
  116. package/.idea/tamaro-cli.iml +12 -0
  117. package/.idea/vcs.xml +6 -0
  118. package/.nvmrc +1 -0
  119. package/.prettierignore +8 -0
  120. package/.prettierrc.cjs +19 -0
  121. package/bitbucket-pipelines.yml +47 -0
  122. package/dist/cli.js +768 -1461
  123. package/dist/env-Bx5mwt8E.js +254 -0
  124. package/dist/webpack.config.js +308 -443
  125. package/package.json +28 -39
  126. package/renovate.json +3 -0
  127. package/tsdown.config.ts +13 -0
  128. package/vitest.config.ts +20 -0
@@ -0,0 +1,133 @@
1
+ module.exports = {
2
+ root: true,
3
+ overrides: [
4
+ {
5
+ files: ['*.{js,cjs,ts}'],
6
+ env: {
7
+ node: true,
8
+ es2021: true,
9
+ },
10
+ settings: {
11
+ 'import/resolver': {
12
+ typescript: {
13
+ alwaysTryTypes: true,
14
+ project: ['./tsconfig.json'],
15
+ },
16
+ },
17
+ },
18
+ parser: '@typescript-eslint/parser',
19
+ parserOptions: {
20
+ ecmaVersion: 2021,
21
+ sourceType: 'module',
22
+ tsconfigRootDir: __dirname,
23
+ project: ['./tsconfig.json'],
24
+ extraFileExtensions: ['.cjs'],
25
+ },
26
+ extends: [
27
+ 'eslint:recommended',
28
+ 'plugin:@typescript-eslint/recommended-requiring-type-checking',
29
+ // 'plugin:@typescript-eslint/strict-type-checked',
30
+ // 'plugin:@typescript-eslint/stylistic-type-checked',
31
+ 'plugin:promise/recommended',
32
+ 'plugin:deprecation/recommended',
33
+ 'plugin:react/recommended',
34
+ 'plugin:react-hooks/recommended',
35
+ 'plugin:import/recommended',
36
+ 'plugin:import/typescript',
37
+ 'prettier',
38
+ ],
39
+ plugins: ['unused-imports'],
40
+ rules: {
41
+ curly: 1,
42
+ 'prefer-const': 1,
43
+ 'no-console': 1,
44
+ strict: 1,
45
+ 'no-debugger': 1,
46
+
47
+ 'no-extra-boolean-cast': 0,
48
+ '@typescript-eslint/no-explicit-any': 0,
49
+ '@typescript-eslint/no-non-null-assertion': 0,
50
+ '@typescript-eslint/no-unsafe-assignment': 0,
51
+ '@typescript-eslint/no-unsafe-argument': 0,
52
+ '@typescript-eslint/no-unsafe-member-access': 0,
53
+ '@typescript-eslint/no-unsafe-return': 0,
54
+ '@typescript-eslint/no-unsafe-enum-comparison': 0,
55
+ '@typescript-eslint/no-unsafe-call': 0, // todo: remove this rule later
56
+ '@typescript-eslint/explicit-function-return-type': 0,
57
+ '@typescript-eslint/consistent-type-definitions': 0,
58
+ '@typescript-eslint/no-dynamic-delete': 0,
59
+
60
+ '@typescript-eslint/ban-ts-comment': [2, {'ts-expect-error': false}],
61
+ '@typescript-eslint/no-unused-vars': [1, {varsIgnorePattern: '^_'}],
62
+ '@typescript-eslint/prefer-optional-chain': 1,
63
+ '@typescript-eslint/member-delimiter-style': [
64
+ 1,
65
+ {multiline: {delimiter: 'none'}},
66
+ ],
67
+
68
+ '@typescript-eslint/no-confusing-void-expression': [
69
+ 2,
70
+ {ignoreArrowShorthand: true},
71
+ ],
72
+
73
+ 'import/newline-after-import': 2,
74
+
75
+ 'unused-imports/no-unused-imports': 1,
76
+
77
+ '@typescript-eslint/consistent-type-imports': [
78
+ 2,
79
+ {
80
+ prefer: 'type-imports',
81
+ fixStyle: 'inline-type-imports',
82
+ },
83
+ ],
84
+
85
+ 'sort-imports': [2, {ignoreCase: true, ignoreDeclarationSort: true}],
86
+ 'import/order': [
87
+ 2,
88
+ {
89
+ groups: [
90
+ 'builtin',
91
+ 'external',
92
+ 'internal',
93
+ ['parent', 'sibling', 'index'],
94
+ ],
95
+ // Put "react*" on top
96
+ pathGroups: [
97
+ {
98
+ pattern: 'react*',
99
+ group: 'external',
100
+ position: 'before',
101
+ },
102
+ {
103
+ pattern: '**/*.json',
104
+ group: 'unknown',
105
+ position: 'after',
106
+ },
107
+ {
108
+ pattern: '**/*.yml',
109
+ group: 'unknown',
110
+ position: 'after',
111
+ },
112
+ ],
113
+ distinctGroup: false,
114
+ alphabetize: {
115
+ order: 'asc',
116
+ orderImportKind: 'asc',
117
+ caseInsensitive: true,
118
+ },
119
+ 'newlines-between': 'never',
120
+
121
+ // Since docs for "pathGroupsExcludedImportTypes" option are confusing,
122
+ // see more info about how to correctly use it here:
123
+ // https://github.com/import-js/eslint-plugin-import/pull/2156#issuecomment-927559466
124
+ pathGroupsExcludedImportTypes: [],
125
+ },
126
+ ],
127
+ },
128
+ },
129
+ {
130
+
131
+ },
132
+ ],
133
+ }
@@ -0,0 +1,133 @@
1
+ module.exports = {
2
+ root: true,
3
+ overrides: [
4
+ {
5
+ files: ['*.{js,cjs,ts}'],
6
+ env: {
7
+ node: true,
8
+ es2021: true,
9
+ },
10
+ settings: {
11
+ 'import/resolver': {
12
+ typescript: {
13
+ alwaysTryTypes: true,
14
+ project: ['./tsconfig.json'],
15
+ },
16
+ },
17
+ },
18
+ parser: '@typescript-eslint/parser',
19
+ parserOptions: {
20
+ ecmaVersion: 2021,
21
+ sourceType: 'module',
22
+ tsconfigRootDir: __dirname,
23
+ project: ['./tsconfig.json'],
24
+ extraFileExtensions: ['.cjs'],
25
+ },
26
+ extends: [
27
+ 'eslint:recommended',
28
+ 'plugin:@typescript-eslint/recommended-requiring-type-checking',
29
+ // 'plugin:@typescript-eslint/strict-type-checked',
30
+ // 'plugin:@typescript-eslint/stylistic-type-checked',
31
+ 'plugin:promise/recommended',
32
+ 'plugin:deprecation/recommended',
33
+ 'plugin:react/recommended',
34
+ 'plugin:react-hooks/recommended',
35
+ 'plugin:import/recommended',
36
+ 'plugin:import/typescript',
37
+ 'prettier',
38
+ ],
39
+ plugins: ['unused-imports'],
40
+ rules: {
41
+ curly: 1,
42
+ 'prefer-const': 1,
43
+ 'no-console': 1,
44
+ strict: 1,
45
+ 'no-debugger': 1,
46
+
47
+ 'no-extra-boolean-cast': 0,
48
+ '@typescript-eslint/no-explicit-any': 0,
49
+ '@typescript-eslint/no-non-null-assertion': 0,
50
+ '@typescript-eslint/no-unsafe-assignment': 0,
51
+ '@typescript-eslint/no-unsafe-argument': 0,
52
+ '@typescript-eslint/no-unsafe-member-access': 0,
53
+ '@typescript-eslint/no-unsafe-return': 0,
54
+ '@typescript-eslint/no-unsafe-enum-comparison': 0,
55
+ '@typescript-eslint/no-unsafe-call': 0, // todo: remove this rule later
56
+ '@typescript-eslint/explicit-function-return-type': 0,
57
+ '@typescript-eslint/consistent-type-definitions': 0,
58
+ '@typescript-eslint/no-dynamic-delete': 0,
59
+
60
+ '@typescript-eslint/ban-ts-comment': [2, {'ts-expect-error': false}],
61
+ '@typescript-eslint/no-unused-vars': [1, {varsIgnorePattern: '^_'}],
62
+ '@typescript-eslint/prefer-optional-chain': 1,
63
+ '@typescript-eslint/member-delimiter-style': [
64
+ 1,
65
+ {multiline: {delimiter: 'none'}},
66
+ ],
67
+
68
+ '@typescript-eslint/no-confusing-void-expression': [
69
+ 2,
70
+ {ignoreArrowShorthand: true},
71
+ ],
72
+
73
+
74
+
75
+ '@typescript-eslint/consistent-type-imports': [
76
+ 2,
77
+ {
78
+ prefer: 'type-imports',
79
+ fixStyle: 'inline-type-imports',
80
+ },
81
+ ],
82
+
83
+ 'sort-imports': [2, {ignoreCase: true, ignoreDeclarationSort: true}],
84
+ // 'import/order': [
85
+ // 2,
86
+ // {
87
+ // groups: [
88
+ // 'builtin',
89
+ // 'external',
90
+ // 'internal',
91
+ // ['parent', 'sibling', 'index'],
92
+ // ],
93
+ // // Put "react*" on top
94
+ // pathGroups: [
95
+ // {
96
+ // pattern: 'react*',
97
+ // group: 'external',
98
+ // position: 'before',
99
+ // },
100
+ // {
101
+ // pattern: '**/*.json',
102
+ // group: 'unknown',
103
+ // position: 'after',
104
+ // },
105
+ // {
106
+ // pattern: '**/*.yml',
107
+ // group: 'unknown',
108
+ // position: 'after',
109
+ // },
110
+ // ],
111
+ // distinctGroup: false,
112
+ // alphabetize: {
113
+ // order: 'asc',
114
+ // orderImportKind: 'asc',
115
+ // caseInsensitive: true,
116
+ // },
117
+ // 'newlines-between': 'never',
118
+
119
+ // // Since docs for "pathGroupsExcludedImportTypes" option are confusing,
120
+ // // see more info about how to correctly use it here:
121
+ // // https://github.com/import-js/eslint-plugin-import/pull/2156#issuecomment-927559466
122
+ // pathGroupsExcludedImportTypes: [],
123
+ // },
124
+ // ],
125
+ },
126
+ },
127
+ {
128
+
129
+ },
130
+ ],
131
+ } 'import/newline-after-import': 2,
132
+
133
+ 'unused-imports/no-unused-imports': 1,
@@ -0,0 +1,133 @@
1
+ module.exports = {
2
+ root: true,
3
+ overrides: [
4
+ {
5
+ files: ['*.{js,cjs,ts}'],
6
+ env: {
7
+ node: true,
8
+ es2021: true,
9
+ },
10
+ settings: {
11
+ 'import/resolver': {
12
+ typescript: {
13
+ alwaysTryTypes: true,
14
+ project: ['./tsconfig.json'],
15
+ },
16
+ },
17
+ },
18
+ parser: '@typescript-eslint/parser',
19
+ parserOptions: {
20
+ ecmaVersion: 2021,
21
+ sourceType: 'module',
22
+ tsconfigRootDir: __dirname,
23
+ project: ['./tsconfig.json'],
24
+ extraFileExtensions: ['.cjs'],
25
+ },
26
+ extends: [
27
+ 'eslint:recommended',
28
+ 'plugin:@typescript-eslint/recommended-requiring-type-checking',
29
+ // 'plugin:@typescript-eslint/strict-type-checked',
30
+ // 'plugin:@typescript-eslint/stylistic-type-checked',
31
+ 'plugin:promise/recommended',
32
+ 'plugin:deprecation/recommended',
33
+ 'plugin:react/recommended',
34
+ 'plugin:react-hooks/recommended',
35
+ 'plugin:import/recommended',
36
+ 'plugin:import/typescript',
37
+ 'prettier',
38
+ ],
39
+ plugins: ['unused-imports'],
40
+ rules: {
41
+ curly: 1,
42
+ 'prefer-const': 1,
43
+ 'no-console': 1,
44
+ strict: 1,
45
+ 'no-debugger': 1,
46
+
47
+ 'no-extra-boolean-cast': 0,
48
+ '@typescript-eslint/no-explicit-any': 0,
49
+ '@typescript-eslint/no-non-null-assertion': 0,
50
+ '@typescript-eslint/no-unsafe-assignment': 0,
51
+ '@typescript-eslint/no-unsafe-argument': 0,
52
+ '@typescript-eslint/no-unsafe-member-access': 0,
53
+ '@typescript-eslint/no-unsafe-return': 0,
54
+ '@typescript-eslint/no-unsafe-enum-comparison': 0,
55
+ '@typescript-eslint/no-unsafe-call': 0, // todo: remove this rule later
56
+ '@typescript-eslint/explicit-function-return-type': 0,
57
+ '@typescript-eslint/consistent-type-definitions': 0,
58
+ '@typescript-eslint/no-dynamic-delete': 0,
59
+
60
+ '@typescript-eslint/ban-ts-comment': [2, {'ts-expect-error': false}],
61
+ '@typescript-eslint/no-unused-vars': [1, {varsIgnorePattern: '^_'}],
62
+ '@typescript-eslint/prefer-optional-chain': 1,
63
+ '@typescript-eslint/member-delimiter-style': [
64
+ 1,
65
+ {multiline: {delimiter: 'none'}},
66
+ ],
67
+
68
+ '@typescript-eslint/no-confusing-void-expression': [
69
+ 2,
70
+ {ignoreArrowShorthand: true},
71
+ ],
72
+
73
+ 'import/newline-after-import': 2,
74
+
75
+ 'unused-imports/no-unused-imports': 1,
76
+
77
+ '@typescript-eslint/consistent-type-imports': [
78
+ 2,
79
+ {
80
+ prefer: 'type-imports',
81
+ fixStyle: 'inline-type-imports',
82
+ },
83
+ ],
84
+
85
+ 'sort-imports': [2, {ignoreCase: true, ignoreDeclarationSort: true}],
86
+ 'import/order': [
87
+ 2,
88
+ {
89
+ groups: [
90
+ 'builtin',
91
+ 'external',
92
+ 'internal',
93
+ ['parent', 'sibling', 'index'],
94
+ ],
95
+ // Put "react*" on top
96
+ pathGroups: [
97
+ {
98
+ pattern: 'react*',
99
+ group: 'external',
100
+ position: 'before',
101
+ },
102
+ {
103
+ pattern: '**/*.json',
104
+ group: 'unknown',
105
+ position: 'after',
106
+ },
107
+ {
108
+ pattern: '**/*.yml',
109
+ group: 'unknown',
110
+ position: 'after',
111
+ },
112
+ ],
113
+ distinctGroup: false,
114
+ alphabetize: {
115
+ order: 'asc',
116
+ orderImportKind: 'asc',
117
+ caseInsensitive: true,
118
+ },
119
+ 'newlines-between': 'never',
120
+
121
+ // Since docs for "pathGroupsExcludedImportTypes" option are confusing,
122
+ // see more info about how to correctly use it here:
123
+ // https://github.com/import-js/eslint-plugin-import/pull/2156#issuecomment-927559466
124
+ pathGroupsExcludedImportTypes: [],
125
+ },
126
+ ],
127
+ },
128
+ },
129
+ {
130
+
131
+ },
132
+ ],
133
+ }
@@ -0,0 +1,125 @@
1
+ module.exports = {
2
+ root: true,
3
+ overrides: [
4
+ {
5
+ files: ['*.{js,cjs,ts}'],
6
+ env: {
7
+ node: true,
8
+ es2021: true,
9
+ },
10
+ settings: {
11
+ 'import/resolver': {
12
+ typescript: {
13
+ alwaysTryTypes: true,
14
+ project: ['./tsconfig.json'],
15
+ },
16
+ },
17
+ },
18
+ parser: '@typescript-eslint/parser',
19
+ parserOptions: {
20
+ ecmaVersion: 2021,
21
+ sourceType: 'module',
22
+ tsconfigRootDir: __dirname,
23
+ project: ['./tsconfig.json'],
24
+ extraFileExtensions: ['.cjs'],
25
+ },
26
+ extends: [
27
+ 'eslint:recommended',
28
+ 'plugin:@typescript-eslint/recommended-requiring-type-checking',
29
+ // 'plugin:@typescript-eslint/strict-type-checked',
30
+ // 'plugin:@typescript-eslint/stylistic-type-checked',
31
+ 'plugin:promise/recommended',
32
+ 'plugin:deprecation/recommended',
33
+ 'plugin:react/recommended',
34
+ 'plugin:react-hooks/recommended',
35
+ 'plugin:import/recommended',
36
+ 'plugin:import/typescript',
37
+ 'prettier',
38
+ ],
39
+ plugins: ['unused-imports'],
40
+ rules: {
41
+ curly: 1,
42
+ 'prefer-const': 1,
43
+ 'no-console': 1,
44
+ strict: 1,
45
+ 'no-debugger': 1,
46
+
47
+ 'no-extra-boolean-cast': 0,
48
+ '@typescript-eslint/no-explicit-any': 0,
49
+ '@typescript-eslint/no-non-null-assertion': 0,
50
+ '@typescript-eslint/no-unsafe-assignment': 0,
51
+ '@typescript-eslint/no-unsafe-argument': 0,
52
+ '@typescript-eslint/no-unsafe-member-access': 0,
53
+ '@typescript-eslint/no-unsafe-return': 0,
54
+ '@typescript-eslint/no-unsafe-enum-comparison': 0,
55
+ '@typescript-eslint/no-unsafe-call': 0, // todo: remove this rule later
56
+ '@typescript-eslint/explicit-function-return-type': 0,
57
+ '@typescript-eslint/consistent-type-definitions': 0,
58
+ '@typescript-eslint/no-dynamic-delete': 0,
59
+
60
+ '@typescript-eslint/ban-ts-comment': [2, {'ts-expect-error': false}],
61
+ '@typescript-eslint/no-unused-vars': [1, {varsIgnorePattern: '^_'}],
62
+ '@typescript-eslint/prefer-optional-chain': 1,
63
+ '@typescript-eslint/member-delimiter-style': [
64
+ 1,
65
+ {multiline: {delimiter: 'none'}},
66
+ ],
67
+
68
+ '@typescript-eslint/no-confusing-void-expression': [
69
+ 2,
70
+ {ignoreArrowShorthand: true},
71
+ ],
72
+
73
+ 'import/newline-after-import': 2,
74
+
75
+ 'unused-imports/no-unused-imports': 1,
76
+
77
+ '@typescript-eslint/consistent-type-imports': [
78
+ 2,
79
+ {
80
+ prefer: 'type-imports',
81
+ fixStyle: 'inline-type-imports',
82
+ },
83
+ ],
84
+
85
+ 'sort-imports': [2, {ignoreCase: true, ignoreDeclarationSort: true}],
86
+ 'import/order': [
87
+ 2,
88
+ {
89
+ groups: [
90
+ 'builtin',
91
+ 'external',
92
+ 'internal',
93
+ ['parent', 'sibling', 'index'],
94
+ ],
95
+ pathGroups: [
96
+ {
97
+ pattern: '**/*.json',
98
+ group: 'unknown',
99
+ position: 'after',
100
+ },
101
+ {
102
+ pattern: '**/*.yml',
103
+ group: 'unknown',
104
+ position: 'after',
105
+ },
106
+ ],
107
+ distinctGroup: false,
108
+ alphabetize: {
109
+ order: 'asc',
110
+ orderImportKind: 'asc',
111
+ caseInsensitive: true,
112
+ },
113
+ 'newlines-between': 'never',
114
+
115
+ // Since docs for "pathGroupsExcludedImportTypes" option are confusing,
116
+ // see more info about how to correctly use it here:
117
+ // https://github.com/import-js/eslint-plugin-import/pull/2156#issuecomment-927559466
118
+ pathGroupsExcludedImportTypes: [],
119
+ },
120
+ ],
121
+ },
122
+ },
123
+ {},
124
+ ],
125
+ }
@@ -0,0 +1,149 @@
1
+ module.exports = {
2
+ root: true,
3
+ overrides: [
4
+ {
5
+ files: ['*.{js,cjs,ts}'],
6
+ env: {
7
+ node: true,
8
+ es2021: true,
9
+ },
10
+ settings: {
11
+ 'import/resolver': {
12
+ typescript: {
13
+ alwaysTryTypes: true,
14
+ project: ['./tsconfig.json'],
15
+ },
16
+ },
17
+ },
18
+ parser: '@typescript-eslint/parser',
19
+ parserOptions: {
20
+ ecmaVersion: 2021,
21
+ sourceType: 'module',
22
+ tsconfigRootDir: __dirname,
23
+ project: ['./tsconfig.json'],
24
+ extraFileExtensions: ['.cjs'],
25
+ },
26
+ extends: [
27
+ 'eslint:recommended',
28
+ 'plugin:@typescript-eslint/recommended-requiring-type-checking',
29
+ // 'plugin:@typescript-eslint/strict-type-checked',
30
+ // 'plugin:@typescript-eslint/stylistic-type-checked',
31
+ 'plugin:promise/recommended',
32
+ 'plugin:deprecation/recommended',
33
+ 'plugin:react/recommended',
34
+ 'plugin:react-hooks/recommended',
35
+ 'plugin:import/recommended',
36
+ 'plugin:import/typescript',
37
+ 'prettier',
38
+ ],
39
+ plugins: ['unused-imports'],
40
+ rules: {
41
+ curly: 1,
42
+ 'prefer-const': 1,
43
+ 'no-console': 1,
44
+ strict: 1,
45
+ 'no-debugger': 1,
46
+
47
+ 'no-extra-boolean-cast': 0,
48
+ '@typescript-eslint/no-explicit-any': 0,
49
+ '@typescript-eslint/no-non-null-assertion': 0,
50
+ '@typescript-eslint/no-unsafe-assignment': 0,
51
+ '@typescript-eslint/no-unsafe-argument': 0,
52
+ '@typescript-eslint/no-unsafe-member-access': 0,
53
+ '@typescript-eslint/no-unsafe-return': 0,
54
+ '@typescript-eslint/no-unsafe-enum-comparison': 0,
55
+ '@typescript-eslint/no-unsafe-call': 0, // todo: remove this rule later
56
+ '@typescript-eslint/explicit-function-return-type': 0,
57
+ '@typescript-eslint/consistent-type-definitions': 0,
58
+ '@typescript-eslint/no-dynamic-delete': 0,
59
+
60
+ '@typescript-eslint/ban-ts-comment': [2, {'ts-expect-error': false}],
61
+ '@typescript-eslint/no-unused-vars': [1, {varsIgnorePattern: '^_'}],
62
+ '@typescript-eslint/prefer-optional-chain': 1,
63
+ '@typescript-eslint/member-delimiter-style': [
64
+ 1,
65
+ {multiline: {delimiter: 'none'}},
66
+ ],
67
+
68
+ '@typescript-eslint/no-confusing-void-expression': [
69
+ 2,
70
+ {ignoreArrowShorthand: true},
71
+ ],
72
+
73
+ 'import/newline-after-import': 2,
74
+
75
+ 'unused-imports/no-unused-imports': 1,
76
+
77
+ '@typescript-eslint/consistent-type-imports': [
78
+ 2,
79
+ {
80
+ prefer: 'type-imports',
81
+ fixStyle: 'inline-type-imports',
82
+ },
83
+ ],
84
+
85
+ 'sort-imports': [2, {ignoreCase: true, ignoreDeclarationSort: true}],
86
+ 'import/order': [
87
+ 2,
88
+ {
89
+ groups: [
90
+ 'builtin',
91
+ 'external',
92
+ 'internal',
93
+ ['parent', 'sibling', 'index'],
94
+ ],
95
+ pathGroups: [
96
+ {
97
+ pattern: '**/*.json',
98
+ group: 'unknown',
99
+ position: 'after',
100
+ },
101
+ {
102
+ pattern: '**/*.yml',
103
+ group: 'unknown',
104
+ position: 'after',
105
+ },
106
+ ],
107
+ distinctGroup: false,
108
+ alphabetize: {
109
+ order: 'asc',
110
+ orderImportKind: 'asc',
111
+ caseInsensitive: true,
112
+ },
113
+ 'newlines-between': 'never',
114
+
115
+ // Since docs for "pathGroupsExcludedImportTypes" option are confusing,
116
+ // see more info about how to correctly use it here:
117
+ // https://github.com/import-js/eslint-plugin-import/pull/2156#issuecomment-927559466
118
+ pathGroupsExcludedImportTypes: [],
119
+ },
120
+ ],
121
+ },
122
+ },
123
+ {
124
+ files: ['*.{yml,yaml}'],
125
+ extends: ['plugin:yml/standard'],
126
+ rules: {
127
+ // 'yml/no-irregular-whitespace': 0,
128
+ // 'yml/quotes': [2, {prefer: 'double', avoidEscape: true}],
129
+ 'yml/plain-scalar': 0,
130
+ 'yml/no-multiple-empty-lines': [2, {max: 1}],
131
+ },
132
+ },
133
+ {
134
+ files: ['*.md'],
135
+ parser: 'eslint-plugin-markdownlint/parser',
136
+ extends: ['plugin:markdownlint/recommended'],
137
+ rules: {
138
+ // Rules docs:
139
+ // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
140
+
141
+ 'markdownlint/md013': 0, // Line length
142
+ 'markdownlint/md024': [2, {siblings_only: true}], // Multiple headings with the same content
143
+ 'markdownlint/md025': 0, // Multiple top-level headings in the same document
144
+ 'markdownlint/md033': 0, // Inline HTML
145
+ 'markdownlint/md041': 0, // First line in a file should be a top-level heading
146
+ },
147
+ },
148
+ ],
149
+ }