Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions configs/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ const commonRules = {
// From recommended
// "n/no-exports-assign": "error",

// From recommended
// "n/no-extraneous-import": "error",
// We have `import/no-extraneous-dependencies` rule
"n/no-extraneous-import": "off",

// From recommended
// "n/no-extraneous-require": "error",
// We have `import/no-extraneous-dependencies` rule
"n/no-extraneous-require": "off",

// Deprecated
// "n/no-hide-core-modules": "error",
Expand Down
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from "eslint/config";
import configs from "../eslint-config-webpack/configs.js";
import config from "../eslint-config-webpack/index.js";
import configs from "./configs.js";
import config from "./index.js";

export default defineConfig([
{
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions validation/code.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ require("./unknown.unknown");

require("./style.css");

// eslint-disable-next-line no-unused-vars, import/order, import/no-extraneous-dependencies
const scope = require("eslint-scope");

code();
otherSum(1, 2);

Expand Down
3 changes: 3 additions & 0 deletions validation/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import { myVar } from "./without-extension";

import "./style.css";

// eslint-disable-next-line no-unused-vars, import/order, import/no-extraneous-dependencies
import * as scope from "eslint-scope";

notFoo();

const result = sumFn(1, 2);
Expand Down
3 changes: 3 additions & 0 deletions validation/code.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import code from "./module.cjs";
import { aaa, bbb } from "./module.cjs";
import myOtherCode from "./module.js";

// eslint-disable-next-line no-unused-vars, import/order, import/no-extraneous-dependencies
import * as scope from "eslint-scope";

// eslint-disable-next-line import/no-unresolved
import("./unknown.ext");

Expand Down
Loading