mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 22:48:17 +00:00
- 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>
35 lines
797 B
JavaScript
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.',
|
|
})
|
|
}
|
|
},
|
|
}
|
|
},
|
|
},
|
|
},
|
|
}
|