2024-08-05 16:13:16 -04:00
|
|
|
import js from '@eslint/js';
|
2025-03-31 13:18:25 +02:00
|
|
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
|
|
|
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
|
2024-08-05 16:13:16 -04:00
|
|
|
import globals from 'globals';
|
2025-03-31 13:18:25 +02:00
|
|
|
import typescriptEslint from 'typescript-eslint';
|
2024-08-05 16:13:16 -04:00
|
|
|
|
2025-03-31 13:18:25 +02:00
|
|
|
export default typescriptEslint.config([
|
|
|
|
|
eslintPluginUnicorn.configs.recommended,
|
|
|
|
|
eslintPluginPrettierRecommended,
|
|
|
|
|
js.configs.recommended,
|
|
|
|
|
typescriptEslint.configs.recommended,
|
2024-08-05 16:13:16 -04:00
|
|
|
{
|
|
|
|
|
ignores: ['eslint.config.mjs'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
languageOptions: {
|
|
|
|
|
globals: {
|
|
|
|
|
...globals.node,
|
|
|
|
|
},
|
|
|
|
|
|
2025-03-31 13:18:25 +02:00
|
|
|
parser: typescriptEslint.parser,
|
2024-08-05 16:13:16 -04:00
|
|
|
ecmaVersion: 5,
|
|
|
|
|
sourceType: 'module',
|
|
|
|
|
|
|
|
|
|
parserOptions: {
|
|
|
|
|
project: 'tsconfig.json',
|
2026-08-12 18:01:30 +02:00
|
|
|
tsconfigRootDir: import.meta.dirname,
|
2024-08-05 16:13:16 -04:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
rules: {
|
|
|
|
|
'@typescript-eslint/interface-name-prefix': 'off',
|
|
|
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
|
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
|
|
|
'@typescript-eslint/no-floating-promises': 'error',
|
|
|
|
|
'unicorn/prefer-module': 'off',
|
|
|
|
|
'unicorn/import-style': 'off',
|
2026-07-20 23:47:14 -04:00
|
|
|
'unicorn/consistent-boolean-name': 'off',
|
|
|
|
|
'unicorn/no-non-function-verb-prefix': 'off',
|
|
|
|
|
'unicorn/no-unreadable-for-of-expression': 'off',
|
|
|
|
|
'unicorn/max-nested-calls': 'off',
|
|
|
|
|
'unicorn/prefer-uint8array-base64': 'off',
|
|
|
|
|
'unicorn/isolated-functions': 'off',
|
|
|
|
|
'unicorn/prefer-promise-with-resolvers': 'off',
|
|
|
|
|
'unicorn/no-declarations-before-early-exit': 'off',
|
2026-07-21 15:33:46 +02:00
|
|
|
'unicorn/prefer-simple-condition-first': 'off',
|
2024-08-05 16:13:16 -04:00
|
|
|
curly: 2,
|
|
|
|
|
'prettier/prettier': 0,
|
2026-07-20 23:47:14 -04:00
|
|
|
'unicorn/name-replacements': 'off',
|
2024-08-05 16:13:16 -04:00
|
|
|
'unicorn/filename-case': 'off',
|
|
|
|
|
'unicorn/no-null': 'off',
|
|
|
|
|
'unicorn/prefer-top-level-await': 'off',
|
|
|
|
|
'unicorn/prefer-event-target': 'off',
|
|
|
|
|
'unicorn/no-thenable': 'off',
|
2024-08-30 14:38:53 -04:00
|
|
|
'object-shorthand': ['error', 'always'],
|
2024-08-05 16:13:16 -04:00
|
|
|
},
|
|
|
|
|
},
|
2025-03-31 13:18:25 +02:00
|
|
|
]);
|