Update README.md with codeFrame option (babel/babel-eslint#448)

This commit is contained in:
Luís Couto 2017-03-21 00:11:30 +00:00
parent f9b19189d7
commit 1cda9b6a80

View File

@ -78,6 +78,7 @@ Check out the [ESLint docs](http://eslint.org/docs/rules/) for all possible rule
`sourceType` can be set to `'module'`(default) or `'script'` if your code isn't using ECMAScript modules. `sourceType` can be set to `'module'`(default) or `'script'` if your code isn't using ECMAScript modules.
`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. `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.
`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.
**.eslintrc** **.eslintrc**
@ -86,7 +87,8 @@ Check out the [ESLint docs](http://eslint.org/docs/rules/) for all possible rule
"parser": "babel-eslint", "parser": "babel-eslint",
"parserOptions": { "parserOptions": {
"sourceType": "module", "sourceType": "module",
"allowImportExportEverywhere": false "allowImportExportEverywhere": false,
"codeFrame": false
} }
} }
``` ```