Files
iot-dc3/dc3-cli/eslint.config.mjs
pnoker b828719d38 feat(cli): adopt dc3-cli into the repository as a standalone module
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
2026-09-01 22:03:13 +08:00

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: '^_'}],
},
},
];