eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

consistent-source-extension

ESLint plugin / consistent-source-extension

Requires consistent import/export source extension.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/consistent-source-extension": "error"
  }
};

Examples of incorrect code

import x1 from "source1.js";
import x2 from "source2.json";
import x3 from "source3.ts";

Examples of correct code

import x1 from "source1";
import x2 from "source2";
import x3 from "source3";