diff --git a/packages/eslint-config-react-app/index.js b/packages/eslint-config-react-app/index.js index 419dc10e8d4..b0e3fb1449f 100644 --- a/packages/eslint-config-react-app/index.js +++ b/packages/eslint-config-react-app/index.js @@ -81,7 +81,6 @@ module.exports = { '@typescript-eslint/consistent-type-assertions': 'warn', 'no-array-constructor': 'off', '@typescript-eslint/no-array-constructor': 'warn', - '@typescript-eslint/no-namespace': 'error', 'no-use-before-define': 'off', '@typescript-eslint/no-use-before-define': [ 'warn', diff --git a/test/fixtures/typescript/src/App.ts b/test/fixtures/typescript/src/App.ts index 665f8b49f1f..ee9276a699a 100644 --- a/test/fixtures/typescript/src/App.ts +++ b/test/fixtures/typescript/src/App.ts @@ -27,4 +27,11 @@ function propertyDecorator(target: any, key: string) { }; } +declare namespace MyNamespace { + interface MyType { + foo: string; + bar: (n: number) => void; + } +} + export default App;