mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-10-31 18:21:58 +08:00
Move the previously untracked TypeScript CLI into iot-dc3 as an independently managed module next to dc3-web: - pnpm workspace (pnpm@11.24.0) with esbuild build approval, package renamed to iot-dc3-cli, npm lockfile dropped - add eslint flat config; lint now runs green after removing unused imports/vars and adding switch-case breaks in config.ts - document CLI conventions and commands in AGENTS.md
26 lines
558 B
JavaScript
26 lines
558 B
JavaScript
import js from '@eslint/js';
|
|
import tsparser from '@typescript-eslint/parser';
|
|
import globals from 'globals';
|
|
|
|
export default [
|
|
{
|
|
ignores: ['node_modules/**', 'dist/**'],
|
|
},
|
|
js.configs.recommended,
|
|
{
|
|
files: ['src/**/*.ts', 'test/**/*.ts'],
|
|
languageOptions: {
|
|
parser: tsparser,
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
globals: {
|
|
...globals.node,
|
|
},
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
'no-unused-vars': ['error', {argsIgnorePattern: '^_'}],
|
|
},
|
|
},
|
|
];
|