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
This commit is contained in:
Jonas Jenwald 2021-05-16 11:17:23 +02:00
parent 8943bcd3c3
commit 198ef044f8
3 changed files with 4 additions and 12 deletions

View File

@ -32,7 +32,9 @@
"rules": {
// Plugins
"import/extensions": ["error", "always", { "ignorePackages": true, }],
"import/no-unresolved": "error",
"import/no-unresolved": ["error", {
"ignore": ["pdfjs", "pdfjs-lib", "pdfjs-web"]
}],
"mozilla/avoid-removeChild": "error",
"mozilla/use-includes-instead-of-indexOf": "error",
"no-unsanitized/method": "error",

View File

@ -1,6 +1,6 @@
"use strict";
const builder = require("./builder");
const builder = require("./builder.js");
const fs = require("fs");
const path = require("path");

View File

@ -1,10 +0,0 @@
{
"extends": [
"../.eslintrc"
],
"rules": {
// Plugins
"import/no-unresolved": ["error", { "ignore": ["pdfjs-lib"]}],
},
}