mirror of
https://github.com/FJurmanovic/sugarr.git
synced 2026-11-11 15:51:09 +00:00
- authHook: use crypto.timingSafeEqual for the bearer token comparison instead of !==, avoiding a timing side-channel on the secret key. - .eslintrc.cjs: add argsIgnorePattern for underscore-prefixed unused params, fixing false-positive no-unused-vars errors on intentional _ctx/_params placeholders used throughout the LlmTool hierarchy.
13 lines
426 B
JavaScript
13 lines
426 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint'],
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
|
env: { node: true, es2022: true },
|
|
parserOptions: { ecmaVersion: 2022, sourceType: 'module' },
|
|
ignorePatterns: ['dist', 'node_modules'],
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
},
|
|
};
|