@whoj/eslint-config 2.2.1 → 2.2.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.
@@ -1,149 +0,0 @@
1
- import {
2
- require_estraverse
3
- } from "./chunk-DLJMV7EV.js";
4
- import {
5
- __commonJS,
6
- init_esm_shims
7
- } from "./chunk-MKNYKNDN.js";
8
-
9
- // node_modules/.pnpm/esrecurse@4.3.0/node_modules/esrecurse/package.json
10
- var require_package = __commonJS({
11
- "node_modules/.pnpm/esrecurse@4.3.0/node_modules/esrecurse/package.json"(exports, module) {
12
- module.exports = {
13
- name: "esrecurse",
14
- description: "ECMAScript AST recursive visitor",
15
- homepage: "https://github.com/estools/esrecurse",
16
- main: "esrecurse.js",
17
- version: "4.3.0",
18
- engines: {
19
- node: ">=4.0"
20
- },
21
- maintainers: [
22
- {
23
- name: "Yusuke Suzuki",
24
- email: "utatane.tea@gmail.com",
25
- web: "https://github.com/Constellation"
26
- }
27
- ],
28
- repository: {
29
- type: "git",
30
- url: "https://github.com/estools/esrecurse.git"
31
- },
32
- dependencies: {
33
- estraverse: "^5.2.0"
34
- },
35
- devDependencies: {
36
- "babel-cli": "^6.24.1",
37
- "babel-eslint": "^7.2.3",
38
- "babel-preset-es2015": "^6.24.1",
39
- "babel-register": "^6.24.1",
40
- chai: "^4.0.2",
41
- esprima: "^4.0.0",
42
- gulp: "^3.9.0",
43
- "gulp-bump": "^2.7.0",
44
- "gulp-eslint": "^4.0.0",
45
- "gulp-filter": "^5.0.0",
46
- "gulp-git": "^2.4.1",
47
- "gulp-mocha": "^4.3.1",
48
- "gulp-tag-version": "^1.2.1",
49
- jsdoc: "^3.3.0-alpha10",
50
- minimist: "^1.1.0"
51
- },
52
- license: "BSD-2-Clause",
53
- scripts: {
54
- test: "gulp travis",
55
- "unit-test": "gulp test",
56
- lint: "gulp lint"
57
- },
58
- babel: {
59
- presets: [
60
- "es2015"
61
- ]
62
- }
63
- };
64
- }
65
- });
66
-
67
- // node_modules/.pnpm/esrecurse@4.3.0/node_modules/esrecurse/esrecurse.js
68
- var require_esrecurse = __commonJS({
69
- "node_modules/.pnpm/esrecurse@4.3.0/node_modules/esrecurse/esrecurse.js"(exports) {
70
- "use strict";
71
- init_esm_shims();
72
- (function() {
73
- "use strict";
74
- var estraverse = require_estraverse();
75
- function isNode(node) {
76
- if (node == null) {
77
- return false;
78
- }
79
- return typeof node === "object" && typeof node.type === "string";
80
- }
81
- function isProperty(nodeType, key) {
82
- return (nodeType === estraverse.Syntax.ObjectExpression || nodeType === estraverse.Syntax.ObjectPattern) && key === "properties";
83
- }
84
- function Visitor(visitor, options) {
85
- options = options || {};
86
- this.__visitor = visitor || this;
87
- this.__childVisitorKeys = options.childVisitorKeys ? Object.assign({}, estraverse.VisitorKeys, options.childVisitorKeys) : estraverse.VisitorKeys;
88
- if (options.fallback === "iteration") {
89
- this.__fallback = Object.keys;
90
- } else if (typeof options.fallback === "function") {
91
- this.__fallback = options.fallback;
92
- }
93
- }
94
- Visitor.prototype.visitChildren = function(node) {
95
- var type, children, i, iz, j, jz, child;
96
- if (node == null) {
97
- return;
98
- }
99
- type = node.type || estraverse.Syntax.Property;
100
- children = this.__childVisitorKeys[type];
101
- if (!children) {
102
- if (this.__fallback) {
103
- children = this.__fallback(node);
104
- } else {
105
- throw new Error("Unknown node type " + type + ".");
106
- }
107
- }
108
- for (i = 0, iz = children.length; i < iz; ++i) {
109
- child = node[children[i]];
110
- if (child) {
111
- if (Array.isArray(child)) {
112
- for (j = 0, jz = child.length; j < jz; ++j) {
113
- if (child[j]) {
114
- if (isNode(child[j]) || isProperty(type, children[i])) {
115
- this.visit(child[j]);
116
- }
117
- }
118
- }
119
- } else if (isNode(child)) {
120
- this.visit(child);
121
- }
122
- }
123
- }
124
- };
125
- Visitor.prototype.visit = function(node) {
126
- var type;
127
- if (node == null) {
128
- return;
129
- }
130
- type = node.type || estraverse.Syntax.Property;
131
- if (this.__visitor[type]) {
132
- this.__visitor[type].call(this, node);
133
- return;
134
- }
135
- this.visitChildren(node);
136
- };
137
- exports.version = require_package().version;
138
- exports.Visitor = Visitor;
139
- exports.visit = function(node, visitor, options) {
140
- var v = new Visitor(visitor, options);
141
- v.visit(node);
142
- };
143
- })();
144
- }
145
- });
146
-
147
- export {
148
- require_esrecurse
149
- };
@@ -1,353 +0,0 @@
1
- import {
2
- __commonJS,
3
- init_esm_shims
4
- } from "./chunk-MKNYKNDN.js";
5
-
6
- // node_modules/.pnpm/eslint-visitor-keys@3.4.3/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs
7
- var require_eslint_visitor_keys = __commonJS({
8
- "node_modules/.pnpm/eslint-visitor-keys@3.4.3/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs"(exports) {
9
- "use strict";
10
- init_esm_shims();
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- var KEYS = {
13
- ArrayExpression: [
14
- "elements"
15
- ],
16
- ArrayPattern: [
17
- "elements"
18
- ],
19
- ArrowFunctionExpression: [
20
- "params",
21
- "body"
22
- ],
23
- AssignmentExpression: [
24
- "left",
25
- "right"
26
- ],
27
- AssignmentPattern: [
28
- "left",
29
- "right"
30
- ],
31
- AwaitExpression: [
32
- "argument"
33
- ],
34
- BinaryExpression: [
35
- "left",
36
- "right"
37
- ],
38
- BlockStatement: [
39
- "body"
40
- ],
41
- BreakStatement: [
42
- "label"
43
- ],
44
- CallExpression: [
45
- "callee",
46
- "arguments"
47
- ],
48
- CatchClause: [
49
- "param",
50
- "body"
51
- ],
52
- ChainExpression: [
53
- "expression"
54
- ],
55
- ClassBody: [
56
- "body"
57
- ],
58
- ClassDeclaration: [
59
- "id",
60
- "superClass",
61
- "body"
62
- ],
63
- ClassExpression: [
64
- "id",
65
- "superClass",
66
- "body"
67
- ],
68
- ConditionalExpression: [
69
- "test",
70
- "consequent",
71
- "alternate"
72
- ],
73
- ContinueStatement: [
74
- "label"
75
- ],
76
- DebuggerStatement: [],
77
- DoWhileStatement: [
78
- "body",
79
- "test"
80
- ],
81
- EmptyStatement: [],
82
- ExperimentalRestProperty: [
83
- "argument"
84
- ],
85
- ExperimentalSpreadProperty: [
86
- "argument"
87
- ],
88
- ExportAllDeclaration: [
89
- "exported",
90
- "source"
91
- ],
92
- ExportDefaultDeclaration: [
93
- "declaration"
94
- ],
95
- ExportNamedDeclaration: [
96
- "declaration",
97
- "specifiers",
98
- "source"
99
- ],
100
- ExportSpecifier: [
101
- "exported",
102
- "local"
103
- ],
104
- ExpressionStatement: [
105
- "expression"
106
- ],
107
- ForInStatement: [
108
- "left",
109
- "right",
110
- "body"
111
- ],
112
- ForOfStatement: [
113
- "left",
114
- "right",
115
- "body"
116
- ],
117
- ForStatement: [
118
- "init",
119
- "test",
120
- "update",
121
- "body"
122
- ],
123
- FunctionDeclaration: [
124
- "id",
125
- "params",
126
- "body"
127
- ],
128
- FunctionExpression: [
129
- "id",
130
- "params",
131
- "body"
132
- ],
133
- Identifier: [],
134
- IfStatement: [
135
- "test",
136
- "consequent",
137
- "alternate"
138
- ],
139
- ImportDeclaration: [
140
- "specifiers",
141
- "source"
142
- ],
143
- ImportDefaultSpecifier: [
144
- "local"
145
- ],
146
- ImportExpression: [
147
- "source"
148
- ],
149
- ImportNamespaceSpecifier: [
150
- "local"
151
- ],
152
- ImportSpecifier: [
153
- "imported",
154
- "local"
155
- ],
156
- JSXAttribute: [
157
- "name",
158
- "value"
159
- ],
160
- JSXClosingElement: [
161
- "name"
162
- ],
163
- JSXClosingFragment: [],
164
- JSXElement: [
165
- "openingElement",
166
- "children",
167
- "closingElement"
168
- ],
169
- JSXEmptyExpression: [],
170
- JSXExpressionContainer: [
171
- "expression"
172
- ],
173
- JSXFragment: [
174
- "openingFragment",
175
- "children",
176
- "closingFragment"
177
- ],
178
- JSXIdentifier: [],
179
- JSXMemberExpression: [
180
- "object",
181
- "property"
182
- ],
183
- JSXNamespacedName: [
184
- "namespace",
185
- "name"
186
- ],
187
- JSXOpeningElement: [
188
- "name",
189
- "attributes"
190
- ],
191
- JSXOpeningFragment: [],
192
- JSXSpreadAttribute: [
193
- "argument"
194
- ],
195
- JSXSpreadChild: [
196
- "expression"
197
- ],
198
- JSXText: [],
199
- LabeledStatement: [
200
- "label",
201
- "body"
202
- ],
203
- Literal: [],
204
- LogicalExpression: [
205
- "left",
206
- "right"
207
- ],
208
- MemberExpression: [
209
- "object",
210
- "property"
211
- ],
212
- MetaProperty: [
213
- "meta",
214
- "property"
215
- ],
216
- MethodDefinition: [
217
- "key",
218
- "value"
219
- ],
220
- NewExpression: [
221
- "callee",
222
- "arguments"
223
- ],
224
- ObjectExpression: [
225
- "properties"
226
- ],
227
- ObjectPattern: [
228
- "properties"
229
- ],
230
- PrivateIdentifier: [],
231
- Program: [
232
- "body"
233
- ],
234
- Property: [
235
- "key",
236
- "value"
237
- ],
238
- PropertyDefinition: [
239
- "key",
240
- "value"
241
- ],
242
- RestElement: [
243
- "argument"
244
- ],
245
- ReturnStatement: [
246
- "argument"
247
- ],
248
- SequenceExpression: [
249
- "expressions"
250
- ],
251
- SpreadElement: [
252
- "argument"
253
- ],
254
- StaticBlock: [
255
- "body"
256
- ],
257
- Super: [],
258
- SwitchCase: [
259
- "test",
260
- "consequent"
261
- ],
262
- SwitchStatement: [
263
- "discriminant",
264
- "cases"
265
- ],
266
- TaggedTemplateExpression: [
267
- "tag",
268
- "quasi"
269
- ],
270
- TemplateElement: [],
271
- TemplateLiteral: [
272
- "quasis",
273
- "expressions"
274
- ],
275
- ThisExpression: [],
276
- ThrowStatement: [
277
- "argument"
278
- ],
279
- TryStatement: [
280
- "block",
281
- "handler",
282
- "finalizer"
283
- ],
284
- UnaryExpression: [
285
- "argument"
286
- ],
287
- UpdateExpression: [
288
- "argument"
289
- ],
290
- VariableDeclaration: [
291
- "declarations"
292
- ],
293
- VariableDeclarator: [
294
- "id",
295
- "init"
296
- ],
297
- WhileStatement: [
298
- "test",
299
- "body"
300
- ],
301
- WithStatement: [
302
- "object",
303
- "body"
304
- ],
305
- YieldExpression: [
306
- "argument"
307
- ]
308
- };
309
- var NODE_TYPES = Object.keys(KEYS);
310
- for (const type of NODE_TYPES) {
311
- Object.freeze(KEYS[type]);
312
- }
313
- Object.freeze(KEYS);
314
- var KEY_BLACKLIST = /* @__PURE__ */ new Set([
315
- "parent",
316
- "leadingComments",
317
- "trailingComments"
318
- ]);
319
- function filterKey(key) {
320
- return !KEY_BLACKLIST.has(key) && key[0] !== "_";
321
- }
322
- function getKeys(node) {
323
- return Object.keys(node).filter(filterKey);
324
- }
325
- function unionWith(additionalKeys) {
326
- const retv = (
327
- /** @type {{
328
- [type: string]: ReadonlyArray<string>
329
- }} */
330
- Object.assign({}, KEYS)
331
- );
332
- for (const type of Object.keys(additionalKeys)) {
333
- if (Object.prototype.hasOwnProperty.call(retv, type)) {
334
- const keys = new Set(additionalKeys[type]);
335
- for (const key of retv[type]) {
336
- keys.add(key);
337
- }
338
- retv[type] = Object.freeze(Array.from(keys));
339
- } else {
340
- retv[type] = Object.freeze(Array.from(additionalKeys[type]));
341
- }
342
- }
343
- return Object.freeze(retv);
344
- }
345
- exports.KEYS = KEYS;
346
- exports.getKeys = getKeys;
347
- exports.unionWith = unionWith;
348
- }
349
- });
350
-
351
- export {
352
- require_eslint_visitor_keys
353
- };