@elliemae/ds-codemods 2.3.1-rc.2 → 3.0.0-alpha.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.
- package/package.json +23 -19
- package/.eslintrc-backup.js +0 -70
- package/CHANGELOG.md +0 -2075
- package/src/cli/code-mods/cli.js +0 -32
- package/src/cli/code-mods/command-arguments/promptCheckEmPackagesInconsistencies.js +0 -22
- package/src/cli/code-mods/command-arguments/promptFixLegacyImports.js +0 -21
- package/src/cli/code-mods/command-arguments/promptMissingPackages.js +0 -29
- package/src/cli/code-mods/command-logics/check-missing-packages/index.js +0 -82
- package/src/cli/code-mods/command-logics/check-packages-inconsistencies/getPackageJsonEmDsVersions.js +0 -43
- package/src/cli/code-mods/command-logics/check-packages-inconsistencies/index.js +0 -59
- package/src/cli/code-mods/command-logics/execute-commands-map.js +0 -23
- package/src/cli/code-mods/command-logics/fix-legacy-imports/index.js +0 -29
- package/src/cli/code-mods/command-logics/fix-legacy-imports/legacyImportMap.js +0 -109
- package/src/cli/code-mods/commands.js +0 -9
- package/src/cli/code-mods/inquirer-questions-prompter.js +0 -52
- package/src/cli/utils/generatePathFromCurrentFolder.js +0 -5
- package/src/cli/utils/getLatestDimsumVersion.js +0 -15
- package/src/cli/utils/globArray.js +0 -11
- package/src/cli/utils/index.js +0 -5
- package/src/cli/utils/matchHelpers.js +0 -38
- package/src/cli/utils/replaceFromMap.js +0 -15
- package/test-ables/check-packages-inconsistencies/package.json.test +0 -54
- package/test-ables/fix-legacy-imports/legacy-react-ts.tsx.mock +0 -62
- package/test-ables/fix-legacy-imports/legacy-react-ts2.tsx.mock +0 -62
- package/test-ables/fix-legacy-imports/legacy-react.jsx.mock +0 -62
- package/test-ables/fix-legacy-imports/legacy-react2.jsx.mock +0 -62
- package/test-ables/fix-legacy-imports/legacy-ts.ts.mock +0 -62
- package/test-ables/fix-legacy-imports/legacy-ts2.ts.mock +0 -62
- package/test-ables/fix-legacy-imports/legacy1.js.mock +0 -61
- package/test-ables/fix-legacy-imports/legacy2.js.mock +0 -61
- package/tsconfig.json +0 -10
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-codemods",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Code Mods",
|
|
6
|
-
"
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
7
10
|
"main": "./src/index.js",
|
|
8
11
|
"bin": {
|
|
9
|
-
"@elliemae/ds-codemods": "
|
|
12
|
+
"@elliemae/ds-codemods": "2.3.0-alpha.4",
|
|
10
13
|
"ds-codemods": "bin/ds-codemods"
|
|
11
14
|
},
|
|
12
15
|
"sideEffects": [
|
|
@@ -18,32 +21,28 @@
|
|
|
18
21
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
19
22
|
},
|
|
20
23
|
"engines": {
|
|
21
|
-
"
|
|
22
|
-
"node": ">=
|
|
24
|
+
"pnpm": ">=6",
|
|
25
|
+
"node": ">=16"
|
|
23
26
|
},
|
|
24
27
|
"author": "ICE MT",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
28
|
+
"jestSonar": {
|
|
29
|
+
"sonar56x": true,
|
|
30
|
+
"reportPath": "reports",
|
|
31
|
+
"reportFile": "tests.xml",
|
|
32
|
+
"indent": 4
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
33
35
|
"arg": "^5.0.1",
|
|
34
|
-
"chalk": "
|
|
35
|
-
"depcheck": "1.4.
|
|
36
|
+
"chalk": "4.1.2",
|
|
37
|
+
"depcheck": "1.4.2",
|
|
36
38
|
"esm": "^3.2.25",
|
|
37
39
|
"fs": "0.0.1-security",
|
|
38
40
|
"fs-extra": "^10.0.0",
|
|
39
41
|
"glob": "^7.2.0",
|
|
40
42
|
"inquirer": "^8.2.0",
|
|
41
|
-
"pacote": "12.0.
|
|
43
|
+
"pacote": "12.0.2",
|
|
42
44
|
"path": "^0.12.7"
|
|
43
45
|
},
|
|
44
|
-
"resolutions": {
|
|
45
|
-
"depcheck/@babel/parser": "7.16.4"
|
|
46
|
-
},
|
|
47
46
|
"publishConfig": {
|
|
48
47
|
"access": "public"
|
|
49
48
|
},
|
|
@@ -51,5 +50,10 @@
|
|
|
51
50
|
"cli",
|
|
52
51
|
"dimsum",
|
|
53
52
|
"codemods"
|
|
54
|
-
]
|
|
55
|
-
|
|
53
|
+
],
|
|
54
|
+
"scripts": {
|
|
55
|
+
"dev": "exit 0",
|
|
56
|
+
"test": "exit 0",
|
|
57
|
+
"build": "exit 0"
|
|
58
|
+
}
|
|
59
|
+
}
|
package/.eslintrc-backup.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
parser: 'babel-eslint',
|
|
4
|
-
extends: ['airbnb', 'prettier'],
|
|
5
|
-
plugins: ['prettier'],
|
|
6
|
-
env: {
|
|
7
|
-
jest: false,
|
|
8
|
-
browser: false,
|
|
9
|
-
node: true,
|
|
10
|
-
es6: true,
|
|
11
|
-
},
|
|
12
|
-
parserOptions: {
|
|
13
|
-
ecmaVersion: 6,
|
|
14
|
-
sourceType: 'module',
|
|
15
|
-
ecmaFeatures: {
|
|
16
|
-
jsx: false,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
rules: {
|
|
20
|
-
'prettier/prettier': [
|
|
21
|
-
'error',
|
|
22
|
-
{
|
|
23
|
-
printWidth: 120,
|
|
24
|
-
tabWidth: 2,
|
|
25
|
-
useTabs: false,
|
|
26
|
-
semi: true,
|
|
27
|
-
singleQuote: true,
|
|
28
|
-
trailingComma: 'all',
|
|
29
|
-
parser: 'babel',
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
'arrow-body-style': [2, 'as-needed'],
|
|
33
|
-
'class-methods-use-this': 0,
|
|
34
|
-
// 'import/imports-first': 0,
|
|
35
|
-
'import/newline-after-import': 0,
|
|
36
|
-
'import/no-dynamic-require': 0,
|
|
37
|
-
'import/no-extraneous-dependencies': 0,
|
|
38
|
-
'import/no-named-as-default': 0,
|
|
39
|
-
'import/no-unresolved': 2,
|
|
40
|
-
'import/no-webpack-loader-syntax': 0,
|
|
41
|
-
'import/prefer-default-export': 0,
|
|
42
|
-
'jest/valid-title': 0,
|
|
43
|
-
'jest/valid-describe': 0,
|
|
44
|
-
indent: [
|
|
45
|
-
2,
|
|
46
|
-
2,
|
|
47
|
-
{
|
|
48
|
-
SwitchCase: 1,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
'max-lines': ['error', { max: 120, skipComments: true }],
|
|
52
|
-
complexity: ['error', { max: 10 }],
|
|
53
|
-
'max-depth': ['error', { max: 4 }],
|
|
54
|
-
'max-lines-per-function': 0,
|
|
55
|
-
'max-nested-callbacks': ['error', { max: 3 }],
|
|
56
|
-
'max-params': ['error', { max: 3 }],
|
|
57
|
-
'max-statements': ['error', { max: 20 }],
|
|
58
|
-
'max-len': 0,
|
|
59
|
-
'newline-per-chained-call': 0,
|
|
60
|
-
'no-confusing-arrow': 0,
|
|
61
|
-
'no-console': 0,
|
|
62
|
-
'no-param-reassign': ['error', { props: false }],
|
|
63
|
-
'no-unused-vars': 2,
|
|
64
|
-
'no-use-before-define': 0,
|
|
65
|
-
'prefer-template': 2,
|
|
66
|
-
'require-yield': 0,
|
|
67
|
-
},
|
|
68
|
-
overrides: [],
|
|
69
|
-
settings: {},
|
|
70
|
-
};
|