diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 0e247943a..750f56aba 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,4 +1,4 @@ -const { builtinModules } = require('module') +const { builtinModules } = require('module'); module.exports = { extends: [ @@ -56,15 +56,18 @@ module.exports = { 'prefer-const': 'off', }, overrides: [ - { + { // Ensure Node builtins aren't included in Astro's server runtime files: ['packages/astro/src/runtime/**/*.ts'], rules: { - "no-restricted-imports": ["error", { - "paths": [...builtinModules], - "patterns": ["node:*"] - }], - } + 'no-restricted-imports': [ + 'error', + { + paths: [...builtinModules], + patterns: ['node:*'], + }, + ], + }, }, { files: ['packages/**/test/*.js', 'packages/**/*.js'],