@jcoreio/toolchain 5.4.0 → 5.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcoreio/toolchain",
3
- "version": "5.4.0",
3
+ "version": "5.4.2",
4
4
  "description": "base JS build toolchain",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,6 @@ module.exports = [
18
18
  ),
19
19
  js.configs.recommended,
20
20
  {
21
- files: ['**/*.{js,cjs,mjs}'],
22
21
  plugins: {
23
22
  '@jcoreio/implicit-dependencies': require('@jcoreio/eslint-plugin-implicit-dependencies'),
24
23
  },
@@ -31,19 +30,6 @@ module.exports = [
31
30
  optional: true,
32
31
  },
33
32
  ],
34
- 'arrow-spacing': 'error',
35
- 'comma-spacing': 'error',
36
- 'computed-property-spacing': ['error', 'never'],
37
- 'eol-last': 'error',
38
- 'jsx-quotes': 'error',
39
- 'keyword-spacing': 'error',
40
- 'key-spacing': [
41
- 'error',
42
- {
43
- mode: 'strict',
44
- },
45
- ],
46
- 'linebreak-style': 'error',
47
33
  'no-console': 'error',
48
34
  'no-unused-vars': [
49
35
  'error',
@@ -52,34 +38,9 @@ module.exports = [
52
38
  varsIgnorePattern: 'React',
53
39
  },
54
40
  ],
55
- 'no-extra-semi': 'error',
56
- 'no-multi-spaces': 'error',
57
- 'no-multiple-empty-lines': 'error',
58
- 'no-trailing-spaces': 'error',
59
41
  'no-unexpected-multiline': 'error',
60
42
  'no-unreachable': 'error',
61
- 'no-whitespace-before-property': 'error',
62
43
  'object-shorthand': ['error', 'always'],
63
- 'padded-blocks': ['error', 'never'],
64
- semi: ['error', 'never'],
65
- 'space-before-blocks': ['error', 'always'],
66
- 'space-before-function-paren': [
67
- 'error',
68
- {
69
- anonymous: 'always',
70
- named: 'never',
71
- },
72
- ],
73
- 'space-in-parens': ['error', 'never'],
74
- 'space-infix-ops': ['error', { int32Hint: false }],
75
- 'space-unary-ops': [
76
- 'error',
77
- {
78
- words: true,
79
- nonwords: false,
80
- },
81
- ],
82
- 'rest-spread-spacing': ['error', 'never'],
83
44
  },
84
45
  },
85
46
  {
@@ -81,7 +81,11 @@ async function migrateProjectPackageJson({ fromVersion }) {
81
81
  name: 'selected',
82
82
  type: 'multiselect',
83
83
  message: 'Select dependencies to uninstall:',
84
- choices: promptRemoveDevDeps,
84
+ choices: promptRemoveDevDeps.map((dep) => ({
85
+ title: dep,
86
+ value: dep,
87
+ selected: true,
88
+ })),
85
89
  })
86
90
  ).selected
87
91
  : promptRemoveDevDeps
@@ -113,7 +113,6 @@ module.exports = [
113
113
  'isparta',
114
114
  'istanbul',
115
115
  'jsdom-global',
116
- 'lint-staged',
117
116
  'prettier-eslint',
118
117
  'rimraf',
119
118
  'semantic-release',
@@ -64,7 +64,8 @@ async function migrateLegacyEslintConfigs(configs) {
64
64
  }
65
65
 
66
66
  const CONFIG = expression.ast(`[...require('${name}/eslintConfig.cjs')]`)
67
- for (const [file, content] of Object.entries(configs)) {
67
+ for (const file of Object.keys(configs).sort()) {
68
+ const content = configs[file]
68
69
  function warn(warning) {
69
70
  ;(warnings[file] || (warnings[file] = [])).push(warning)
70
71
  }