Created
July 19, 2015 15:49
-
-
Save chase/341f060e62bea8888955 to your computer and use it in GitHub Desktop.
Import errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugins": ["import"], | |
"ecmaFeatures": { | |
"jsx": true, | |
"modules": true | |
}, | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"rules": { | |
"strict": 0, | |
"no-unused-vars": 0, | |
"quotes": [ 2, "single" ] | |
}, | |
"settings": { | |
"import/parser": "babel-eslint" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eslint test.js output: | |
``` | |
test.js | |
1:8 error Map not found in 'immutable' import/named | |
1:13 error List not found in 'immutable' import/named | |
1:19 error Set not found in 'immutable' import/named | |
✖ 3 problems (3 errors, 0 warnings) | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "test.js", | |
"dependencies": { | |
"babel-eslint": "^3.1.23", | |
"eslint": "^1.0.0-rc-1", | |
"immutable": "^3.7.4", | |
"eslint-plugin-import": "^0.7.2" | |
}, | |
"devDependencies": {}, | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "MIT" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Map, List, Set} from 'immutable'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment