diff options
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r-- | .eslintrc.cjs | 26 |
1 files changed, 26 insertions, 0 deletions
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 |