diff --git a/src/configs/javascript.ts b/src/configs/javascript.ts index 7282e036fb..b56bd0abc7 100644 --- a/src/configs/javascript.ts +++ b/src/configs/javascript.ts @@ -116,6 +116,8 @@ export function javascript(options: OptionsIsInEditor & OptionsOverrides = {}): 'DebuggerStatement', 'LabeledStatement', 'WithStatement', + 'TSEnumDeclaration[const=true]', + 'TSExportAssignment', ], 'no-self-assign': ['error', { props: true }], 'no-self-compare': 'error', diff --git a/src/configs/typescript.ts b/src/configs/typescript.ts index 96e64d4271..f618a6b281 100644 --- a/src/configs/typescript.ts +++ b/src/configs/typescript.ts @@ -81,9 +81,7 @@ export function typescript( 'antfu/generic-spacing': 'error', 'antfu/named-tuple-spacing': 'error', 'antfu/no-cjs-exports': 'error', - 'antfu/no-const-enum': 'error', - 'antfu/no-ts-export-equal': 'error', - + 'no-dupe-class-members': OFF, 'no-invalid-this': OFF, 'no-loss-of-precision': OFF, @@ -122,6 +120,10 @@ export function typescript( 'eslint-comments/no-unlimited-disable': OFF, 'import/no-duplicates': OFF, 'unused-imports/no-unused-vars': OFF, + 'no-restricted-syntax': [ + 'error', + '[declare=true]', + ], }, }, {