mirror of https://github.com/zulip/zulip.git
eslint: Replace no-duplicate-imports rule with import/no-duplicates.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
3b12ae18c8
commit
9570ced462
|
@ -50,6 +50,7 @@
|
||||||
"import/extensions": "error",
|
"import/extensions": "error",
|
||||||
"import/first": "error",
|
"import/first": "error",
|
||||||
"import/newline-after-import": "error",
|
"import/newline-after-import": "error",
|
||||||
|
"import/no-duplicates": "error",
|
||||||
"import/no-self-import": "error",
|
"import/no-self-import": "error",
|
||||||
"import/no-unresolved": "off",
|
"import/no-unresolved": "off",
|
||||||
"import/no-useless-path-segments": "error",
|
"import/no-useless-path-segments": "error",
|
||||||
|
@ -64,7 +65,6 @@
|
||||||
"no-catch-shadow": "error",
|
"no-catch-shadow": "error",
|
||||||
"no-constant-condition": ["error", {"checkLoops": false}],
|
"no-constant-condition": ["error", {"checkLoops": false}],
|
||||||
"no-div-regex": "error",
|
"no-div-regex": "error",
|
||||||
"no-duplicate-imports": "error",
|
|
||||||
"no-else-return": "error",
|
"no-else-return": "error",
|
||||||
"no-eq-null": "error",
|
"no-eq-null": "error",
|
||||||
"no-eval": "error",
|
"no-eval": "error",
|
||||||
|
@ -169,7 +169,6 @@
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
// Disable base rule to avoid conflict
|
// Disable base rule to avoid conflict
|
||||||
"no-duplicate-imports": "off",
|
|
||||||
"no-use-before-define": "off",
|
"no-use-before-define": "off",
|
||||||
|
|
||||||
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
|
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
|
||||||
|
@ -179,7 +178,6 @@
|
||||||
{"allowExpressions": true}
|
{"allowExpressions": true}
|
||||||
],
|
],
|
||||||
"@typescript-eslint/member-ordering": "error",
|
"@typescript-eslint/member-ordering": "error",
|
||||||
"@typescript-eslint/no-duplicate-imports": "error",
|
|
||||||
"@typescript-eslint/no-non-null-assertion": "off",
|
"@typescript-eslint/no-non-null-assertion": "off",
|
||||||
"@typescript-eslint/no-parameter-properties": "error",
|
"@typescript-eslint/no-parameter-properties": "error",
|
||||||
"@typescript-eslint/no-unnecessary-condition": "off",
|
"@typescript-eslint/no-unnecessary-condition": "off",
|
||||||
|
|
Loading…
Reference in New Issue