Skip to content

Commit

Permalink
feat: use eslint-plugin-n rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sajikix committed Feb 26, 2024
1 parent 9ef2bf0 commit 82c72e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/node-typescript.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
rules: {
"node/no-unsupported-features/es-syntax": "off",
"n/no-unsupported-features/es-syntax": "off",
},
};
2 changes: 1 addition & 1 deletion lib/node.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ["plugin:node/recommended"],
extends: ["plugin:n/recommended"],
settings: {
node: {
// https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-missing-import.md#tryextensions
Expand Down
2 changes: 1 addition & 1 deletion test/node-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("node", () => {
const result = await runLintWithFixtures("node");
assert.deepStrictEqual(result, {
"error.js": {
errors: ["node/no-missing-require", "node/no-exports-assign"],
errors: ["n/no-missing-require", "n/no-exports-assign"],
},
"ok.js": {},
});
Expand Down
4 changes: 2 additions & 2 deletions test/node-typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ describe("node-typescript", () => {
it("should get expected errors and warninigs", async () => {
const result = await runLintWithFixtures(
"node-typescript",
"presets/node-typescript-prettier.js",
"presets/node-typescript-prettier.js"
);
assert.deepStrictEqual(result, {
"ok.ts": {},
"sum.ts": {},
"error.ts": {
errors: ["node/no-missing-import"],
errors: ["n/no-missing-import"],
},
});
});
Expand Down

0 comments on commit 82c72e3

Please sign in to comment.