Merge pull request #11519 from tamuratak/enable_eslint_import_extensions
Enable import/extensions of ESlint plugin to enforce all `import` have a `.js` file extension.
This commit is contained in:
commit
ccf327538b
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
"rules": {
|
"rules": {
|
||||||
// Plugins
|
// Plugins
|
||||||
|
"import/extensions": ["error", "always", { "ignorePackages": true, }],
|
||||||
"import/no-unresolved": "error",
|
"import/no-unresolved": "error",
|
||||||
"mozilla/avoid-removeChild": "error",
|
"mozilla/avoid-removeChild": "error",
|
||||||
"mozilla/use-includes-instead-of-indexOf": "error",
|
"mozilla/use-includes-instead-of-indexOf": "error",
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
/* eslint no-var: error */
|
/* eslint no-var: error */
|
||||||
|
|
||||||
import "./compatibility";
|
import "./compatibility.js";
|
||||||
|
|
||||||
const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
|
const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
|
||||||
const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
|
const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "../extensions/firefox/tools/l10n";
|
import "../extensions/firefox/tools/l10n.js";
|
||||||
import { createObjectURL, PDFDataRangeTransport, shadow } from "pdfjs-lib";
|
import { createObjectURL, PDFDataRangeTransport, shadow } from "pdfjs-lib";
|
||||||
import { DefaultExternalServices, PDFViewerApplication } from "./app.js";
|
import { DefaultExternalServices, PDFViewerApplication } from "./app.js";
|
||||||
import { BasePreferences } from "./preferences.js";
|
import { BasePreferences } from "./preferences.js";
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "../external/webL10n/l10n";
|
import "../external/webL10n/l10n.js";
|
||||||
|
|
||||||
const webL10n = document.webL10n;
|
const webL10n = document.webL10n;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user