Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const neostandard = require('neostandard')

module.exports = [
{ ignores: ['index.mjs'] },
...neostandard(),
{
rules: {
Expand Down
8 changes: 3 additions & 5 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { createRequire } from 'node:module'
import TRUSTED_PACKAGE_NAMES from './allow.json' with { type: 'json' }
import DEFAULT_ALLOW_BUILDS from './allowBuilds.json' with { type: 'json' }

const require = createRequire(import.meta.url)

export const TRUSTED_PACKAGE_NAMES = require('./allow.json')
export const DEFAULT_ALLOW_BUILDS = require('./allowBuilds.json')
export { TRUSTED_PACKAGE_NAMES, DEFAULT_ALLOW_BUILDS }
Loading