Skip to content

Commit

Permalink
fix(presets): disable incompatible rule for Node < 18
Browse files Browse the repository at this point in the history
  • Loading branch information
nelson6e65 committed Nov 29, 2023
1 parent fa649d5 commit 8db00b9
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 8db00b9

Please sign in to comment.