Skip to content

Commit

Permalink
Change eslint-plugin-node to eslint-plugin-n (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElPrudi committed Apr 3, 2023
1 parent a532417 commit 91fca40
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
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

0 comments on commit 91fca40

Please sign in to comment.