wip library to store cold objects in s3, warm objects on disk, and hot objects in memory
nodejs typescript
at main 1.1 kB view raw
1import js from '@eslint/js'; 2import tseslint from 'typescript-eslint'; 3import prettier from 'eslint-plugin-prettier/recommended'; 4 5export default tseslint.config( 6 js.configs.recommended, 7 ...tseslint.configs.recommendedTypeChecked, 8 prettier, 9 { 10 languageOptions: { 11 parserOptions: { 12 project: './tsconfig.eslint.json', 13 tsconfigRootDir: import.meta.dirname, 14 }, 15 }, 16 rules: { 17 '@typescript-eslint/no-unused-vars': 'error', 18 '@typescript-eslint/no-explicit-any': 'warn', 19 '@typescript-eslint/prefer-nullish-coalescing': 'error', 20 '@typescript-eslint/prefer-optional-chain': 'error', 21 '@typescript-eslint/no-floating-promises': 'error', 22 '@typescript-eslint/await-thenable': 'error', 23 '@typescript-eslint/require-await': 'off', // Interface methods can be async for compatibility 24 '@typescript-eslint/explicit-function-return-type': 'off', // Too noisy for test files 25 'prettier/prettier': 'error', 26 'indent': ['error', 'tab', { 'SwitchCase': 1 }], 27 '@typescript-eslint/indent': 'off', // Prettier handles this 28 }, 29 }, 30 { 31 ignores: ['dist/', 'node_modules/', '*.js', '*.cjs', '*.mjs'], 32 }, 33);