@@ -43,9 +43,8 @@ const avoidMistakeRules = {
4343 '@tanstack/query/no-unstable-deps' : 'error' , // avoid unstable results from the hook being deps
4444 '@tanstack/query/no-void-query-fn' : 'error' , // query function should always return something
4545 '@lingui/no-single-tag-to-translate' : 'error' ,
46- // '@lingui/no-single-variables-to-translate': 'error', // we're mixing two i18n frameworks, a lot of false positive reports
47- // https://github.com/lingui/eslint-plugin/issues/46
48- // '@lingui/no-unlocalized-strings': 'error',
46+ // https://github.com/lingui/eslint-plugin/issues/104
47+ // '@lingui/no-single-variables-to-translate': 'error',
4948 '@lingui/no-trans-inside-trans' : 'error' ,
5049 '@lingui/t-call-in-function' : 'error' ,
5150
@@ -108,7 +107,7 @@ const avoidMistakeRules = {
108107 /// Unicode support
109108 'no-misleading-character-class' : 'error' , // RegEx
110109 'require-unicode-regexp' : 'error' , // RegEx modern RegEx with Unicode support
111- // 'unicorn/prefer-code-point': 'error',
110+ 'unicorn/prefer-code-point' : 'error' ,
112111 // '@masknet/no-builtin-base64': 'warn', // Note: it fixes to Node's Buffer
113112 /// type safety
114113 // '@typescript-eslint/method-signature-style': 'warn', // method signature is bivariant
@@ -249,8 +248,7 @@ const codeStyleRules = {
249248 'react/no-class-component' : 'error' ,
250249 'react/no-context-provider' : 'error' ,
251250 'react/no-forward-ref' : 'error' ,
252- // Let's wait for https://github.com/typescript-eslint/typescript-eslint/issues/6572
253- // '@typescript-eslint/no-namespace': 'error', // namespace T {}
251+ // '@typescript-eslint/no-namespace': 'error', // namespace T {}, they won't support type only namespace
254252 '@typescript-eslint/prefer-namespace-keyword' : 'error' , // but if you really need to, don't use `module T {}`
255253
256254 // Useless code
@@ -431,12 +429,12 @@ const codeStyleRules = {
431429
432430 // Bad practice
433431 'no-ex-assign' : 'warn' , // reassign err in catch
434- // 'no-multi-assign': 'warn', // a = b = c
432+ 'no-multi-assign' : 'warn' , // a = b = c
435433 // 'no-param-reassign': 'warn',
436- // 'no-return-assign': 'warn', // return x = expr
437- // 'unicorn/no-object-as-default-parameter': 'warn',
438- // '@typescript-eslint/default-param-last': 'warn', // (a, b = 1, c)
439- // '@typescript-eslint/no-dynamic-delete': 'error', // this usually means you should use Map/Set
434+ 'no-return-assign' : 'warn' , // return x = expr
435+ 'unicorn/no-object-as-default-parameter' : 'warn' ,
436+ '@typescript-eslint/default-param-last' : 'warn' , // (a, b = 1, c)
437+ '@typescript-eslint/no-dynamic-delete' : 'error' , // this usually means you should use Map/Set
440438 /// Async functions / Promise bad practice
441439 'no-async-promise-executor' : 'error' , // new Promise(async (resolve) => )
442440 'no-promise-executor-return' : 'error' , // new Promise(() => result)
@@ -577,6 +575,7 @@ const plugins = {
577575 'react-hooks' : ReactHooksPlugin ,
578576 'react-compiler' : ReactCompilerPlugin ,
579577 '@tanstack/query' : ReactQueryPlugin ,
578+ // @ts -ignore
580579 '@lingui' : fixupPluginRules ( LinguiPlugin ) ,
581580}
582581export default tseslint . config (
0 commit comments