Skip to content

Commit

Permalink
Merge pull request #2 from joinnusteam/fix/node-protocol
Browse files Browse the repository at this point in the history
fix(presets): disable incompatible rule for Node < 18
  • Loading branch information
nelson6e65 authored Nov 29, 2023
2 parents fa649d5 + 8db00b9 commit ef88ea5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/presets/node-erbium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const config: Linter.Config = {
],
}),
...getNodeRules({ nodeVersionRange: '^12.0.0' }),

// Esto es sólo desde node 18
'unicorn/prefer-node-protocol': 'off',
},
},
],
Expand Down
3 changes: 3 additions & 0 deletions src/presets/node-fermium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const config: Linter.Config = {
],
}),
...getNodeRules({ nodeVersionRange: '^14.0.0' }),

// Esto es sólo desde node 18
'unicorn/prefer-node-protocol': 'off',
},
},
],
Expand Down
3 changes: 3 additions & 0 deletions src/presets/node-gallium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const config: Linter.Config = {
],
}),
...getNodeRules({ nodeVersionRange: '^16.0.0' }),

// Esto es sólo desde node 18
'unicorn/prefer-node-protocol': 'off',
},
},
],
Expand Down

0 comments on commit ef88ea5

Please sign in to comment.