From 753fcaebe44fa1b4e8e6e496fbade9508fac1dc1 Mon Sep 17 00:00:00 2001 From: Pawel Zelawski Date: Wed, 9 Apr 2025 19:06:50 +0200 Subject: feat: Initialize project structure and dependencies Initialize the DigiID-TS project with basic tooling and configuration. - Create package.json with project metadata and scripts. - Configure TypeScript (tsconfig.json) for strict compilation. - Set up ESLint and Prettier for code linting and formatting. - Configure Vitest for unit testing and coverage. - Add a standard Node.js .gitignore file. - Install development dependencies (TypeScript, Vite, Vitest, ESLint, Prettier). - Install core runtime dependency 'digibyte-message' from the original library's Git source. --- .eslintrc.cjs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .eslintrc.cjs (limited to '.eslintrc.cjs') diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..6418625 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,26 @@ +module.exports = { + root: true, + parser: '@typescript-eslint/parser', + plugins: [ + '@typescript-eslint', + ], + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'prettier', // Add prettier last to override other formatting rules + ], + env: { + node: true, + es2021: true, + }, + parserOptions: { + ecmaVersion: 12, + sourceType: 'module', + }, + rules: { + // Add any specific rule overrides here + '@typescript-eslint/no-explicit-any': 'warn', // Allow any, but warn + '@typescript-eslint/no-unused-vars': ['warn', { 'argsIgnorePattern': '^_' }], // Warn unused vars, ignore if starts with _ + }, + ignorePatterns: ["dist/", "node_modules/", "*.cjs", "vitest.config.ts"], // Ignore config files and output +}; \ No newline at end of file -- cgit v1.2.3