Skip to content

Commit cf6d588

Browse files
committed
Account for changes in eslint-plugin-import version 2.23.0
The simplest solution, as far as I can tell, to "fix" the new errors reported by the `no-unresolved` rules was to extend the existing whitelisting to cover the new cases. Given that the affected `imports` are only relevant in `gulp server`-mode, this should thus be completely fine. Please find additional information at: - https://github.com/benmosher/eslint-plugin-import/releases/tag/v2.23.0 - https://github.com/benmosher/eslint-plugin-import/blob/v2.23.0/CHANGELOG.md#2230---2021-05-13
1 parent be979f2 commit cf6d588

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

external/builder/test-fixtures.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const builder = require("./builder");
3+
const builder = require("./builder.js");
44
const fs = require("fs");
55
const path = require("path");
66

src/.eslintrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": [
3+
"../.eslintrc"
4+
],
5+
6+
"rules": {
7+
// Plugins
8+
"import/no-unresolved": ["error", {
9+
"ignore": ["pdfjs"]
10+
}],
11+
},
12+
}

web/.eslintrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
"rules": {
77
// Plugins
8-
"import/no-unresolved": ["error", { "ignore": ["pdfjs-lib"]}],
8+
"import/no-unresolved": ["error", {
9+
"ignore": ["pdfjs", pdfjs-lib", "pdfjs-web"]
10+
}],
911
},
1012
}

0 commit comments

Comments
 (0)