single-file-core 1.5.44 → 1.5.46

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.
@@ -60,7 +60,6 @@ function process(str) {
60
60
 
61
61
  // NaN means non-codepoint
62
62
  // Workaround erroneous numeric interpretation of +"0x"
63
- // eslint-disable-next-line no-self-compare
64
63
  return high !== high || escapedWhitespace
65
64
  ? escaped
66
65
  : high < 0
@@ -98,7 +98,7 @@ function process(input) {
98
98
  // 4. Splitting loop: Collect a sequence of characters that are space
99
99
  // characters or U+002C COMMA characters. If any U+002C COMMA characters
100
100
  // were collected, that is a parse error.
101
- while (true) { // eslint-disable-line no-constant-condition
101
+ while (true) {
102
102
  collectCharacters(regexLeadingCommasOrSpaces);
103
103
 
104
104
  // 5. If position is past the end of input, return candidates and abort these steps.
@@ -144,7 +144,7 @@ function process(input) {
144
144
  // 8.3. Let state be in descriptor.
145
145
  state = "in descriptor";
146
146
 
147
- while (true) { // eslint-disable-line no-constant-condition
147
+ while (true) {
148
148
 
149
149
  // 8.4. Let c be the character at position.
150
150
  c = input.charAt(pos);
@@ -81,7 +81,6 @@ let utils, parser, serializer, MIMEType;
81
81
 
82
82
  position++;
83
83
 
84
- // eslint-disable-next-line no-constant-condition
85
84
  while (true) {
86
85
  while (position < input.length && input[position] !== "\"" && input[position] !== "\\") {
87
86
  value += input[position];
@@ -273,7 +272,8 @@ let utils, parser, serializer, MIMEType;
273
272
  static parse(string) {
274
273
  try {
275
274
  return new this(string);
276
- } catch (e) {
275
+ // eslint-disable-next-line no-unused-vars
276
+ } catch (error) {
277
277
  return null;
278
278
  }
279
279
  }
package/.eslintrc.js DELETED
@@ -1,40 +0,0 @@
1
- /* global module */
2
-
3
- module.exports = {
4
- "env": {
5
- "es6": true,
6
- "node": false,
7
- "browser": false
8
- },
9
- "globals": {
10
- "console": true
11
- },
12
- "extends": "eslint:recommended",
13
- "parserOptions": {
14
- "ecmaVersion": 2017,
15
- "sourceType": "module"
16
- },
17
- "rules": {
18
- "indent": [
19
- "error",
20
- "tab", {
21
- "SwitchCase": 1
22
- }
23
- ],
24
- "linebreak-style": [
25
- "error",
26
- "unix"
27
- ],
28
- "quotes": [
29
- "error",
30
- "double"
31
- ],
32
- "semi": [
33
- "error",
34
- "always"
35
- ],
36
- "no-console": [
37
- "warn"
38
- ]
39
- }
40
- };