Created
September 5, 2015 06:33
-
-
Save chase/a2da4eee17a14278ec33 to your computer and use it in GitHub Desktop.
Import Plugin Breaking on Spread
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
{ | |
"parser": "babel-eslint", | |
"plugins": [ | |
"react", | |
"import" | |
], | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"ecmaFeatures": { | |
"arrowFunctions": true, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParams": true, | |
"destructuring": true, | |
"forOf": true, | |
"generators": false, | |
"modules": true, | |
"objectLiteralComputedProperties": true, | |
"objectLiteralDuplicateProperties": false, | |
"objectLiteralShorthandMethods": true, | |
"objectLiteralShorthandProperties": true, | |
"spread": true, | |
"superInFunctions": true, | |
"templateStrings": true, | |
"jsx": true | |
} | |
} |
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": "test1.js", | |
"dependencies": { | |
"babel": "^5.8.23", | |
"babel-eslint": "^4.1.1", | |
"babel-core": "^5.8.23", | |
"eslint": "^1.3.1", | |
"eslint-plugin-import": "^0.7.8", | |
"eslint-plugin-react": "^3.3.1" | |
}, | |
"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
export const test = { | |
hello: '1' | |
}; | |
export const betterTest = { | |
world: '1' | |
}; |
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
export const test = { | |
hello: '1' | |
}; | |
export const betterTest = { | |
...test, | |
world: '1' | |
}; |
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 * as mock from './test1-nospread'; | |
import {test} from './test1-nospread'; | |
console.log(mock.betterTest); | |
console.log(test); |
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 * as mock from './test1'; | |
import {test} from './test1'; | |
console.log(mock.betterTest); | |
console.log(test); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment