Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change eslint-plugin-node to eslint-plugin-n #115

Merged
merged 1 commit into from
Apr 3, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"plugins": ["@typescript-eslint", "import", "node"],
"plugins": ["@typescript-eslint", "import", "n"],
"env": {
"node": true
},
Expand All @@ -21,7 +21,7 @@
}
},
"rules": {
"node/no-restricted-import": [
"n/no-restricted-import": [
"error",
[
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"eslint": "8.37.0",
"eslint-import-resolver-typescript": "3.5.4",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-n": "15.7.0",
"globstar": "1.0.0",
"prettier": "2.8.7",
"release-it": "15.10.0",
Expand Down
2 changes: 1 addition & 1 deletion src/typescript/createHosts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EOL } from 'node:os';
// eslint-disable-next-line node/no-restricted-import
// eslint-disable-next-line n/no-restricted-import
import path from 'node:path';
import ts from 'typescript';
import { createCustomModuleResolver } from './resolveModuleNames.js';
Expand Down
2 changes: 1 addition & 1 deletion src/util/path.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line node/no-restricted-import
// eslint-disable-next-line n/no-restricted-import
import path from 'node:path';

const isAbsolute = path.isAbsolute;
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/jest.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'node:assert/strict';
// eslint-disable-next-line node/no-restricted-import
// eslint-disable-next-line n/no-restricted-import
import path from 'node:path';
import test from 'node:test';
import * as jest from '../../src/plugins/jest/index.js';
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/webpack.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'node:assert/strict';
// eslint-disable-next-line node/no-restricted-import
// eslint-disable-next-line n/no-restricted-import
import path from 'node:path';
import test from 'node:test';
import { main } from '../../src/index.js';
Expand Down