Skip to content

Commit

Permalink
n plugin rules require extends: nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Sep 24, 2024
1 parent b948fcc commit 88d26ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,15 @@ const config = tseslint.config({
},
{
files: ['scripts/*.ts'],
extends: nodejs,
rules: {
// All scripts will have shebangs.
'n/shebang': 'off',
},
},
{
files: ['**/jest.environment.js'],
extends: nodejs,
rules: {
// These files run under Node, and thus `require(...)` is expected.
'n/global-require': 'off',
Expand Down

0 comments on commit 88d26ae

Please sign in to comment.