This commit is contained in:
Alex
2024-11-09 21:39:15 -05:00
parent a1ab2ad7f5
commit 97eb90f6c6
8 changed files with 56 additions and 38 deletions

View File

@ -1,8 +1,8 @@
diff --git a/lib/index.js b/lib/index.js
index 49fd4c7..a0fdd81 100644
index de95218..e30a3df 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -1,9 +1,9 @@
@@ -1,17 +1,17 @@
"use strict"
-const pkg = require("../package.json")
@ -14,18 +14,17 @@ index 49fd4c7..a0fdd81 100644
+import cjsConfig from "./configs/recommended-script"
+import recommendedConfig from "./configs/recommended"
/**
* @typedef {{
@@ -20,8 +20,8 @@ const recommendedConfig = require("./configs/recommended")
/** @type {import('eslint').ESLint.Plugin & { configs: Configs }} */
const plugin = {
/** @import { ESLint, Linter } from 'eslint' */
/** @type {ESLint.Plugin} */
const base = {
meta: {
- name: pkg.name,
- version: pkg.version,
+ name,
+ version,
},
rules: /** @type {Record<string, import('eslint').Rule.RuleModule>} */ ({
rules: {
"callback-return": require("./rules/callback-return"),
diff --git a/tests/fixtures/no-extraneous/dependencies/node_modules/@bbb/aaa.js b/tests/fixtures/no-extraneous/dependencies/node_modules/@bbb/aaa.js
deleted file mode 100644