UNPKG

deeply-copy

Version:

custom deep copy function to make a brand new immutable object

23 lines (19 loc) 735 B
// @ts-check import { includeIgnoreFile } from '@eslint/compat'; import path from 'node:path'; import eslint from '@eslint/js'; import tseslint from 'typescript-eslint'; import eslintConfigPrettier from 'eslint-config-prettier'; import { fileURLToPath } from 'node:url'; import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const gitignorePath = path.resolve(__dirname, '.gitignore'); export default tseslint.config( eslint.configs.recommended, ...tseslint.configs.strict, ...tseslint.configs.stylistic, eslintConfigPrettier, includeIgnoreFile(gitignorePath), eslintPluginPrettierRecommended, );