Enable more eslint recommended rules (#11168)

* chore: enable no-constant-condition

* chore: enable no-empty rule

* chore: enable no-unreachable

* chore: enable no-cond-assign

* chore: enable no-inner-declarations

* chore: remove disabled rules that are not in eslint:recommended

* fix: oops
This commit is contained in:
Huáng Jùnliàng
2020-02-24 19:04:25 -05:00
committed by GitHub
parent 2d1bac9666
commit afb0f489de
6 changed files with 184 additions and 198 deletions

View File

@@ -99,7 +99,7 @@ function ExportDeclaration(node: Object) {
// print "special" specifiers first
let hasSpecial = false;
while (true) {
for (;;) {
const first = specifiers[0];
if (
t.isExportDefaultSpecifier(first) ||
@@ -149,7 +149,7 @@ export function ImportDeclaration(node: Object) {
const specifiers = node.specifiers.slice(0);
if (specifiers && specifiers.length) {
// print "special" specifiers first
while (true) {
for (;;) {
const first = specifiers[0];
if (
t.isImportDefaultSpecifier(first) ||