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:
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user