diff --git a/eslint.config.js b/eslint.config.js index ea75e48..8e24371 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -133,18 +133,16 @@ export default [ 'unicorn/prefer-ternary': 0, 'unicorn/prefer-top-level-await': 0, 'unicorn/prevent-abbreviations': 0, + 'unicorn/consistent-compound-words': 0, + // ne pas retirer `undefined` passe en argument (souvent requis par la signature -> casse tsc) + 'unicorn/no-useless-undefined': ['error', { checkArguments: false }], 'unicorn/relative-url-style': 0, 'unicorn/switch-case-braces': 0, 'unicorn/template-indent': 0, 'unicorn/text-encoding-identifier-case': 0, 'unicorn/prefer-regexp-test': 0, 'unicorn/prefer-optional-catch-binding': 0, - 'unicorn/filename-case': [ - 'error', - { - case: 'camelCase', - }, - ], + 'unicorn/filename-case': 0, 'sonarjs/cognitive-complexity': 0, 'sonarjs/no-nested-template-literals': 0, 'sonarjs/no-collapsible-if': 0, @@ -155,6 +153,7 @@ export default [ 'sonarjs/prefer-single-boolean-return': 0, 'n/no-unpublished-import': 0, 'n/no-unsupported-features/es-syntax': 0, + 'n/no-unsupported-features/node-builtins': 0, 'n/no-missing-import': 0, 'n/no-process-exit': 0, @@ -220,6 +219,7 @@ export default [ radix: ['error', 'as-needed'], 'prefer-regex-literals': 'error', 'prefer-promise-reject-errors': 'error', + 'promise/catch-or-return': ['error', { terminationMethod: ['catch', 'finally'] }], 'no-warning-comments': 'error', 'no-void': 'error', 'no-useless-return': 'error',