Skip to content

Commit

Permalink
chore: update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Aug 19, 2024
1 parent af08bc0 commit 81d66cb
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 12 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion cli/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const actions: InstallerModule[] = [
await import('@/actions/db/typegen.js'),
await import('@/actions/db/reset.js'),
await import('@/actions/email/compile.js'),
await import('@/actions/email/configure.js')
await import('@/actions/email/configure.js'),
]

export default actions
4 changes: 2 additions & 2 deletions cli/actions/config/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function handleExisting(path: string): Promise<boolean> {
try {
await stat(path)
const answer = await confirm({
message: 'A config file already exists. Overwrite?'
message: 'A config file already exists. Overwrite?',
})
if (!answer) {
console.error('Action canceled by user.')
Expand Down Expand Up @@ -51,7 +51,7 @@ const installer: Installer = program => {

await mkdir(dirname(location), { recursive: true })
await writeFile(location, JSON.stringify({
'$schema': '../node_modules/@actcoding/supa-cli/config.schema.json'
'$schema': '../node_modules/@actcoding/supa-cli/config.schema.json',
}, null, 4))

log(`Config file created at ${configFile}`)
Expand Down
2 changes: 1 addition & 1 deletion cli/actions/db/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const installer: Installer = program => {
const cmd = [
'supabase',
'db',
'reset'
'reset',
]

cmd.push(opts.linked ? '--linked' : '--local')
Expand Down
2 changes: 1 addition & 1 deletion cli/actions/db/typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function generateTypes(opts: Options): Promise<void> {
'gen',
'types',
'--schema', 'public',
'--lang', 'typescript'
'--lang', 'typescript',
]

cmd.push(opts.linked ? '--linked' : '--local')
Expand Down
2 changes: 1 addition & 1 deletion cli/actions/email/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const installer: Installer = program => {
.description('Compile and optionally deploy email templates')
.addOption(
new Option('--deploy', 'Enable deployment to linked Supabase project. (Implies --linked)')
.implies({ linked: true, })
.implies({ linked: true }),
)
.action(action<Options>(async ({ opts }) => {
const projectRef = opts.deploy ? await supabaseProjectRef() : null
Expand Down
4 changes: 2 additions & 2 deletions cli/actions/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const installer: Installer = program => {
const namespaces = Array.from(new Set(commands
.map<string>(cmd => cmd._name)
.map(name => name.includes(':') ? name.slice(0, name.indexOf(':')) : '_global')
.sort()
.sort(),
))

const list: List = {
Expand All @@ -67,7 +67,7 @@ const installer: Installer = program => {
commands: commands
.filter(cmd => id == '_global' ? !cmd._name.includes(':') : cmd._name.startsWith(id))
.map(cmd => cmd._name)
.sort()
.sort(),
}
}),
commands: commands.map(cmd => ({
Expand Down
5 changes: 3 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const config = [
{
ignores: [
'*.d.ts',
'supabase',
'supabase/',
'.venv',
],
}
},
]

export default config
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"node": ">=14.8"
},
"devDependencies": {
"@actcoding/eslint-config": "^0.0.5",
"@inquirer/select": "^2.4.7",
"@actcoding/eslint-config": "^0.0.7",
"@types/bun": "^1.1.6",
"@types/ejs": "^3.1.5",
"@types/hast": "^3.0.4",
Expand All @@ -60,6 +59,7 @@
"@inquirer/confirm": "^3.1.20",
"@inquirer/input": "^2.2.7",
"@inquirer/password": "^2.1.20",
"@inquirer/select": "^2.4.7",
"commander": "^12.1.0",
"dayjs": "^1.11.12",
"dotenv": "^16.4.5",
Expand Down

0 comments on commit 81d66cb

Please sign in to comment.