Skip to content

Commit

Permalink
Update dedupe test
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Jun 3, 2024
1 parent d1376f3 commit 674a541
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
root: true
plugins:
- import
- n
extends:
- plugin:import/errors
- plugin:n/recommended
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const {
} = require("@eslint/compat");

const _import = require("eslint-plugin-import");
const n = require("eslint-plugin-n");
const js = require("@eslint/js");

const {
Expand All @@ -16,8 +17,12 @@ const compat = new FlatCompat({
allConfig: js.configs.all
});

module.exports = [...fixupConfigRules(compat.extends("plugin:import/errors")), {
plugins: {
import: fixupPluginRules(_import),
module.exports = [
...fixupConfigRules(compat.extends("plugin:import/errors", "plugin:n/recommended")),
{
plugins: {
import: fixupPluginRules(_import),
n: fixupPluginRules(n),
},
},
}];
];
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
import _import from "eslint-plugin-import";
import n from "eslint-plugin-n";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
Expand All @@ -14,8 +15,12 @@ const compat = new FlatCompat({
allConfig: js.configs.all
});

export default [...fixupConfigRules(compat.extends("plugin:import/errors")), {
plugins: {
import: fixupPluginRules(_import),
export default [
...fixupConfigRules(compat.extends("plugin:import/errors", "plugin:n/recommended")),
{
plugins: {
import: fixupPluginRules(_import),
n: fixupPluginRules(n),
},
},
}];
];

0 comments on commit 674a541

Please sign in to comment.