eslint-plugin-lube 0.5.0 → 0.5.1

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 (52) hide show
  1. package/index.js +9 -8
  2. package/package.json +4 -2
  3. package/rules/svelte-naming-convention.js +4 -4
  4. package/test/pretty-imports/ExportNamedDeclaration.js +12 -12
  5. package/test/pretty-imports/ImportDeclaration.js +12 -12
  6. package/test/pretty-jsdoc-casting/case_by_expression.js +60 -20
  7. package/test/pretty-jsdoc-casting/various_situations.js +29 -13
  8. package/test/pretty-sequence/case_by_node_type.js +56 -36
  9. package/test/pretty-sequence/case_by_option.js +23 -23
  10. package/test/pretty-sequence/various_situations.js +23 -12
  11. package/test/svelte-naming-convention/basic_snake_case.js +21 -8
  12. package/test/svelte-naming-convention/case_by_identifier.js +696 -180
  13. package/test/svelte-naming-convention/snake_case_with_symbols.js +28 -7
  14. package/tsconfig.json +7 -2
  15. package/types/index.d.ts +15 -0
  16. package/types/index.d.ts.map +1 -0
  17. package/types/rules/pretty-imports.d.ts +3 -0
  18. package/types/rules/pretty-imports.d.ts.map +1 -0
  19. package/types/rules/pretty-jsdoc-casting.d.ts +3 -0
  20. package/types/rules/pretty-jsdoc-casting.d.ts.map +1 -0
  21. package/types/rules/pretty-sequence.d.ts +3 -0
  22. package/types/rules/pretty-sequence.d.ts.map +1 -0
  23. package/types/rules/svelte-naming-convention.d.ts +3 -0
  24. package/types/rules/svelte-naming-convention.d.ts.map +1 -0
  25. package/types/test/pretty-imports/ExportNamedDeclaration.d.ts +2 -0
  26. package/types/test/pretty-imports/ExportNamedDeclaration.d.ts.map +1 -0
  27. package/types/test/pretty-imports/ImportDeclaration.d.ts +2 -0
  28. package/types/test/pretty-imports/ImportDeclaration.d.ts.map +1 -0
  29. package/types/test/pretty-imports.d.ts +2 -0
  30. package/types/test/pretty-imports.d.ts.map +1 -0
  31. package/types/test/pretty-jsdoc-casting/case_by_expression.d.ts +2 -0
  32. package/types/test/pretty-jsdoc-casting/case_by_expression.d.ts.map +1 -0
  33. package/types/test/pretty-jsdoc-casting/various_situations.d.ts +2 -0
  34. package/types/test/pretty-jsdoc-casting/various_situations.d.ts.map +1 -0
  35. package/types/test/pretty-jsdoc-casting.d.ts +2 -0
  36. package/types/test/pretty-jsdoc-casting.d.ts.map +1 -0
  37. package/types/test/pretty-sequence/case_by_node_type.d.ts +2 -0
  38. package/types/test/pretty-sequence/case_by_node_type.d.ts.map +1 -0
  39. package/types/test/pretty-sequence/case_by_option.d.ts +2 -0
  40. package/types/test/pretty-sequence/case_by_option.d.ts.map +1 -0
  41. package/types/test/pretty-sequence/various_situations.d.ts +2 -0
  42. package/types/test/pretty-sequence/various_situations.d.ts.map +1 -0
  43. package/types/test/pretty-sequence.d.ts +2 -0
  44. package/types/test/pretty-sequence.d.ts.map +1 -0
  45. package/types/test/svelte-naming-convention/basic_snake_case.d.ts +2 -0
  46. package/types/test/svelte-naming-convention/basic_snake_case.d.ts.map +1 -0
  47. package/types/test/svelte-naming-convention/case_by_identifier.d.ts +2 -0
  48. package/types/test/svelte-naming-convention/case_by_identifier.d.ts.map +1 -0
  49. package/types/test/svelte-naming-convention/snake_case_with_symbols.d.ts +2 -0
  50. package/types/test/svelte-naming-convention/snake_case_with_symbols.d.ts.map +1 -0
  51. package/types/test/svelte-naming-convention.d.ts +2 -0
  52. package/types/test/svelte-naming-convention.d.ts.map +1 -0
package/index.js CHANGED
@@ -21,14 +21,14 @@ Object.assign(
21
21
  "arrow-parens": [ "error", "as-needed" ],
22
22
  "arrow-spacing": [
23
23
  "error",
24
- { "before": true, "after": true }
24
+ { "after": true, "before": true }
25
25
  ],
26
26
  "block-spacing": [ "error", "always" ],
27
27
  "brace-style": [ "error", "1tbs" ],
28
28
  "comma-dangle": [ "error", "never" ],
29
29
  "comma-spacing": [
30
30
  "error",
31
- { "before": false, "after": true }
31
+ { "after": true, "before": false }
32
32
  ],
33
33
  "comma-style": [ "error", "last" ],
34
34
  "computed-property-spacing": [ "error", "never" ],
@@ -50,6 +50,10 @@ Object.assign(
50
50
  "error",
51
51
  { "after": true, "before": true }
52
52
  ],
53
+ "lube/pretty-imports": "error",
54
+ "lube/pretty-jsdoc-casting": "error",
55
+ "lube/pretty-sequence": "error",
56
+ "lube/svelte-naming-convention": "error",
53
57
  "max-len": [ "warn", 120 ],
54
58
  "max-statements-per-line": [ "error", { "max": 1 } ],
55
59
  "multiline-ternary": [ "error", "always-multiline" ],
@@ -76,6 +80,7 @@ Object.assign(
76
80
  ],
77
81
  "object-curly-newline": [ "error", { "consistent": true } ],
78
82
  "object-curly-spacing": [ "error", "always" ],
83
+ "one-var": [ "error", "never" ],
79
84
  "operator-linebreak": [ "error", "before" ],
80
85
  "prefer-const": [
81
86
  "warn",
@@ -105,7 +110,7 @@ Object.assign(
105
110
  "space-infix-ops": [ "error", { "int32Hint": true } ],
106
111
  "space-unary-ops": [
107
112
  "error",
108
- { "words": true, "nonwords": false }
113
+ { "nonwords": false, "words": true }
109
114
  ],
110
115
  "switch-colon-spacing": [
111
116
  "error",
@@ -113,11 +118,7 @@ Object.assign(
113
118
  ],
114
119
  "template-curly-spacing": [ "error", "never" ],
115
120
  "template-tag-spacing": [ "error", "never" ],
116
- "yield-star-spacing": [ "error", "after" ],
117
- "lube/pretty-imports": "error",
118
- "lube/pretty-jsdoc-casting": "error",
119
- "lube/pretty-sequence": "error",
120
- "lube/svelte-naming-convention": "error"
121
+ "yield-star-spacing": [ "error", "after" ]
121
122
  }
122
123
  }
123
124
  )
package/package.json CHANGED
@@ -20,6 +20,7 @@
20
20
  "jsdoc"
21
21
  ],
22
22
  "license": "MIT",
23
+ "main": "index.js",
23
24
  "name": "eslint-plugin-lube",
24
25
  "peerDependencies": {
25
26
  "eslint": ">=9.0.0"
@@ -30,9 +31,10 @@
30
31
  "url": "https://github.com/Artxe2/lube-series"
31
32
  },
32
33
  "scripts": {
33
- "dts": "tsc",
34
+ "dts": "node ../../scripts/tsc_with_clean.js eslint-plugin-lube",
34
35
  "test": "mocha"
35
36
  },
36
37
  "type": "commonjs",
37
- "version": "0.5.0"
38
+ "types": "types/index.d.ts",
39
+ "version": "0.5.1"
38
40
  }
@@ -346,10 +346,10 @@ module.exports = {
346
346
  // while (camelCase) {}
347
347
  defer(node)
348
348
  break
349
- case "WithStatement":
350
- // with (camelCase) {}
351
- defer(node)
352
- break
349
+ // case "WithStatement":
350
+ // // with (camelCase) {}
351
+ // defer(node)
352
+ // break
353
353
  case "YieldExpression":
354
354
  // function* func() { yield camelCase }
355
355
  defer(node)
@@ -41,16 +41,16 @@ exports.module = (valid, invalid) => {
41
41
  `,
42
42
  errors: [
43
43
  {
44
- messageId: "exports",
45
- type: "ExportNamedDeclaration",
44
+ column: 4,
46
45
  line: 3,
47
- column: 4
46
+ messageId: "exports",
47
+ type: "ExportNamedDeclaration"
48
48
  },
49
49
  {
50
- messageId: "exports",
51
- type: "ExportNamedDeclaration",
50
+ column: 7,
52
51
  line: 4,
53
- column: 7
52
+ messageId: "exports",
53
+ type: "ExportNamedDeclaration"
54
54
  }
55
55
  ],
56
56
  options: [
@@ -84,16 +84,16 @@ exports.module = (valid, invalid) => {
84
84
  `,
85
85
  errors: [
86
86
  {
87
- messageId: "exports",
88
- type: "ExportNamedDeclaration",
87
+ column: 4,
89
88
  line: 3,
90
- column: 4
89
+ messageId: "exports",
90
+ type: "ExportNamedDeclaration"
91
91
  },
92
92
  {
93
- messageId: "exports",
94
- type: "ExportNamedDeclaration",
93
+ column: 7,
95
94
  line: 4,
96
- column: 7
95
+ messageId: "exports",
96
+ type: "ExportNamedDeclaration"
97
97
  }
98
98
  ],
99
99
  options: [
@@ -43,16 +43,16 @@ import {
43
43
  `,
44
44
  errors: [
45
45
  {
46
- messageId: "imports",
47
- type: "ImportDeclaration",
46
+ column: 4,
48
47
  line: 3,
49
- column: 4
48
+ messageId: "imports",
49
+ type: "ImportDeclaration"
50
50
  },
51
51
  {
52
- messageId: "imports",
53
- type: "ImportDeclaration",
52
+ column: 7,
54
53
  line: 4,
55
- column: 7
54
+ messageId: "imports",
55
+ type: "ImportDeclaration"
56
56
  }
57
57
  ],
58
58
  options: [
@@ -86,16 +86,16 @@ import {
86
86
  `,
87
87
  errors: [
88
88
  {
89
- messageId: "imports",
90
- type: "ImportDeclaration",
89
+ column: 4,
91
90
  line: 3,
92
- column: 4
91
+ messageId: "imports",
92
+ type: "ImportDeclaration"
93
93
  },
94
94
  {
95
- messageId: "imports",
96
- type: "ImportDeclaration",
95
+ column: 7,
97
96
  line: 4,
98
- column: 7
97
+ messageId: "imports",
98
+ type: "ImportDeclaration"
99
99
  }
100
100
  ],
101
101
  options: [
@@ -14,11 +14,36 @@ const test_case = (type, value) => ({
14
14
  var value = ((/** @type {E} */(${value})))
15
15
  `,
16
16
  errors: [
17
- { line: 2, column: 13, type },
18
- { line: 3, column: 13, type },
19
- { line: 4, column: 13, type },
20
- { line: 7, column: 13, type },
21
- { line: 8, column: 13, type }
17
+ {
18
+ column: 13,
19
+ line: 2,
20
+ messageId: "not_match",
21
+ type
22
+ },
23
+ {
24
+ column: 13,
25
+ line: 3,
26
+ messageId: "not_match",
27
+ type
28
+ },
29
+ {
30
+ column: 13,
31
+ line: 4,
32
+ messageId: "not_match",
33
+ type
34
+ },
35
+ {
36
+ column: 13,
37
+ line: 7,
38
+ messageId: "not_match",
39
+ type
40
+ },
41
+ {
42
+ column: 13,
43
+ line: 8,
44
+ messageId: "not_match",
45
+ type
46
+ }
22
47
  ],
23
48
  output: `
24
49
  var value = /** @type {A} */(${value})/**/
@@ -60,28 +85,33 @@ exports.module = (valid, invalid) => {
60
85
  `,
61
86
  errors: [
62
87
  {
63
- line: 2,
64
88
  column: 24,
89
+ line: 2,
90
+ messageId: "not_match",
65
91
  type: "AwaitExpression"
66
92
  },
67
93
  {
68
- line: 3,
69
94
  column: 31,
95
+ line: 3,
96
+ messageId: "not_match",
70
97
  type: "AwaitExpression"
71
98
  },
72
99
  {
73
- line: 4,
74
100
  column: 31,
101
+ line: 4,
102
+ messageId: "not_match",
75
103
  type: "AwaitExpression"
76
104
  },
77
105
  {
78
- line: 7,
79
106
  column: 7,
107
+ line: 7,
108
+ messageId: "not_match",
80
109
  type: "AwaitExpression"
81
110
  },
82
111
  {
83
- line: 8,
84
112
  column: 33,
113
+ line: 8,
114
+ messageId: "not_match",
85
115
  type: "AwaitExpression"
86
116
  }
87
117
  ],
@@ -137,28 +167,33 @@ exports.module = (valid, invalid) => {
137
167
  `,
138
168
  errors: [
139
169
  {
140
- line: 2,
141
170
  column: 18,
171
+ line: 2,
172
+ messageId: "not_match",
142
173
  type: "MetaProperty"
143
174
  },
144
175
  {
145
- line: 3,
146
176
  column: 34,
177
+ line: 3,
178
+ messageId: "not_match",
147
179
  type: "MetaProperty"
148
180
  },
149
181
  {
150
- line: 4,
151
182
  column: 34,
183
+ line: 4,
184
+ messageId: "not_match",
152
185
  type: "MetaProperty"
153
186
  },
154
187
  {
155
- line: 7,
156
188
  column: 7,
189
+ line: 7,
190
+ messageId: "not_match",
157
191
  type: "MetaProperty"
158
192
  },
159
193
  {
160
- line: 8,
161
194
  column: 36,
195
+ line: 8,
196
+ messageId: "not_match",
162
197
  type: "MetaProperty"
163
198
  }
164
199
  ],
@@ -205,28 +240,33 @@ exports.module = (valid, invalid) => {
205
240
  `,
206
241
  errors: [
207
242
  {
208
- line: 2,
209
243
  column: 19,
244
+ line: 2,
245
+ messageId: "not_match",
210
246
  type: "YieldExpression"
211
247
  },
212
248
  {
213
- line: 3,
214
249
  column: 31,
250
+ line: 3,
251
+ messageId: "not_match",
215
252
  type: "YieldExpression"
216
253
  },
217
254
  {
218
- line: 4,
219
255
  column: 31,
256
+ line: 4,
257
+ messageId: "not_match",
220
258
  type: "YieldExpression"
221
259
  },
222
260
  {
223
- line: 7,
224
261
  column: 7,
262
+ line: 7,
263
+ messageId: "not_match",
225
264
  type: "YieldExpression"
226
265
  },
227
266
  {
228
- line: 8,
229
267
  column: 33,
268
+ line: 8,
269
+ messageId: "not_match",
230
270
  type: "YieldExpression"
231
271
  }
232
272
  ],
@@ -37,30 +37,44 @@ exports.module = (valid, invalid) => {
37
37
  .../** @type {X} */(x)/**/
38
38
  })/**/;
39
39
  /** @type {Y} */(y, /** @type {Z} */(z[/** @type {123} */(123)/**/])/**/)/**/`,
40
- languageOptions: {
41
- parserOptions: { ecmaVersion: "latest" }
40
+ languageOptions: {
41
+ parserOptions: { ecmaVersion: "latest" }
42
42
  }
43
43
  }
44
44
  )
45
45
  invalid.push(
46
46
  {
47
47
  code: "var v = /**@type {A}*/(a)/**/",
48
- errors: [ { column: 8, line: 1 } ],
48
+ errors: [
49
+ {
50
+ column: 8,
51
+ line: 1,
52
+ messageId: "not_match"
53
+ }
54
+ ],
49
55
  output: "var v = /** @type {A} */(a)/**/"
50
56
  },
51
57
  {
52
58
  code: "var v = /** @type {A} */( /** @type {B} */(/** @type {C} */((a) /* block... */))) // line...",
53
- errors: [ { column: 8, line: 1 } ],
59
+ errors: [
60
+ {
61
+ column: 8,
62
+ line: 1,
63
+ messageId: "not_match"
64
+ }
65
+ ],
66
+ // eslint-disable-next-line max-len
54
67
  output: "var v = /** @type {A} */(/** @type {B} */(/** @type {C} */((a))/**/)/**/)/**/ /* block... */ // line..."
55
68
  },
56
69
  {
57
70
  code: "var v = { b: /** @type {A} */(a) }",
58
- errors: [ { column: 13, line: 1 } ],
59
- output: "var v = { b: /** @type {A} */(a)/**/ }"
60
- },
61
- {
62
- code: "var v = { b: /** @type {A} */(a) }",
63
- errors: [ { column: 13, line: 1 } ],
71
+ errors: [
72
+ {
73
+ column: 13,
74
+ line: 1,
75
+ messageId: "not_match"
76
+ }
77
+ ],
64
78
  output: "var v = { b: /** @type {A} */(a)/**/ }"
65
79
  },
66
80
  {
@@ -75,7 +89,9 @@ exports.module = (valid, invalid) => {
75
89
  .../** @type {X} */(x)
76
90
  });
77
91
  /** @type {Y} */(y, /** @type {Z} */(z[/** @type {123} */(123)]))`,
78
- errors: [ ...new Array(21).fill({}) ],
92
+ errors: [
93
+ ...new Array(21).fill({ messageId: "not_match" })
94
+ ],
79
95
  output: `var v = /** @type {V} */({
80
96
  a: /** @type {A} */([/** @type {B} */(b)/**/, /** @type {C} */(c)/**/, /** @type {D} */(d)/**/])/**/,
81
97
  e: /** @type {F} */(f)/**/(/** @type {G} */(g)/**/, /** @type {E} */(E)/**/, /** @type {I} */(i)/**/),
@@ -87,8 +103,8 @@ exports.module = (valid, invalid) => {
87
103
  .../** @type {X} */(x)/**/
88
104
  })/**/;
89
105
  /** @type {Y} */(y, /** @type {Z} */(z[/** @type {123} */(123)/**/])/**/)/**/`,
90
- languageOptions: {
91
- parserOptions: { ecmaVersion: "latest" }
106
+ languageOptions: {
107
+ parserOptions: { ecmaVersion: "latest" }
92
108
  }
93
109
  }
94
110
  )
@@ -12,13 +12,15 @@ exports.module = (valid, invalid) => {
12
12
  `,
13
13
  errors: [
14
14
  {
15
- line: 2,
16
15
  column: 17,
16
+ line: 2,
17
+ messageId: "not_match",
17
18
  type: "ArrayExpression"
18
19
  },
19
20
  {
20
- line: 3,
21
21
  column: 17,
22
+ line: 3,
23
+ messageId: "not_match",
22
24
  type: "ArrayExpression"
23
25
  }
24
26
  ],
@@ -40,13 +42,15 @@ exports.module = (valid, invalid) => {
40
42
  `,
41
43
  errors: [
42
44
  {
43
- line: 2,
44
45
  column: 9,
46
+ line: 2,
47
+ messageId: "not_match",
45
48
  type: "ArrayPattern"
46
49
  },
47
50
  {
48
- line: 3,
49
51
  column: 9,
52
+ line: 3,
53
+ messageId: "not_match",
50
54
  type: "ArrayPattern"
51
55
  }
52
56
  ],
@@ -59,8 +63,8 @@ exports.module = (valid, invalid) => {
59
63
  ] = value
60
64
  var [] = value
61
65
  `,
62
- languageOptions: {
63
- parserOptions: { ecmaVersion: "latest" }
66
+ languageOptions: {
67
+ parserOptions: { ecmaVersion: "latest" }
64
68
  }
65
69
  },
66
70
  {
@@ -78,13 +82,15 @@ exports.module = (valid, invalid) => {
78
82
  `,
79
83
  errors: [
80
84
  {
81
- line: 2,
82
85
  column: 17,
86
+ line: 2,
87
+ messageId: "not_match",
83
88
  type: "ArrowFunctionExpression"
84
89
  },
85
90
  {
86
- line: 5,
87
91
  column: 17,
92
+ line: 5,
93
+ messageId: "not_match",
88
94
  type: "ArrowFunctionExpression"
89
95
  }
90
96
  ],
@@ -104,8 +110,8 @@ exports.module = (valid, invalid) => {
104
110
  var value = async a => b
105
111
  var value = async (a, b, c) => {}
106
112
  `,
107
- languageOptions: {
108
- parserOptions: { ecmaVersion: "latest" }
113
+ languageOptions: {
114
+ parserOptions: { ecmaVersion: "latest" }
109
115
  }
110
116
  },
111
117
  {
@@ -116,18 +122,20 @@ exports.module = (valid, invalid) => {
116
122
  function func2(aaaaaaaaaa, bbbbbbbbbbb, ccccccccccc) {
117
123
  //
118
124
  }
119
- function func() {}
120
- async function func() {}
125
+ function func3() {}
126
+ async function func4() {}
121
127
  `,
122
128
  errors: [
123
129
  {
124
- line: 2,
125
130
  column: 18,
131
+ line: 2,
132
+ messageId: "not_match",
126
133
  type: "FunctionDeclaration"
127
134
  },
128
135
  {
129
- line: 5,
130
136
  column: 19,
137
+ line: 5,
138
+ messageId: "not_match",
131
139
  type: "FunctionDeclaration"
132
140
  }
133
141
  ],
@@ -142,11 +150,11 @@ exports.module = (valid, invalid) => {
142
150
  ) {
143
151
  //
144
152
  }
145
- function func() {}
146
- async function func() {}
153
+ function func3() {}
154
+ async function func4() {}
147
155
  `,
148
- languageOptions: {
149
- parserOptions: { ecmaVersion: "latest" }
156
+ languageOptions: {
157
+ parserOptions: { ecmaVersion: "latest" }
150
158
  }
151
159
  },
152
160
  {
@@ -162,13 +170,15 @@ exports.module = (valid, invalid) => {
162
170
  `,
163
171
  errors: [
164
172
  {
165
- line: 2,
166
173
  column: 26,
174
+ line: 2,
175
+ messageId: "not_match",
167
176
  type: "FunctionExpression"
168
177
  },
169
178
  {
170
- line: 5,
171
179
  column: 26,
180
+ line: 5,
181
+ messageId: "not_match",
172
182
  type: "FunctionExpression"
173
183
  }
174
184
  ],
@@ -186,8 +196,8 @@ exports.module = (valid, invalid) => {
186
196
  var value = function () {}
187
197
  var value = async function () {}
188
198
  `,
189
- languageOptions: {
190
- parserOptions: { ecmaVersion: "latest" }
199
+ languageOptions: {
200
+ parserOptions: { ecmaVersion: "latest" }
191
201
  }
192
202
  },
193
203
  {
@@ -198,13 +208,15 @@ exports.module = (valid, invalid) => {
198
208
  `,
199
209
  errors: [
200
210
  {
201
- line: 2,
202
211
  column: 9,
212
+ line: 2,
213
+ messageId: "not_match",
203
214
  type: "CallExpression"
204
215
  },
205
216
  {
206
- line: 3,
207
217
  column: 9,
218
+ line: 3,
219
+ messageId: "not_match",
208
220
  type: "CallExpression"
209
221
  }
210
222
  ],
@@ -226,13 +238,15 @@ exports.module = (valid, invalid) => {
226
238
  `,
227
239
  errors: [
228
240
  {
229
- line: 2,
230
241
  column: 10,
242
+ line: 2,
243
+ messageId: "not_match",
231
244
  type: "NewExpression"
232
245
  },
233
246
  {
234
- line: 3,
235
247
  column: 10,
248
+ line: 3,
249
+ messageId: "not_match",
236
250
  type: "NewExpression"
237
251
  }
238
252
  ],
@@ -254,13 +268,15 @@ exports.module = (valid, invalid) => {
254
268
  `,
255
269
  errors: [
256
270
  {
257
- line: 2,
258
271
  column: 17,
272
+ line: 2,
273
+ messageId: "not_match",
259
274
  type: "ObjectExpression"
260
275
  },
261
276
  {
262
- line: 3,
263
277
  column: 17,
278
+ line: 3,
279
+ messageId: "not_match",
264
280
  type: "ObjectExpression"
265
281
  }
266
282
  ],
@@ -273,8 +289,8 @@ exports.module = (valid, invalid) => {
273
289
  }
274
290
  var value = {}
275
291
  `,
276
- languageOptions: {
277
- parserOptions: { ecmaVersion: "latest" }
292
+ languageOptions: {
293
+ parserOptions: { ecmaVersion: "latest" }
278
294
  }
279
295
  },
280
296
  {
@@ -285,13 +301,15 @@ exports.module = (valid, invalid) => {
285
301
  `,
286
302
  errors: [
287
303
  {
288
- line: 2,
289
304
  column: 9,
305
+ line: 2,
306
+ messageId: "not_match",
290
307
  type: "ObjectPattern"
291
308
  },
292
309
  {
293
- line: 3,
294
310
  column: 9,
311
+ line: 3,
312
+ messageId: "not_match",
295
313
  type: "ObjectPattern"
296
314
  }
297
315
  ],
@@ -304,8 +322,8 @@ exports.module = (valid, invalid) => {
304
322
  } = value
305
323
  var {} = value
306
324
  `,
307
- languageOptions: {
308
- parserOptions: { ecmaVersion: "latest" }
325
+ languageOptions: {
326
+ parserOptions: { ecmaVersion: "latest" }
309
327
  }
310
328
  },
311
329
  {
@@ -318,13 +336,15 @@ exports.module = (valid, invalid) => {
318
336
  `,
319
337
  errors: [
320
338
  {
321
- line: 2,
322
339
  column: 4,
340
+ line: 2,
341
+ messageId: "not_match",
323
342
  type: "SequenceExpression"
324
343
  },
325
344
  {
326
- line: 6,
327
345
  column: 4,
346
+ line: 6,
347
+ messageId: "not_match",
328
348
  type: "SequenceExpression"
329
349
  }
330
350
  ],