@virmator/lint 14.13.0 → 14.13.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.
@@ -37,6 +37,10 @@ const rule = {
37
37
  if (raw.includes('\n') || raw.includes('\r')) {
38
38
  return;
39
39
  }
40
+ const cooked = quasi.value.cooked;
41
+ if (cooked != undefined && cooked.includes("'") && cooked.includes('"')) {
42
+ return;
43
+ }
40
44
  context.report({
41
45
  node,
42
46
  messageId: 'preferSingleQuotes',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/lint",
3
- "version": "14.13.0",
3
+ "version": "14.13.1",
4
4
  "description": "Default ESLint linting plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -35,7 +35,7 @@
35
35
  "@augment-vir/assert": "^31.69.0",
36
36
  "@augment-vir/common": "^31.69.0",
37
37
  "@augment-vir/node": "^31.69.0",
38
- "@virmator/core": "^14.13.0",
38
+ "@virmator/core": "^14.13.1",
39
39
  "jiti": "^2.6.1",
40
40
  "mri": "^1.2.0"
41
41
  },
@@ -46,6 +46,11 @@ const rule: Rule.RuleModule = {
46
46
  return;
47
47
  }
48
48
 
49
+ const cooked = quasi.value.cooked;
50
+ if (cooked != undefined && cooked.includes("'") && cooked.includes('"')) {
51
+ return;
52
+ }
53
+
49
54
  context.report({
50
55
  node,
51
56
  messageId: 'preferSingleQuotes',