mirror of
https://github.com/BillyOutlast/drop.git
synced 2026-02-04 00:31:17 +01:00
* prevent returning expired sessions * add issuer to ODIC creds * get id token in ODIC * make session signin return session * working backchannel logout? * require https for ODIC provider * handle wellknown not being https * find session api progress * fix windows build * return session token on session * switch OIDC to #searchSessions * update pnpm * switch to using message on error obj * move odic callback * fix type errors * redirect old oidc callback * make redirect url a URL * remove scheduled task downloadCleanup * fix session search for oidc * fix signin result * cleanup code * ignore data dir * fix lint error
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
// @ts-check
|
|
import { globalIgnores } from "eslint/config";
|
|
import withNuxt from "./.nuxt/eslint.config.mjs";
|
|
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
import vueI18n from "@intlify/eslint-plugin-vue-i18n";
|
|
import noPrismaDelete from "./rules/no-prisma-delete.mts";
|
|
|
|
export default withNuxt([
|
|
globalIgnores([".data/*"]),
|
|
|
|
eslintConfigPrettier,
|
|
|
|
// vue-i18n plugin
|
|
...vueI18n.configs.recommended,
|
|
{
|
|
rules: {
|
|
// Optional.
|
|
"@intlify/vue-i18n/no-dynamic-keys": "error",
|
|
"@intlify/vue-i18n/no-unused-keys": [
|
|
"off",
|
|
{
|
|
extensions: [".js", ".vue", ".ts"],
|
|
},
|
|
],
|
|
"@intlify/vue-i18n/no-missing-keys": "error",
|
|
"drop/no-prisma-delete": "error",
|
|
},
|
|
settings: {
|
|
"vue-i18n": {
|
|
localeDir: "./i18n/locales/*.{json,json5,ts,js}", // extension is glob formatting!
|
|
|
|
// Specify the version of `vue-i18n` you are using.
|
|
// If not specified, the message will be parsed twice.
|
|
messageSyntaxVersion: "^11.0.0",
|
|
},
|
|
},
|
|
plugins: {
|
|
drop: { rules: { "no-prisma-delete": noPrismaDelete } },
|
|
},
|
|
},
|
|
]);
|