Skip to content

Commit 7972a05

Browse files
Coutohzoo
authored andcommitted
Update README.md with codeFrame option (babel#448)
1 parent 4db4db5 commit 7972a05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Check out the [ESLint docs](http://eslint.org/docs/rules/) for all possible rule
7878

7979
`sourceType` can be set to `'module'`(default) or `'script'` if your code isn't using ECMAScript modules.
8080
`allowImportExportEverywhere` can be set to true to allow import and export declarations to appear anywhere a statement is allowed if your build environment supports that. By default, import and export declarations can only appear at a program's top level.
81+
`codeFrame` can be set to false to disable the code frame in the reporter. This is useful since some eslint formatters don't play well with it.
8182

8283
**.eslintrc**
8384

@@ -86,7 +87,8 @@ Check out the [ESLint docs](http://eslint.org/docs/rules/) for all possible rule
8687
"parser": "babel-eslint",
8788
"parserOptions": {
8889
"sourceType": "module",
89-
"allowImportExportEverywhere": false
90+
"allowImportExportEverywhere": false,
91+
"codeFrame": false
9092
}
9193
}
9294
```

0 commit comments

Comments
 (0)