2026-02-21 03:10:39 +00:00
|
|
|
import tseslint from '@typescript-eslint/eslint-plugin';
|
|
|
|
|
import tsparser from '@typescript-eslint/parser';
|
|
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
{
|
2026-08-09 20:47:45 +01:00
|
|
|
files: ['src/*/src/**/*.ts', 'src/pi-ext/*.ts', 'src/opencode-ext/*.ts', 'src/opencode-ext/*.tsx', 'src/prime-agent-ext/*.ts'],
|
2026-02-21 03:10:39 +00:00
|
|
|
languageOptions: {
|
|
|
|
|
parser: tsparser,
|
|
|
|
|
parserOptions: {
|
|
|
|
|
project: ['./src/*/tsconfig.json'],
|
|
|
|
|
tsconfigRootDir: import.meta.dirname,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
plugins: { '@typescript-eslint': tseslint },
|
|
|
|
|
rules: {
|
|
|
|
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
|
|
|
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
|
|
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
|
|
|
'@typescript-eslint/strict-boolean-expressions': 'error',
|
|
|
|
|
'no-console': ['warn', { allow: ['warn', 'error'] }],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ignores: ['**/dist/**', '**/node_modules/**', '**/*.config.*'],
|
|
|
|
|
},
|
|
|
|
|
];
|