Skip to content

Commit

Permalink
fix: migration leftovers for eslint-plugin-n (#3499)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Apr 30, 2024
1 parent a2b33ec commit 0d48d6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-steaks-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-backend/eslint-config-node': patch
---

Leftovers for migrating from `eslint-plugin-node` to `eslint-plugin-n`
6 changes: 3 additions & 3 deletions packages-backend/eslint-config-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ module.exports = {

rules: {
// Nodejs
'node/no-missing-import': statusCode.off,
'node/no-unsupported-features/es-syntax': statusCode.off,
'n/no-missing-import': statusCode.off,
'n/no-unsupported-features/es-syntax': statusCode.off,

// NOTE: The regular rule does not support do-expressions. The equivalent rule of babel does.
'no-unused-expressions': statusCode.off,
Expand Down Expand Up @@ -106,7 +106,7 @@ module.exports = {
'jest/globals': true,
},
rules: {
'node/no-extraneous-require': [
'n/no-extraneous-require': [
statusCode.error,
{
allowModules: ['jest-each', 'msw'],
Expand Down

0 comments on commit 0d48d6c

Please sign in to comment.