File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,16 @@ specify it here (anymore, as of v0.9).
290290[ babel-eslint ] : https://github.com/babel/babel-eslint
291291[ ESTree ] : https://github.com/estree/estree
292292
293+ #### ` import/parse-options `
294+
295+ This setting will be merged 1-level deep (think ` Object.assign ` ) with the default
296+ parse options and passed as the second parameter to the parser: ` parse(file, options) ` .
297+ See the [ ` import/es7-jsx ` ] ( https://github.com/benmosher/eslint-plugin-import/tree/master/config )
298+ config file for an example of explicit parse options for Babylon.
299+
300+ Or, if you are using another parser, you may want to set these options as well.
301+ (and maybe contribute another config file! i.e. ` eslint-config-import/espree ` )
302+
293303Here is an example ` .eslintrc ` for reference:
294304
295305``` yaml
Original file line number Diff line number Diff line change 11This package contains some pre-fabricated ESLint config files, intended for use
22with [ eslint-plugin-import] ( https://www.npmjs.com/package/eslint-plugin-import ) .
33
4- There are currently two configs provided:
4+ The following stock configurations are provided:
55
66- ` import ` (index): just the bare-bones rules that catch misspelled/missing names.
77- ` import/warnings ` : the above, plus warnings for common mistakes.
You can’t perform that action at this time.
0 commit comments