@jsse/eslint-config 0.2.9 → 0.2.10

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/dist/cli.cjs CHANGED
@@ -612,7 +612,7 @@ var CAC = class extends import_events.EventEmitter {
612
612
  var cac = (name = "") => new CAC(name);
613
613
 
614
614
  // package.json
615
- var version = "0.2.9";
615
+ var version = "0.2.10";
616
616
 
617
617
  // src/cli.ts
618
618
  var cli = cac("jsselint");
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/cli.ts
2
- import fs from "fs";
3
- import process2 from "process";
2
+ import fs from "node:fs";
3
+ import process2 from "node:process";
4
4
 
5
5
  // node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs
6
6
  import { EventEmitter } from "events";
@@ -588,7 +588,7 @@ var CAC = class extends EventEmitter {
588
588
  var cac = (name = "") => new CAC(name);
589
589
 
590
590
  // package.json
591
- var version = "0.2.9";
591
+ var version = "0.2.10";
592
592
 
593
593
  // src/cli.ts
594
594
  var cli = cac("jsselint");
package/dist/index.cjs CHANGED
@@ -3855,6 +3855,11 @@ pp$8.parseStatement = function(context, topLevel, exports2) {
3855
3855
  }
3856
3856
  }
3857
3857
  return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports2);
3858
+ // If the statement does not start with a statement keyword or a
3859
+ // brace, it's an ExpressionStatement or LabeledStatement. We
3860
+ // simply start parsing an expression, and afterwards, if the
3861
+ // next token is a colon and the expression was a simple
3862
+ // Identifier node, we switch to interpreting it as a label.
3858
3863
  default:
3859
3864
  if (this.isAsyncFunction()) {
3860
3865
  if (context) {
@@ -7908,8 +7913,11 @@ pp.readToken_numberSign = function() {
7908
7913
  };
7909
7914
  pp.getTokenFromCode = function(code) {
7910
7915
  switch (code) {
7916
+ // The interpretation of a dot depends on whether it is followed
7917
+ // by a digit or another two dots.
7911
7918
  case 46:
7912
7919
  return this.readToken_dot();
7920
+ // Punctuation tokens.
7913
7921
  case 40:
7914
7922
  ++this.pos;
7915
7923
  return this.finishToken(types$1.parenL);
@@ -7956,6 +7964,8 @@ pp.getTokenFromCode = function(code) {
7956
7964
  return this.readRadixNumber(2);
7957
7965
  }
7958
7966
  }
7967
+ // Anything else beginning with a digit is an integer, octal
7968
+ // number, or float.
7959
7969
  case 49:
7960
7970
  case 50:
7961
7971
  case 51:
@@ -7966,9 +7976,14 @@ pp.getTokenFromCode = function(code) {
7966
7976
  case 56:
7967
7977
  case 57:
7968
7978
  return this.readNumber(false);
7979
+ // Quotes produce strings.
7969
7980
  case 34:
7970
7981
  case 39:
7971
7982
  return this.readString(code);
7983
+ // Operators are parsed inline in tiny state machines. '=' (61) is
7984
+ // often referred to. `finishOp` simply skips the amount of
7985
+ // characters it is given as second argument, and returns a token
7986
+ // of the type given by its first argument.
7972
7987
  case 47:
7973
7988
  return this.readToken_slash();
7974
7989
  case 37:
@@ -8284,12 +8299,14 @@ pp.readInvalidTemplateToken = function() {
8284
8299
  if (this.input[this.pos + 1] !== "{") {
8285
8300
  break;
8286
8301
  }
8302
+ // fall through
8287
8303
  case "`":
8288
8304
  return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
8289
8305
  case "\r":
8290
8306
  if (this.input[this.pos + 1] === "\n") {
8291
8307
  ++this.pos;
8292
8308
  }
8309
+ // fall through
8293
8310
  case "\n":
8294
8311
  case "\u2028":
8295
8312
  case "\u2029":
@@ -8306,24 +8323,33 @@ pp.readEscapedChar = function(inTemplate) {
8306
8323
  switch (ch) {
8307
8324
  case 110:
8308
8325
  return "\n";
8326
+ // 'n' -> '\n'
8309
8327
  case 114:
8310
8328
  return "\r";
8329
+ // 'r' -> '\r'
8311
8330
  case 120:
8312
8331
  return String.fromCharCode(this.readHexChar(2));
8332
+ // 'x'
8313
8333
  case 117:
8314
8334
  return codePointToString(this.readCodePoint());
8335
+ // 'u'
8315
8336
  case 116:
8316
8337
  return " ";
8338
+ // 't' -> '\t'
8317
8339
  case 98:
8318
8340
  return "\b";
8341
+ // 'b' -> '\b'
8319
8342
  case 118:
8320
8343
  return "\v";
8344
+ // 'v' -> '\u000b'
8321
8345
  case 102:
8322
8346
  return "\f";
8347
+ // 'f' -> '\f'
8323
8348
  case 13:
8324
8349
  if (this.input.charCodeAt(this.pos) === 10) {
8325
8350
  ++this.pos;
8326
8351
  }
8352
+ // '\r\n'
8327
8353
  case 10:
8328
8354
  if (this.options.locations) {
8329
8355
  this.lineStart = this.pos;