.eslintrc.cjs1.91 kB
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
env: {
node: true,
es2022: true,
},
plugins: ['@typescript-eslint', 'import'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
],
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
node: {
extensions: ['.js', '.ts'],
},
},
'import/extensions': ['.js', '.ts'],
'import/parsers': {
'@typescript-eslint/parser': ['.ts'],
},
},
rules: {
// Disable problematic import rules for now
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/order': 'off',
'import/named': 'off',
'import/namespace': 'off',
'import/default': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'import/no-duplicates': 'off',
'import/export': 'off',
// Keep TypeScript rules that are working
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/no-namespace': 'off', // Disable namespace rule
// Disable case declarations rule that's causing issues
'no-case-declarations': 'off',
},
ignorePatterns: [
'node_modules/',
'dist/',
'examples/',
'scripts/',
'tests/', // Exclude test files from linting
'jest.*.js',
'*.config.js',
],
};