@dword-design/eslint-config 5.0.6 → 5.0.8

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.
@@ -95,10 +95,6 @@ export default (() => {
95
95
  blankLine: 'never',
96
96
  next: '*',
97
97
  prev: '*'
98
- }, {
99
- blankLine: 'always',
100
- next: ['var', 'const'],
101
- prev: ['*']
102
98
  }, {
103
99
  blankLine: 'always',
104
100
  next: '*',
@@ -107,13 +103,22 @@ export default (() => {
107
103
  blankLine: 'any',
108
104
  next: 'import',
109
105
  prev: 'import'
110
- }, {
106
+ }, ...Object.keys({
107
+ 'block-like': true,
108
+ const: true,
109
+ expression: true,
110
+ let: true
111
+ }).flatMap(name => [{
111
112
  blankLine: 'always',
112
- next: 'export',
113
+ next: `multiline-${name}`,
113
114
  prev: '*'
114
115
  }, {
115
116
  blankLine: 'always',
116
- next: 'return',
117
+ next: '*',
118
+ prev: `multiline-${name}`
119
+ }]), {
120
+ blankLine: 'always',
121
+ next: 'export',
117
122
  prev: '*'
118
123
  }],
119
124
  'prefer-arrow/prefer-arrow-functions': ['error'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/eslint-config",
3
- "version": "5.0.6",
3
+ "version": "5.0.8",
4
4
  "repository": "dword-design/eslint-config",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -36,9 +36,9 @@
36
36
  "eslint-plugin-prefer-arrow": "^1.1.6",
37
37
  "eslint-plugin-prettier": "^5.1.3",
38
38
  "eslint-plugin-promise": "^6.1.1",
39
- "eslint-plugin-simple-import-sort": "^10.0.0",
39
+ "eslint-plugin-simple-import-sort": "^12.1.0",
40
40
  "eslint-plugin-sort-keys-fix": "^1.1.1",
41
- "eslint-plugin-unicorn": "^50.0.1",
41
+ "eslint-plugin-unicorn": "^54.0.0",
42
42
  "eslint-plugin-vue": "^9.10.0",
43
43
  "jiti": "^1.18.2",
44
44
  "load-pkg": "^4.0.0",
@@ -50,7 +50,7 @@
50
50
  "@dword-design/base": "^11.0.1",
51
51
  "deepmerge": "^4.2.2",
52
52
  "eslint": "^8.35.0",
53
- "execa": "^8.0.1",
53
+ "execa": "^9.3.0",
54
54
  "fs-extra": "^11.1.1",
55
55
  "in-folder": "^1.0.3",
56
56
  "node-version": "^3.0.0",