Remove error for @typescript-eslint/no-namespace (#7803)

Declare namespaces are supported by babel now, and babel will throw with a nice error message for non-declare namespaces, so this rule is unnecessary. Closes #7651.
This commit is contained in:
Sean Zhu
2019-12-06 12:44:22 -08:00
committed by Alex Guerra
parent 8330e7c0de
commit b19bffe110
2 changed files with 7 additions and 1 deletions

View File

@@ -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',

View File

@@ -27,4 +27,11 @@ function propertyDecorator(target: any, key: string) {
};
}
declare namespace MyNamespace {
interface MyType {
foo: string;
bar: (n: number) => void;
}
}
export default App;