fix: standardize version parsing and simplify string escaping
This commit is contained in:
1 parent
4e2b6b1200
commit
38a7c3da63
23 files changed
+245
-137
No files matched your search
@@ -57,6 +57,7 @@ Webhook bodies and email subjects/bodies support `{uin}`, `{nickname}`, `{event}
|
||||
(`offline` or `online`), `{time}`, `{status}` (Hook process state), `{pid}`, and
|
||||
`{error}` (Hook process error). New webhook and email channels include process
|
||||
status in their default body; existing saved templates are preserved.
|
||||
JSON templates escape substituted strings, including quotes, line breaks and control characters.
|
||||
|
||||
Process facts are resolved when the notification is dispatched, after any offline
|
||||
debounce. Each transition carries its process PID, including the final PID detached
|
||||
|
||||
@@ -6,11 +6,6 @@ import reactRefresh from 'eslint-plugin-react-refresh';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import { defineConfig, globalIgnores } from 'eslint/config';
|
||||
|
||||
const tsconfigRootDir = decodeURIComponent(new URL('.', import.meta.url).pathname).replace(
|
||||
/^\/(.:\/)/,
|
||||
'$1',
|
||||
);
|
||||
|
||||
export default defineConfig([
|
||||
globalIgnores(['dist']),
|
||||
{
|
||||
@@ -25,7 +20,7 @@ export default defineConfig([
|
||||
ecmaVersion: 2020,
|
||||
globals: globals.browser,
|
||||
parserOptions: {
|
||||
tsconfigRootDir,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
|
||||
Reference in new issue
Block a user