summaryrefslogtreecommitdiff
path: root/.eslintrc.cjs
blob: 641862568409cefc857aa593292c8f9613c4347a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
};