flowgram.ai/config/eslint-config/.eslintrc.web.js
chenjiawei.inizio cbefaa54fb
chore: add license header (#432)
* chore: add license-header

* chore: add precommit

* chore: add license header

* fix: only js & shell style
2025-07-01 11:53:02 +00:00

34 lines
641 B
JavaScript

/**
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
* SPDX-License-Identifier: MIT
*/
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('@rushstack/eslint-config/patch/modern-module-resolution');
module.exports = {
extends: ['./.eslintrc.base.js'],
plugins: ['react'],
env: {
browser: true,
node: true,
es6: true,
jest: true,
},
globals: {
React: true,
jsdom: true,
JSX: true,
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'import/no-cycle': 'off',
},
};