Skip to content

Commit ee70880

Browse files
committed
Add ESLint rule to validate translator key destructuring
Implements no-undefined-translator-keys rule that prevents destructuring undefined keys from createTranslator objects. Validates both same-file and cross-file imports using AST parsing and Node.js module resolution.
1 parent 2b93b0e commit ee70880

File tree

8 files changed

+1252
-1
lines changed

8 files changed

+1252
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
entry: yarn run lint-frontend:format
3030
language: system
3131
files: \.(js|vue|scss|css)$
32-
exclude: ^kolibri/plugins/qti_viewer/assets/src/components/__fixtures__/items\.js
32+
exclude: (?x)^(kolibri/plugins/qti_viewer/assets/src/components/__fixtures__/items\.js|packages/eslint-plugin-kolibri/tests/lib/rules/fixtures/malformed\.js)
3333
- repo: local
3434
hooks:
3535
- id: core-js-api

0 commit comments

Comments
 (0)