aps-agent/eslint.config.js

21 lines
783 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 平台代码的 lint 基线(任务 A1.6)。
// 只覆盖平台 TS(contracts / server / client / providers);aps/ 是 Python,脚本是纯 JS 测试,都不走这套。
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{
ignores: ['**/dist/**', '**/node_modules/**', 'aps/**', 'scripts/**', '**/*.mjs', '**/*.cjs'],
},
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
eqeqeq: ['error', 'always'],
'no-console': 'off',
},
},
);