Files
afilmory/plugins/eslint/eslint-no-debug.js
Innei c775f82153 feat(i18n): integrate i18next for internationalization support
- Added i18next and react-i18next for multi-language support in the application.
- Created localization files for English, Japanese, Korean, Traditional Chinese, and Simplified Chinese.
- Implemented translation hooks in various components to replace hardcoded strings with translatable keys.
- Updated ESLint configuration to include new i18n JSON validation rules.
- Introduced a new event bus for handling i18n updates during development.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-12 17:56:11 +08:00

35 lines
797 B
JavaScript

/**
* @type {import("eslint").ESLint.Plugin}
*/
export default {
rules: {
'no-debug-stack': {
meta: {
type: 'problem',
docs: {
description: 'Disallow use of debugStack() function',
category: 'Possible Errors',
recommended: true,
},
fixable: null,
},
create(context) {
return {
CallExpression(node) {
if (
node.callee.type === 'Identifier' &&
node.callee.name === 'debugStack'
) {
context.report({
node,
message:
'Unexpected debugStack() statement. Remove debugStack() calls from production code.',
})
}
},
}
},
},
},
}