Files
wehub-resource-sync 0232b4e2bb
CI / build (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:09:51 +08:00

35 lines
736 B
JavaScript

/**
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
* SPDX-License-Identifier: MIT
*/
import { defineFlatConfig } from '@flowgram.ai/eslint-config';
import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineFlatConfig({
parser: '@typescript-eslint/parser',
preset: 'node',
packageRoot: __dirname,
ignore: ['.eslintrc.cjs'],
parserOptions: {
requireConfigFile: false,
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
},
rules: {
'no-console': 'off',
},
plugins: ['json', '@typescript-eslint'],
settings: {
react: {
version: '18',
},
},
});