eslint-plugin-use-agnostic 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,14 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
3
 
4
+ import { Linter } from "eslint";
4
5
  import { loadConfig, createMatchPath } from "tsconfig-paths";
5
6
 
6
7
  import {
7
8
  EXTENSIONS,
8
9
  ARE_NOT_ALLOWED_TO_IMPORT,
9
10
  resolvedDirectives_resolvedModules,
10
- linter,
11
+ // linter,
11
12
  typeScriptCompatible,
12
13
  } from "../constants/bases.js";
13
14
 
@@ -89,6 +90,7 @@ export const resolveImportPath = (currentDir, importPath, cwd) => {
89
90
  * @returns The ESLint-generated AST (Abstract Syntax Tree) of the file.
90
91
  */
91
92
  export const getASTFromFilePath = (resolvedPath) => {
93
+ const linter = new Linter();
92
94
  // the raw code of the file at the end of the resolved path
93
95
  const text = fs.readFileSync(resolvedPath, "utf8");
94
96
  // utilizes linter.verify ...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-use-agnostic",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Highlights problematic server-client imports in projects made with the Fullstack React Architecture.",
5
5
  "keywords": [
6
6
  "eslint",