From 93609f26776f2e9ffc0433bf56710b4bb64d065e Mon Sep 17 00:00:00 2001 From: Aziz Abdullaev Date: Sat, 26 Nov 2022 10:52:56 -0500 Subject: [PATCH] fix wording, spelling, and indentation in docs file for prefer-default-export --- docs/rules/prefer-default-export.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/rules/prefer-default-export.md b/docs/rules/prefer-default-export.md index 708bd9370f..807421fa00 100644 --- a/docs/rules/prefer-default-export.md +++ b/docs/rules/prefer-default-export.md @@ -27,7 +27,7 @@ How to setup config file for this rule: ```javascript // you can manually specify it -"rules":{ +"rules": { "import/prefer-default-export": [ ( "off" | "warn" | "error" ), { "target": "single" } @@ -35,7 +35,7 @@ How to setup config file for this rule: } // config setup below will also work -"rules":{ +"rules": { "import/prefer-default-export": "off" | "warn" | "error" } ``` @@ -95,13 +95,13 @@ export * from './other-module' #### any -**Definition**: any exporting file must contain default export. +**Definition**: any exporting file must contain a default export. How to setup config file for this rule: ```javascript -// you can manually specify it -"rules":{ +// you have to manually specify it +"rules": { "import/prefer-default-export": [ ( "off" | "warn" | "error" ), { "target": "any" } @@ -110,7 +110,7 @@ How to setup config file for this rule: ``` -The following patterns are no warnings: +The following patterns are *not* considered warnings: ```javascript // good1.js @@ -151,7 +151,7 @@ import * as foo from './foo'; export * from './other-module' ``` -Followings are considered as warnings: +The following patterns are considered warnings: ```javascript // bad1.js