Skip to content

Commit

Permalink
Enable import/extensions of ESlint plugin to enforce all import hav…
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuratak committed Jan 17, 2020
1 parent 40f531e commit 4f243b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

"rules": {
// Plugins
"import/extensions": ["error", "always", { "ignorePackages": true }],
"import/no-unresolved": "error",
"mozilla/avoid-removeChild": "error",
"mozilla/use-includes-instead-of-indexOf": "error",
Expand Down
2 changes: 1 addition & 1 deletion src/shared/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
/* eslint no-var: error */

import "./compatibility";
import "./compatibility.js";

const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
Expand Down
2 changes: 1 addition & 1 deletion web/firefoxcom.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

import "../extensions/firefox/tools/l10n";
import "../extensions/firefox/tools/l10n.js";
import { createObjectURL, PDFDataRangeTransport, shadow } from "pdfjs-lib";
import { BasePreferences } from "./preferences.js";
import { DEFAULT_SCALE_VALUE } from "./ui_utils.js";
Expand Down
2 changes: 1 addition & 1 deletion web/genericl10n.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

import "../external/webL10n/l10n";
import "../external/webL10n/l10n.js";

const webL10n = document.webL10n;

Expand Down

0 comments on commit 4f243b8

Please sign in to comment.