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:
parent
8943bcd3c3
commit
198ef044f8
@ -32,7 +32,9 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
// Plugins
|
// Plugins
|
||||||
"import/extensions": ["error", "always", { "ignorePackages": true, }],
|
"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/avoid-removeChild": "error",
|
||||||
"mozilla/use-includes-instead-of-indexOf": "error",
|
"mozilla/use-includes-instead-of-indexOf": "error",
|
||||||
"no-unsanitized/method": "error",
|
"no-unsanitized/method": "error",
|
||||||
|
2
external/builder/test-fixtures.js
vendored
2
external/builder/test-fixtures.js
vendored
@ -1,6 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const builder = require("./builder");
|
const builder = require("./builder.js");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": [
|
|
||||||
"../.eslintrc"
|
|
||||||
],
|
|
||||||
|
|
||||||
"rules": {
|
|
||||||
// Plugins
|
|
||||||
"import/no-unresolved": ["error", { "ignore": ["pdfjs-lib"]}],
|
|
||||||
},
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user