Skip to content

Commit

Permalink
chore(lint): disables exports-last rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed May 13, 2023
1 parent a5c2bb5 commit 5a62d73
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
"no-param-reassign": "error",
"security/detect-non-literal-fs-filename": "off",
"unicorn/no-useless-fallback-in-spread": "off", // useful, probably. We'll try it later, though
"import/exports-last": "off", // Useless remnant of the time when single pass compilers were in vogue
},
overrides: [
{
Expand Down
1 change: 0 additions & 1 deletion src/cache/helpers.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @ts-check
/* eslint-disable import/exports-last */
import { createHash } from "node:crypto";
import { readFileSync } from "node:fs";
import { readFile } from "node:fs/promises";
Expand Down
1 change: 0 additions & 1 deletion src/cli/init-config/environment-helpers.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
// @ts-check
import { readFileSync, readdirSync, accessSync, statSync, R_OK } from "node:fs";
import { join } from "node:path";
Expand Down
1 change: 0 additions & 1 deletion src/cli/init-config/write-run-scripts-to-manifest.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
/* eslint-disable security/detect-object-injection */
import { writeFileSync } from "node:fs";
import figures from "figures";
Expand Down
1 change: 0 additions & 1 deletion src/enrich/derive/metrics/get-module-metrics.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
import IndexedModuleGraph from "../../../graph-utl/indexed-module-graph.mjs";
import { calculateInstability, metricsAreCalculable } from "../module-utl.mjs";

Expand Down
1 change: 0 additions & 1 deletion src/extract/parse/to-javascript-ast.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
import { readFileSync } from "node:fs";
import { Parser as acornParser, parse as acornParse } from "acorn";
import { parse as acornLooseParse } from "acorn-loose";
Expand Down
1 change: 0 additions & 1 deletion src/extract/parse/to-swc-ast.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
import tryImport from "semver-try-require";
import memoize from "lodash/memoize.js";
import meta from "../../meta.js";
Expand Down
1 change: 0 additions & 1 deletion src/extract/parse/to-typescript-ast.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
import { readFileSync } from "node:fs";
import tryImport from "semver-try-require";
import memoize from "lodash/memoize.js";
Expand Down
1 change: 0 additions & 1 deletion src/extract/resolve/external-module-helpers.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
import { readFileSync } from "node:fs";
import { join } from "node:path";
import memoize from "lodash/memoize.js";
Expand Down
1 change: 0 additions & 1 deletion src/extract/resolve/module-classifiers.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
import { isAbsolute, resolve as path_resolve } from "node:path";
import getExtension from "../../utl/get-extension.mjs";

Expand Down
1 change: 0 additions & 1 deletion src/extract/transpile/index.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
/* eslint security/detect-object-injection : 0*/
import javaScriptWrap from "./javascript-wrap.mjs";
import typeScriptWrap from "./typescript-wrap.mjs";
Expand Down
1 change: 0 additions & 1 deletion src/extract/transpile/meta.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
/* eslint security/detect-object-injection : 0*/
import meta from "../../meta.js";
import tryAvailable from "./try-import-available.mjs";
Expand Down
1 change: 0 additions & 1 deletion src/report/error-html/utl.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
import has from "lodash/has.js";
import meta from "../../meta.js";
import { formatViolation, formatPercentage } from "../utl/index.mjs";
Expand Down
1 change: 0 additions & 1 deletion src/report/plugins.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
import has from "lodash/has.js";

export function isValidPlugin(pPluginFunction) {
Expand Down
1 change: 0 additions & 1 deletion src/utl/bus.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/exports-last */
import EventEmitter from "node:events";

export const OFF = -1;
Expand Down

0 comments on commit 5a62d73

Please sign in to comment.