[ci] format
This commit is contained in:
parent
aac51bd00b
commit
93d5bef3e4
1 changed files with 10 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
const { builtinModules } = require('module')
|
const { builtinModules } = require('module');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: [
|
extends: [
|
||||||
|
@ -56,15 +56,18 @@ module.exports = {
|
||||||
'prefer-const': 'off',
|
'prefer-const': 'off',
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
// Ensure Node builtins aren't included in Astro's server runtime
|
// Ensure Node builtins aren't included in Astro's server runtime
|
||||||
files: ['packages/astro/src/runtime/**/*.ts'],
|
files: ['packages/astro/src/runtime/**/*.ts'],
|
||||||
rules: {
|
rules: {
|
||||||
"no-restricted-imports": ["error", {
|
'no-restricted-imports': [
|
||||||
"paths": [...builtinModules],
|
'error',
|
||||||
"patterns": ["node:*"]
|
{
|
||||||
}],
|
paths: [...builtinModules],
|
||||||
}
|
patterns: ['node:*'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['packages/**/test/*.js', 'packages/**/*.js'],
|
files: ['packages/**/test/*.js', 'packages/**/*.js'],
|
||||||
|
|
Loading…
Reference in a new issue